@colijnit/corecomponents_v12 12.0.103 → 12.0.104

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.
Files changed (49) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +606 -238
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +11 -10
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +12 -11
  6. package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +79 -0
  7. package/esm2015/lib/components/list-of-values/list-of-values.component.js +174 -0
  8. package/esm2015/lib/components/list-of-values/list-of-values.module.js +33 -0
  9. package/esm2015/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.component.js +101 -0
  10. package/esm2015/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.module.js +25 -0
  11. package/esm2015/lib/directives/overlay/overlay.directive.js +7 -2
  12. package/esm2015/lib/service/overlay.service.js +9 -2
  13. package/esm2015/public-api.js +5 -1
  14. package/fesm2015/colijnit-corecomponents_v12.js +659 -263
  15. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  16. package/lib/components/base-input-date-picker/style/_layout.scss +91 -0
  17. package/lib/components/base-input-date-picker/style/_material-definition.scss +0 -0
  18. package/lib/components/base-input-date-picker/style/_theme.scss +4 -0
  19. package/lib/components/base-input-date-picker/style/material.scss +4 -0
  20. package/lib/components/co-input-date-picker/style/_layout.scss +5 -0
  21. package/lib/components/co-input-date-picker/style/_material-definition.scss +0 -0
  22. package/lib/components/co-input-date-picker/style/_theme.scss +0 -0
  23. package/lib/components/co-input-date-picker/style/material.scss +4 -0
  24. package/lib/components/co-input-date-range-picker/style/_layout.scss +18 -0
  25. package/lib/components/co-input-date-range-picker/style/_material-definition.scss +0 -0
  26. package/lib/components/co-input-date-range-picker/style/_theme.scss +0 -0
  27. package/lib/components/co-input-date-range-picker/style/material.scss +4 -0
  28. package/lib/components/filter-item/style/_material-definition.scss +1 -1
  29. package/lib/components/filter-item/style/_theme.scss +4 -1
  30. package/lib/components/input-checkbox/style/_layout.scss +1 -4
  31. package/lib/components/input-checkbox/style/_theme.scss +2 -1
  32. package/lib/components/list-of-values/list-of-values-popup.component.d.ts +22 -0
  33. package/lib/components/list-of-values/list-of-values.component.d.ts +35 -0
  34. package/lib/components/list-of-values/list-of-values.module.d.ts +2 -0
  35. package/lib/components/list-of-values/style/_layout.scss +101 -13
  36. package/lib/components/list-of-values/style/_material-definition.scss +15 -0
  37. package/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.component.d.ts +21 -0
  38. package/lib/components/list-of-values-multiselect-search/list-of-values-multiselect-search.module.d.ts +2 -0
  39. package/lib/components/list-of-values-multiselect-search/style/_layout.scss +69 -0
  40. package/lib/components/list-of-values-multiselect-search/style/_material-definition.scss +8 -0
  41. package/lib/components/list-of-values-multiselect-search/style/_theme.scss +0 -0
  42. package/lib/components/list-of-values-multiselect-search/style/material.scss +4 -0
  43. package/lib/components/simple-grid/style/_layout.scss +4 -3
  44. package/lib/components/simple-grid/style/_material-definition.scss +3 -2
  45. package/lib/directives/overlay/overlay.directive.d.ts +1 -0
  46. package/lib/service/overlay.service.d.ts +1 -1
  47. package/lib/style/_variables.scss +9 -7
  48. package/package.json +1 -1
  49. package/public-api.d.ts +4 -0
@@ -4318,7 +4318,7 @@
4318
4318
  this._appRef = _appRef;
4319
4319
  this._injector = _injector;
4320
4320
  }
4321
- OverlayService.prototype.createComponent = function (compClass, inputs) {
4321
+ OverlayService.prototype.createComponent = function (compClass, inputs, events) {
4322
4322
  var _this = this;
4323
4323
  if (this._componentRef) {
4324
4324
  this.removeComponent();
@@ -4333,6 +4333,17 @@
4333
4333
  }
4334
4334
  }
4335
4335
  }
4336
+ if (events) {
4337
+ var _loop_1 = function (event) {
4338
+ if (events.hasOwnProperty(event)) {
4339
+ this_1._componentRef.instance[event].subscribe(function (value) { return events[event](value); });
4340
+ }
4341
+ };
4342
+ var this_1 = this;
4343
+ for (var event in events) {
4344
+ _loop_1(event);
4345
+ }
4346
+ }
4336
4347
  this._appRef.attachView(this._componentRef.hostView);
4337
4348
  var domElem = this._componentRef.hostView
4338
4349
  .rootNodes[0];
@@ -6849,6 +6860,7 @@
6849
6860
  function OverlayDirective(elementRef) {
6850
6861
  var _this = this;
6851
6862
  this.keepInView = false;
6863
+ this.inheritWidth = false;
6852
6864
  this.handleScroll = function (event) {
6853
6865
  _this._checkAndPlaceElement();
6854
6866
  };
@@ -6916,6 +6928,9 @@
6916
6928
  this._elementRef.nativeElement.classList.remove('top');
6917
6929
  this._elementRef.nativeElement.style.top = parentRect.bottom + "px";
6918
6930
  }
6931
+ if (this.inheritWidth) {
6932
+ this._elementRef.nativeElement.style.width = parentRect.width + "px";
6933
+ }
6919
6934
  this._elementRef.nativeElement.style.left = parentRect.left + "px";
6920
6935
  if (this.keepInView) {
6921
6936
  if (elementRect.right > window.innerWidth) {
@@ -6942,7 +6957,8 @@
6942
6957
  ]; };
6943
6958
  OverlayDirective.propDecorators = {
6944
6959
  parent: [{ type: i0.Input, args: ["overlay",] }],
6945
- keepInView: [{ type: i0.Input }]
6960
+ keepInView: [{ type: i0.Input }],
6961
+ inheritWidth: [{ type: i0.Input }]
6946
6962
  };
6947
6963
 
6948
6964
  var OverlayParentDirective = /** @class */ (function () {
@@ -11213,266 +11229,222 @@
11213
11229
  },] }
11214
11230
  ];
11215
11231
 
11216
- var FilterPipe = /** @class */ (function () {
11217
- function FilterPipe() {
11232
+ var ListOfValuesPopupComponent = /** @class */ (function (_super) {
11233
+ __extends(ListOfValuesPopupComponent, _super);
11234
+ function ListOfValuesPopupComponent() {
11235
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11236
+ _this.chosenOption = new i0.EventEmitter();
11237
+ _this.closePopup = new i0.EventEmitter();
11238
+ _this.displayField = 'description';
11239
+ _this.searchDisabled = false;
11240
+ _this.filteredOptions = _this.collection;
11241
+ _this.searchTerm = '';
11242
+ _this._collection = [];
11243
+ return _this;
11218
11244
  }
11219
- FilterPipe.prototype.transform = function (items, field, value) {
11220
- if (!items || !field) {
11221
- return items;
11245
+ ListOfValuesPopupComponent.prototype.showClass = function () {
11246
+ return true;
11247
+ };
11248
+ Object.defineProperty(ListOfValuesPopupComponent.prototype, "collection", {
11249
+ get: function () {
11250
+ return this._collection;
11251
+ },
11252
+ set: function (value) {
11253
+ this._collection = value || [];
11254
+ this.filterOptions();
11255
+ },
11256
+ enumerable: false,
11257
+ configurable: true
11258
+ });
11259
+ ListOfValuesPopupComponent.prototype.ngOnInit = function () {
11260
+ _super.prototype.ngOnInit.call(this);
11261
+ if (this.model) {
11262
+ this.selectedModel = this.model[this.displayField];
11222
11263
  }
11223
- return items.filter(function (item) { return item[field] === value; });
11224
11264
  };
11225
- return FilterPipe;
11226
- }());
11227
- FilterPipe.decorators = [
11228
- { type: i0.Pipe, args: [{
11229
- name: "filter",
11230
- pure: false
11231
- },] }
11232
- ];
11233
-
11234
- var FilterPipeModule = /** @class */ (function () {
11235
- function FilterPipeModule() {
11236
- }
11237
- return FilterPipeModule;
11238
- }());
11239
- FilterPipeModule.decorators = [
11240
- { type: i0.NgModule, args: [{
11241
- declarations: [
11242
- FilterPipe
11265
+ ListOfValuesPopupComponent.prototype.filterOptions = function () {
11266
+ var _this = this;
11267
+ this.filteredOptions = this.collection.filter(function (option) { return option[_this.displayField].toLowerCase().includes(_this.searchTerm.toLowerCase()); });
11268
+ };
11269
+ ListOfValuesPopupComponent.prototype.onOptionClick = function (option) {
11270
+ this.model = option;
11271
+ this.selectedModel = this.model[this.displayField];
11272
+ this.modelChange.emit(this.model);
11273
+ this.searchTerm = option.label;
11274
+ this.searchTerm = "";
11275
+ this.filterOptions();
11276
+ this.chosenOption.emit(option);
11277
+ };
11278
+ ListOfValuesPopupComponent.prototype.optionClicked = function () {
11279
+ this.overlayService.removeComponent();
11280
+ this.closePopup.emit();
11281
+ };
11282
+ return ListOfValuesPopupComponent;
11283
+ }(BaseInputComponent));
11284
+ ListOfValuesPopupComponent.decorators = [
11285
+ { type: i0.Component, args: [{
11286
+ 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 ",
11288
+ providers: [
11289
+ OverlayService
11243
11290
  ],
11244
- exports: [
11245
- FilterPipe
11246
- ]
11291
+ encapsulation: i0.ViewEncapsulation.None
11247
11292
  },] }
11248
- ];
11293
+ ];
11294
+ ListOfValuesPopupComponent.propDecorators = {
11295
+ showClass: [{ type: i0.HostBinding, args: ["class.co-list-of-values-popup",] }],
11296
+ chosenOption: [{ type: i0.Output }],
11297
+ closePopup: [{ type: i0.Output }],
11298
+ displayField: [{ type: i0.Input }],
11299
+ searchPlaceholder: [{ type: i0.Input }],
11300
+ customCssClass: [{ type: i0.Input }],
11301
+ searchDisabled: [{ type: i0.Input }],
11302
+ parentForOverlay: [{ type: i0.Input }],
11303
+ collection: [{ type: i0.Input }]
11304
+ };
11249
11305
 
11250
- var FilterItemComponent = /** @class */ (function () {
11251
- function FilterItemComponent(iconService) {
11252
- this.iconService = iconService;
11253
- this.icons = exports.CoreComponentsIcon;
11254
- this.initialLimit = 10;
11255
- this.expanded = false;
11256
- // Set to false to use filter item with a multi selectable collection. Set to true to specify custom content
11257
- this.customContent = false;
11258
- // Set to true to show all results. Set to false to get 'show more' and 'show less' buttons to expand and contract.
11259
- this.showAllResults = false;
11260
- this.singleSelect = false;
11261
- this.filterButtonLabel = "Search";
11262
- this.searchPlaceholder = 'Search...';
11263
- this.showMoreLabel = 'Show more';
11264
- this.showLessLabel = 'Show less';
11265
- this.noResultsLabel = "No results";
11266
- this.collectionChange = new i0.EventEmitter();
11267
- this.filterButtonClicked = new i0.EventEmitter();
11268
- this.filteredCollection = [];
11269
- this.limitTo = 10;
11270
- this.filterText = "";
11271
- this.showButton = false;
11272
- this._collection = [];
11306
+ var ListOfValuesComponent = /** @class */ (function (_super) {
11307
+ __extends(ListOfValuesComponent, _super);
11308
+ function ListOfValuesComponent() {
11309
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
11310
+ _this.icons = exports.CoreComponentsIcon;
11311
+ _this.multiselect = false;
11312
+ _this.displayField = 'description';
11313
+ _this.searchDisabled = false;
11314
+ _this.selectedOptions = [];
11315
+ _this.filteredOptions = _this.collection;
11316
+ _this.searchTerm = '';
11317
+ _this.isSelectOpen = false;
11318
+ _this.state = 'default';
11319
+ _this.searchClicked = false;
11320
+ _this.multiselectTags = [];
11321
+ _this._collection = [];
11322
+ return _this;
11273
11323
  }
11274
- Object.defineProperty(FilterItemComponent.prototype, "collection", {
11324
+ ListOfValuesComponent.prototype.showClass = function () {
11325
+ return true;
11326
+ };
11327
+ Object.defineProperty(ListOfValuesComponent.prototype, "collection", {
11275
11328
  get: function () {
11276
11329
  return this._collection;
11277
11330
  },
11278
11331
  set: function (value) {
11279
- var _a;
11280
- this._collection = value;
11281
- this.filteredCollection = (_a = this._collection) === null || _a === void 0 ? void 0 : _a.slice();
11332
+ this._collection = value || [];
11333
+ this.filterOptions();
11282
11334
  },
11283
11335
  enumerable: false,
11284
11336
  configurable: true
11285
11337
  });
11286
- FilterItemComponent.prototype.showClass = function () {
11287
- return true;
11288
- };
11289
- FilterItemComponent.prototype.ngOnInit = function () {
11290
- this.setToInitialLimit();
11291
- this.showButton = this.valueSelected();
11292
- };
11293
- FilterItemComponent.prototype.setToInitialLimit = function () {
11294
- this.limitTo = this.initialLimit;
11295
- };
11296
- FilterItemComponent.prototype.increaseLimit = function () {
11297
- this.limitTo += 10;
11298
- };
11299
- FilterItemComponent.prototype.moreToShow = function () {
11300
- var _a;
11301
- if (this.showAllResults) {
11302
- return false;
11338
+ ListOfValuesComponent.prototype.ngOnInit = function () {
11339
+ _super.prototype.ngOnInit.call(this);
11340
+ if (this.model) {
11341
+ this.selectedModel = this.model[this.displayField];
11303
11342
  }
11304
- return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) > this.limitTo;
11305
11343
  };
11306
- FilterItemComponent.prototype.lessToShow = function () {
11307
- var _a, _b;
11308
- if (this.showAllResults) {
11309
- return false;
11344
+ ListOfValuesComponent.prototype.filterOptions = function () {
11345
+ var _this = this;
11346
+ if (!this.multiselect) {
11347
+ this.filteredOptions = this.collection.filter(function (option) { return option[_this.displayField].toLowerCase().includes(_this.searchTerm.toLowerCase()); });
11310
11348
  }
11311
- return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) <= this.limitTo && ((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > this.initialLimit;
11312
- };
11313
- FilterItemComponent.prototype.handleModelChange = function (model) {
11314
- this.showButton = true;
11315
- if (this.singleSelect) {
11316
- this.collection.forEach(function (m) {
11317
- if (m.code !== model.code && m.description !== model.description) {
11318
- m.checked = false;
11349
+ else {
11350
+ this.selectedOptions = this.selectedOptions.filter(function (option) {
11351
+ if (_this.collection) {
11352
+ return _this.searchTerm.includes(option.label);
11353
+ }
11354
+ else {
11355
+ return _this.searchTerm.includes(option.value);
11319
11356
  }
11320
11357
  });
11321
11358
  }
11322
- model.checked = !model.checked;
11323
- this.collectionChange.emit(this.collection);
11324
11359
  };
11325
- FilterItemComponent.prototype.valueSelected = function () {
11326
- if (this.collection) {
11327
- return !!this.collection.find(function (c) { return c.checked; });
11360
+ ListOfValuesComponent.prototype.onOptionClick = function (option) {
11361
+ if (!this.multiselect) {
11362
+ this.model = option;
11363
+ this.selectedModel = this.model[this.displayField];
11364
+ this.modelChange.emit(this.model);
11365
+ this.searchTerm = option.label;
11366
+ this.isSelectOpen = false;
11367
+ this.searchTerm = "";
11368
+ this.filterOptions();
11369
+ }
11370
+ if (this.multiselect) {
11371
+ if (this.selectedOptions.includes(option)) {
11372
+ this.selectedOptions.splice(this.selectedOptions.indexOf(option), 1);
11373
+ }
11374
+ else {
11375
+ this.selectedOptions.push(option);
11376
+ }
11377
+ this.modelChange.emit(this.selectedOptions);
11328
11378
  }
11329
- return false;
11330
11379
  };
11331
- // Applies filter to the collection.
11332
- FilterItemComponent.prototype.applyFilter = function (text) {
11333
- var _a, _b;
11334
- return __awaiter(this, void 0, void 0, function () {
11335
- var _c, filterText, filteredItemCount;
11336
- return __generator(this, function (_d) {
11337
- switch (_d.label) {
11338
- case 0:
11339
- if (!(!isNaN(this.minSearchCharsToLoadCollection) && this.collectionLoadFn)) return [3 /*break*/, 3];
11340
- if (!(text.length === this.minSearchCharsToLoadCollection && text.length > this.filterText.length)) return [3 /*break*/, 2];
11341
- _c = this;
11342
- return [4 /*yield*/, this.collectionLoadFn(text)];
11343
- case 1:
11344
- _c.collection = _d.sent();
11345
- return [3 /*break*/, 3];
11346
- case 2:
11347
- if (text.length < this.minSearchCharsToLoadCollection) {
11348
- this.collection = undefined;
11349
- }
11350
- _d.label = 3;
11351
- case 3:
11352
- this.filterText = text;
11353
- if (!this.collection) {
11354
- return [2 /*return*/, []];
11355
- }
11356
- filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
11357
- filteredItemCount = 0;
11358
- this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
11359
- var _a;
11360
- var labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
11361
- var isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
11362
- if (isHiddenByFilter) {
11363
- return false;
11364
- }
11365
- else {
11366
- filteredItemCount++;
11367
- return true;
11368
- }
11369
- });
11370
- return [2 /*return*/];
11371
- }
11380
+ ListOfValuesComponent.prototype.toggleSelect = function () {
11381
+ var _this = this;
11382
+ this.isSelectOpen = !this.isSelectOpen;
11383
+ if (this.isSelectOpen) {
11384
+ this.overlayService.createComponent(ListOfValuesPopupComponent, {
11385
+ parentForOverlay: this.parentForOverlay,
11386
+ customCssClass: this.customCssClass,
11387
+ searchDisabled: this.searchDisabled,
11388
+ searchPlaceholder: this.searchPlaceholder,
11389
+ displayField: this.displayField,
11390
+ collection: this.collection
11391
+ }, {
11392
+ chosenOption: function (value) { return _this.optionChosen(value); },
11393
+ closePopup: function () { return _this.closePopup(); }
11372
11394
  });
11373
- });
11395
+ }
11396
+ else {
11397
+ this.overlayService.removeComponent();
11398
+ }
11399
+ this.state = (this.state === 'default' ? 'rotated' : 'default');
11374
11400
  };
11375
- FilterItemComponent.prototype.onButtonClicked = function () {
11376
- this.filterButtonClicked.emit();
11401
+ ListOfValuesComponent.prototype.multiselectOkClick = function () {
11402
+ this.searchClicked = false;
11377
11403
  };
11378
- return FilterItemComponent;
11379
- }());
11380
- FilterItemComponent.decorators = [
11404
+ ListOfValuesComponent.prototype.createMultiSelectTags = function (tags) {
11405
+ this.multiselectTags = tags;
11406
+ };
11407
+ ListOfValuesComponent.prototype.openMultiselectSearch = function () {
11408
+ this.searchClicked = true;
11409
+ };
11410
+ ListOfValuesComponent.prototype.optionChosen = function (option) {
11411
+ this.selectedModel = option[this.displayField];
11412
+ };
11413
+ ListOfValuesComponent.prototype.closePopup = function () {
11414
+ this.overlayService.removeComponent();
11415
+ };
11416
+ return ListOfValuesComponent;
11417
+ }(BaseInputComponent));
11418
+ ListOfValuesComponent.decorators = [
11381
11419
  { type: i0.Component, args: [{
11382
- selector: "co-filter-item",
11383
- template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (mousedown)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"!singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
11384
- encapsulation: i0.ViewEncapsulation.None,
11385
- changeDetection: i0.ChangeDetectionStrategy.OnPush
11420
+ 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\n\n\n </div>\n <div *ngIf=\"multiselect\">\n <div class=\"search-wrapper-multiselect\" (click)=\"openMultiselectSearch()\" *ngIf=\"!searchClicked\">\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 *ngIf=\"searchClicked\">\n <co-list-of-values-multiselect-search [collection]=\"filteredOptions\" [returnChosenCollection]=\"multiselectTags\" (okButtonClicked)=\"multiselectOkClick()\" (chosenCollection)=\"createMultiSelectTags($event)\"></co-list-of-values-multiselect-search>\n </div>\n </div>\n </div>\n ",
11422
+ providers: [
11423
+ OverlayService
11424
+ ],
11425
+ animations: [
11426
+ animations.trigger('rotatedState', [
11427
+ animations.state('default', animations.style({ transform: 'rotate(0)' })),
11428
+ animations.state('rotated', animations.style({ transform: 'rotate(-180deg)' })),
11429
+ animations.transition('rotated => default', animations.animate('300ms ease-out')),
11430
+ animations.transition('default => rotated', animations.animate('300ms ease-out'))
11431
+ ])
11432
+ ],
11433
+ encapsulation: i0.ViewEncapsulation.None
11386
11434
  },] }
11387
11435
  ];
11388
- FilterItemComponent.ctorParameters = function () { return [
11389
- { type: IconCacheService }
11390
- ]; };
11391
- FilterItemComponent.propDecorators = {
11436
+ ListOfValuesComponent.propDecorators = {
11437
+ parentForOverlay: [{ type: i0.ViewChild, args: ["parentForOverlay", { read: i0.ElementRef },] }],
11438
+ multiselect: [{ type: i0.Input }],
11439
+ showClass: [{ type: i0.HostBinding, args: ["class.co-list-of-values",] }],
11440
+ displayField: [{ type: i0.Input }],
11392
11441
  collection: [{ type: i0.Input }],
11393
- placeholder: [{ type: i0.Input }],
11394
- initialLimit: [{ type: i0.Input }],
11395
- expanded: [{ type: i0.Input }],
11396
- minSearchCharsToLoadCollection: [{ type: i0.Input }],
11397
- collectionLoadFn: [{ type: i0.Input }],
11398
- customContent: [{ type: i0.Input }],
11399
- showAllResults: [{ type: i0.Input }],
11400
- singleSelect: [{ type: i0.Input }],
11401
- filterButtonLabel: [{ type: i0.Input }],
11402
11442
  searchPlaceholder: [{ type: i0.Input }],
11403
- showMoreLabel: [{ type: i0.Input }],
11404
- showLessLabel: [{ type: i0.Input }],
11405
- noResultsLabel: [{ type: i0.Input }],
11406
- collectionChange: [{ type: i0.Output }],
11407
- filterButtonClicked: [{ type: i0.Output }],
11408
- showClass: [{ type: i0.HostBinding, args: ["class.co-filter-item",] }]
11443
+ label: [{ type: i0.Input }],
11444
+ customCssClass: [{ type: i0.Input }],
11445
+ searchDisabled: [{ type: i0.Input }]
11409
11446
  };
11410
11447
 
11411
- // A pipe for prepending strings to other strings in view templates.
11412
- var PrependPipe = /** @class */ (function () {
11413
- function PrependPipe() {
11414
- }
11415
- PrependPipe.prototype.transform = function (value, prepend) {
11416
- if (!value) {
11417
- return "";
11418
- }
11419
- if (!prepend) {
11420
- return value;
11421
- }
11422
- return prepend + value;
11423
- };
11424
- return PrependPipe;
11425
- }());
11426
- PrependPipe.decorators = [
11427
- { type: i0.Pipe, args: [{ name: "prepend" },] }
11428
- ];
11429
-
11430
- var PrependPipeModule = /** @class */ (function () {
11431
- function PrependPipeModule() {
11432
- }
11433
- return PrependPipeModule;
11434
- }());
11435
- PrependPipeModule.decorators = [
11436
- { type: i0.NgModule, args: [{
11437
- declarations: [
11438
- PrependPipe
11439
- ],
11440
- exports: [
11441
- PrependPipe
11442
- ]
11443
- },] }
11444
- ];
11445
-
11446
- var FilterItemModule = /** @class */ (function () {
11447
- function FilterItemModule() {
11448
- }
11449
- return FilterItemModule;
11450
- }());
11451
- FilterItemModule.decorators = [
11452
- { type: i0.NgModule, args: [{
11453
- imports: [
11454
- common.CommonModule,
11455
- CollapsibleModule,
11456
- InputTextModule,
11457
- InputCheckboxMultiSelectModule,
11458
- InputCheckboxModule,
11459
- IconModule,
11460
- scrolling.ScrollingModule,
11461
- AppendPipeModule,
11462
- PrependPipeModule,
11463
- InputTextModule,
11464
- InputRadioButtonModule,
11465
- InputTextModule
11466
- ],
11467
- declarations: [
11468
- FilterItemComponent
11469
- ],
11470
- exports: [
11471
- FilterItemComponent
11472
- ]
11473
- },] }
11474
- ];
11475
-
11476
11448
  // Human-readable JS keyboard codes, as in KeyboardEvent.key string values.
11477
11449
  var KeyboardKey;
11478
11450
  (function (KeyboardKey) {
@@ -11703,6 +11675,397 @@
11703
11675
  },] }
11704
11676
  ];
11705
11677
 
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
+ var ListOfValuesModule = /** @class */ (function () {
11784
+ function ListOfValuesModule() {
11785
+ }
11786
+ return ListOfValuesModule;
11787
+ }());
11788
+ ListOfValuesModule.decorators = [
11789
+ { type: i0.NgModule, args: [{
11790
+ imports: [
11791
+ common.CommonModule,
11792
+ forms.FormsModule,
11793
+ InputTextModule,
11794
+ InputCheckboxModule,
11795
+ OverlayModule,
11796
+ ClickoutsideModule,
11797
+ ListOfValuesMultiselectSearchModule
11798
+ ],
11799
+ declarations: [
11800
+ ListOfValuesComponent,
11801
+ ListOfValuesPopupComponent
11802
+ ],
11803
+ exports: [
11804
+ ListOfValuesComponent
11805
+ ]
11806
+ },] }
11807
+ ];
11808
+
11809
+ var FilterPipe = /** @class */ (function () {
11810
+ function FilterPipe() {
11811
+ }
11812
+ FilterPipe.prototype.transform = function (items, field, value) {
11813
+ if (!items || !field) {
11814
+ return items;
11815
+ }
11816
+ return items.filter(function (item) { return item[field] === value; });
11817
+ };
11818
+ return FilterPipe;
11819
+ }());
11820
+ FilterPipe.decorators = [
11821
+ { type: i0.Pipe, args: [{
11822
+ name: "filter",
11823
+ pure: false
11824
+ },] }
11825
+ ];
11826
+
11827
+ var FilterPipeModule = /** @class */ (function () {
11828
+ function FilterPipeModule() {
11829
+ }
11830
+ return FilterPipeModule;
11831
+ }());
11832
+ FilterPipeModule.decorators = [
11833
+ { type: i0.NgModule, args: [{
11834
+ declarations: [
11835
+ FilterPipe
11836
+ ],
11837
+ exports: [
11838
+ FilterPipe
11839
+ ]
11840
+ },] }
11841
+ ];
11842
+
11843
+ var FilterItemComponent = /** @class */ (function () {
11844
+ function FilterItemComponent(iconService) {
11845
+ this.iconService = iconService;
11846
+ this.icons = exports.CoreComponentsIcon;
11847
+ this.initialLimit = 10;
11848
+ this.expanded = false;
11849
+ // Set to false to use filter item with a multi selectable collection. Set to true to specify custom content
11850
+ this.customContent = false;
11851
+ // Set to true to show all results. Set to false to get 'show more' and 'show less' buttons to expand and contract.
11852
+ this.showAllResults = false;
11853
+ this.singleSelect = false;
11854
+ this.filterButtonLabel = "Search";
11855
+ this.searchPlaceholder = 'Search...';
11856
+ this.showMoreLabel = 'Show more';
11857
+ this.showLessLabel = 'Show less';
11858
+ this.noResultsLabel = "No results";
11859
+ this.collectionChange = new i0.EventEmitter();
11860
+ this.filterButtonClicked = new i0.EventEmitter();
11861
+ this.filteredCollection = [];
11862
+ this.limitTo = 10;
11863
+ this.filterText = "";
11864
+ this.showButton = false;
11865
+ this._collection = [];
11866
+ }
11867
+ Object.defineProperty(FilterItemComponent.prototype, "collection", {
11868
+ get: function () {
11869
+ return this._collection;
11870
+ },
11871
+ set: function (value) {
11872
+ var _a;
11873
+ this._collection = value;
11874
+ this.filteredCollection = (_a = this._collection) === null || _a === void 0 ? void 0 : _a.slice();
11875
+ },
11876
+ enumerable: false,
11877
+ configurable: true
11878
+ });
11879
+ FilterItemComponent.prototype.showClass = function () {
11880
+ return true;
11881
+ };
11882
+ FilterItemComponent.prototype.ngOnInit = function () {
11883
+ this.setToInitialLimit();
11884
+ this.showButton = this.valueSelected();
11885
+ };
11886
+ FilterItemComponent.prototype.setToInitialLimit = function () {
11887
+ this.limitTo = this.initialLimit;
11888
+ };
11889
+ FilterItemComponent.prototype.increaseLimit = function () {
11890
+ this.limitTo += 10;
11891
+ };
11892
+ FilterItemComponent.prototype.moreToShow = function () {
11893
+ var _a;
11894
+ if (this.showAllResults) {
11895
+ return false;
11896
+ }
11897
+ return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) > this.limitTo;
11898
+ };
11899
+ FilterItemComponent.prototype.lessToShow = function () {
11900
+ var _a, _b;
11901
+ if (this.showAllResults) {
11902
+ return false;
11903
+ }
11904
+ return ((_a = this.filteredCollection) === null || _a === void 0 ? void 0 : _a.length) <= this.limitTo && ((_b = this.filteredCollection) === null || _b === void 0 ? void 0 : _b.length) > this.initialLimit;
11905
+ };
11906
+ FilterItemComponent.prototype.handleModelChange = function (model) {
11907
+ this.showButton = true;
11908
+ if (this.singleSelect) {
11909
+ this.collection.forEach(function (m) {
11910
+ if (m.code !== model.code && m.description !== model.description) {
11911
+ m.checked = false;
11912
+ }
11913
+ });
11914
+ }
11915
+ model.checked = !model.checked;
11916
+ this.collectionChange.emit(this.collection);
11917
+ };
11918
+ FilterItemComponent.prototype.valueSelected = function () {
11919
+ if (this.collection) {
11920
+ return !!this.collection.find(function (c) { return c.checked; });
11921
+ }
11922
+ return false;
11923
+ };
11924
+ // Applies filter to the collection.
11925
+ FilterItemComponent.prototype.applyFilter = function (text) {
11926
+ var _a, _b;
11927
+ return __awaiter(this, void 0, void 0, function () {
11928
+ var _c, filterText, filteredItemCount;
11929
+ return __generator(this, function (_d) {
11930
+ switch (_d.label) {
11931
+ case 0:
11932
+ if (!(!isNaN(this.minSearchCharsToLoadCollection) && this.collectionLoadFn)) return [3 /*break*/, 3];
11933
+ if (!(text.length === this.minSearchCharsToLoadCollection && text.length > this.filterText.length)) return [3 /*break*/, 2];
11934
+ _c = this;
11935
+ return [4 /*yield*/, this.collectionLoadFn(text)];
11936
+ case 1:
11937
+ _c.collection = _d.sent();
11938
+ return [3 /*break*/, 3];
11939
+ case 2:
11940
+ if (text.length < this.minSearchCharsToLoadCollection) {
11941
+ this.collection = undefined;
11942
+ }
11943
+ _d.label = 3;
11944
+ case 3:
11945
+ this.filterText = text;
11946
+ if (!this.collection) {
11947
+ return [2 /*return*/, []];
11948
+ }
11949
+ filterText = (_a = this.filterText) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
11950
+ filteredItemCount = 0;
11951
+ this.filteredCollection = (_b = this.collection) === null || _b === void 0 ? void 0 : _b.filter(function (item) {
11952
+ var _a;
11953
+ var labelText = (_a = item.description) === null || _a === void 0 ? void 0 : _a.toString().toLowerCase();
11954
+ var isHiddenByFilter = ((labelText === null || labelText === void 0 ? void 0 : labelText.indexOf(filterText)) === -1);
11955
+ if (isHiddenByFilter) {
11956
+ return false;
11957
+ }
11958
+ else {
11959
+ filteredItemCount++;
11960
+ return true;
11961
+ }
11962
+ });
11963
+ return [2 /*return*/];
11964
+ }
11965
+ });
11966
+ });
11967
+ };
11968
+ FilterItemComponent.prototype.onButtonClicked = function () {
11969
+ this.filterButtonClicked.emit();
11970
+ };
11971
+ return FilterItemComponent;
11972
+ }());
11973
+ FilterItemComponent.decorators = [
11974
+ { type: i0.Component, args: [{
11975
+ selector: "co-filter-item",
11976
+ template: "\n <div class=\"co-filter-item-header\">\n <co-collapsible\n [headerTitle]=\"placeholder\"\n [expandButtonLast]=\"true\"\n [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"\n [expanded]=\"expanded\"\n [showButton]=\"showButton\"\n [buttonText]=\"filterButtonLabel\"\n (buttonClicked)=\"onButtonClicked()\"\n >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\"\n (keydown)=\"showButton=true\" (mousedown)=\"showButton=true\">\n <ng-content></ng-content>\n </div>\n <ng-template #collectionContent>\n <div class=\"co-filter-item-collection-content\">\n <co-input-text\n *ngIf=\"collection?.length > 10 || minSearchCharsToLoadCollection\"\n [placeholder]=\"searchPlaceholder\"\n [model]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"no-results\" *ngIf=\"filteredCollection?.length === 0\">\n <span [textContent]=\"noResultsLabel\"></span>\n </div>\n <div class=\"co-filter-item-collection-results\">\n <ng-container\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || showAllResults\">\n <co-input-checkbox *ngIf=\"!singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n [clickableLabel]=\"false\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-checkbox>\n <co-input-radio-button *ngIf=\"singleSelect\"\n [label]=\"option.description\"\n [model]=\"option.checked\"\n (modelChange)=\"handleModelChange(option)\"\n ></co-input-radio-button>\n <div class=\"co-filter-item-amount\" *ngIf=\"option.count\"\n [textContent]=\"option.count.toString() | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n\n </ng-container>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"!showAllResults\">\n <div class=\"co-filter-show-more clickable\"\n *ngIf=\"moreToShow()\">\n <a (click)=\"increaseLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointDown)\"></co-icon>\n <span [textContent]=\"showMoreLabel\"></span>\n </a>\n </div>\n <div class=\"co-filter-show-less clickable\"\n *ngIf=\"lessToShow()\">\n <a (click)=\"setToInitialLimit()\">\n <co-icon [iconData]=\"iconService.getIcon(icons.ArrowPointUp)\"></co-icon>\n <span [textContent]=\"showLessLabel\"></span>\n </a>\n </div>\n </div>\n </div>\n </ng-template>\n </div>\n </co-collapsible>\n </div>\n\n ",
11977
+ encapsulation: i0.ViewEncapsulation.None,
11978
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
11979
+ },] }
11980
+ ];
11981
+ FilterItemComponent.ctorParameters = function () { return [
11982
+ { type: IconCacheService }
11983
+ ]; };
11984
+ FilterItemComponent.propDecorators = {
11985
+ collection: [{ type: i0.Input }],
11986
+ placeholder: [{ type: i0.Input }],
11987
+ initialLimit: [{ type: i0.Input }],
11988
+ expanded: [{ type: i0.Input }],
11989
+ minSearchCharsToLoadCollection: [{ type: i0.Input }],
11990
+ collectionLoadFn: [{ type: i0.Input }],
11991
+ customContent: [{ type: i0.Input }],
11992
+ showAllResults: [{ type: i0.Input }],
11993
+ singleSelect: [{ type: i0.Input }],
11994
+ filterButtonLabel: [{ type: i0.Input }],
11995
+ searchPlaceholder: [{ type: i0.Input }],
11996
+ showMoreLabel: [{ type: i0.Input }],
11997
+ showLessLabel: [{ type: i0.Input }],
11998
+ noResultsLabel: [{ type: i0.Input }],
11999
+ collectionChange: [{ type: i0.Output }],
12000
+ filterButtonClicked: [{ type: i0.Output }],
12001
+ showClass: [{ type: i0.HostBinding, args: ["class.co-filter-item",] }]
12002
+ };
12003
+
12004
+ // A pipe for prepending strings to other strings in view templates.
12005
+ var PrependPipe = /** @class */ (function () {
12006
+ function PrependPipe() {
12007
+ }
12008
+ PrependPipe.prototype.transform = function (value, prepend) {
12009
+ if (!value) {
12010
+ return "";
12011
+ }
12012
+ if (!prepend) {
12013
+ return value;
12014
+ }
12015
+ return prepend + value;
12016
+ };
12017
+ return PrependPipe;
12018
+ }());
12019
+ PrependPipe.decorators = [
12020
+ { type: i0.Pipe, args: [{ name: "prepend" },] }
12021
+ ];
12022
+
12023
+ var PrependPipeModule = /** @class */ (function () {
12024
+ function PrependPipeModule() {
12025
+ }
12026
+ return PrependPipeModule;
12027
+ }());
12028
+ PrependPipeModule.decorators = [
12029
+ { type: i0.NgModule, args: [{
12030
+ declarations: [
12031
+ PrependPipe
12032
+ ],
12033
+ exports: [
12034
+ PrependPipe
12035
+ ]
12036
+ },] }
12037
+ ];
12038
+
12039
+ var FilterItemModule = /** @class */ (function () {
12040
+ function FilterItemModule() {
12041
+ }
12042
+ return FilterItemModule;
12043
+ }());
12044
+ FilterItemModule.decorators = [
12045
+ { type: i0.NgModule, args: [{
12046
+ imports: [
12047
+ common.CommonModule,
12048
+ CollapsibleModule,
12049
+ InputTextModule,
12050
+ InputCheckboxMultiSelectModule,
12051
+ InputCheckboxModule,
12052
+ IconModule,
12053
+ scrolling.ScrollingModule,
12054
+ AppendPipeModule,
12055
+ PrependPipeModule,
12056
+ InputTextModule,
12057
+ InputRadioButtonModule,
12058
+ InputTextModule
12059
+ ],
12060
+ declarations: [
12061
+ FilterItemComponent
12062
+ ],
12063
+ exports: [
12064
+ FilterItemComponent
12065
+ ]
12066
+ },] }
12067
+ ];
12068
+
11706
12069
  var TooltipComponent = /** @class */ (function () {
11707
12070
  function TooltipComponent(_elementRef, _changeDetector) {
11708
12071
  this._elementRef = _elementRef;
@@ -12254,6 +12617,10 @@
12254
12617
  exports.InputTextareaModule = InputTextareaModule;
12255
12618
  exports.LevelIndicatorComponent = LevelIndicatorComponent;
12256
12619
  exports.LevelIndicatorModule = LevelIndicatorModule;
12620
+ exports.ListOfValuesComponent = ListOfValuesComponent;
12621
+ exports.ListOfValuesModule = ListOfValuesModule;
12622
+ exports.ListOfValuesMultiselectSearch = ListOfValuesMultiselectSearch;
12623
+ exports.ListOfValuesMultiselectSearchModule = ListOfValuesMultiselectSearchModule;
12257
12624
  exports.MultiSelectListComponent = MultiSelectListComponent;
12258
12625
  exports.MultiSelectListModule = MultiSelectListModule;
12259
12626
  exports.ObserveVisibilityModule = ObserveVisibilityModule;
@@ -12290,16 +12657,17 @@
12290
12657
  exports["ɵbc"] = PaginationService;
12291
12658
  exports["ɵbd"] = PaginatePipe;
12292
12659
  exports["ɵbe"] = SimpleGridCellComponent;
12293
- exports["ɵbf"] = PrependPipeModule;
12294
- exports["ɵbg"] = PrependPipe;
12295
- exports["ɵbh"] = ClickOutsideDirective;
12296
- exports["ɵbi"] = ClickOutsideMasterService;
12297
- exports["ɵbj"] = TooltipModule;
12298
- exports["ɵbk"] = TooltipComponent;
12299
- exports["ɵbl"] = TooltipDirective;
12300
- exports["ɵbm"] = CheckmarkOverlayComponent;
12301
- exports["ɵbn"] = ScreenConfigurationDirective;
12302
- exports["ɵbo"] = ScreenConfigComponentWrapper;
12660
+ exports["ɵbf"] = ClickOutsideDirective;
12661
+ exports["ɵbg"] = ClickOutsideMasterService;
12662
+ exports["ɵbh"] = ListOfValuesPopupComponent;
12663
+ exports["ɵbi"] = PrependPipeModule;
12664
+ exports["ɵbj"] = PrependPipe;
12665
+ exports["ɵbk"] = TooltipModule;
12666
+ exports["ɵbl"] = TooltipComponent;
12667
+ exports["ɵbm"] = TooltipDirective;
12668
+ exports["ɵbn"] = CheckmarkOverlayComponent;
12669
+ exports["ɵbo"] = ScreenConfigurationDirective;
12670
+ exports["ɵbp"] = ScreenConfigComponentWrapper;
12303
12671
  exports["ɵc"] = CoRippleDirective;
12304
12672
  exports["ɵd"] = CoViewportRulerService;
12305
12673
  exports["ɵe"] = CoScrollDispatcherService;