@colijnit/corecomponents_v12 12.0.32 → 12.0.33

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 (25) hide show
  1. package/bundles/colijnit-corecomponents_v12.umd.js +78 -28
  2. package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
  3. package/colijnit-corecomponents_v12.d.ts +2 -0
  4. package/colijnit-corecomponents_v12.metadata.json +1 -1
  5. package/esm2015/colijnit-corecomponents_v12.js +3 -1
  6. package/esm2015/lib/components/base/base-input.component.js +2 -1
  7. package/esm2015/lib/components/filter-item/filter-item.component.js +13 -10
  8. package/esm2015/lib/components/filter-item/filter-item.module.js +7 -1
  9. package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +1 -2
  10. package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +3 -1
  11. package/esm2015/lib/components/simple-grid/simple-grid.component.js +28 -21
  12. package/esm2015/lib/pipes/prepend.pipe.js +17 -0
  13. package/esm2015/lib/pipes/prepend.pipe.module.js +15 -0
  14. package/fesm2015/colijnit-corecomponents_v12.js +73 -28
  15. package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
  16. package/lib/components/filter-item/filter-item.component.d.ts +7 -5
  17. package/lib/components/filter-item/style/_layout.scss +14 -2
  18. package/lib/components/filter-item/style/_material-definition.scss +2 -0
  19. package/lib/components/simple-grid/base-simple-grid.component.d.ts +1 -0
  20. package/lib/components/simple-grid/simple-grid.component.d.ts +2 -2
  21. package/lib/components/simple-grid/style/_layout.scss +1 -0
  22. package/lib/components/simple-grid/style/_theme.scss +1 -1
  23. package/lib/pipes/prepend.pipe.d.ts +4 -0
  24. package/lib/pipes/prepend.pipe.module.d.ts +2 -0
  25. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@syncfusion/ej2-angular-splitbuttons'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('@angular/animations'), require('@syncfusion/ej2-angular-popups'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/forms'), require('@syncfusion/ej2-angular-schedule'), require('@syncfusion/ej2-angular-navigations'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-base'), require('@syncfusion/ej2-angular-calendars'), require('@syncfusion/ej2-angular-inputs'), require('@syncfusion/ej2-angular-pivotview'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/drag-drop')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@syncfusion/ej2-angular-splitbuttons', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', '@angular/animations', '@syncfusion/ej2-angular-popups', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-richtexteditor', '@angular/forms', '@syncfusion/ej2-angular-schedule', '@syncfusion/ej2-angular-navigations', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-base', '@syncfusion/ej2-angular-calendars', '@syncfusion/ej2-angular-inputs', '@syncfusion/ej2-angular-pivotview', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/drag-drop'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs, global.rxjs.operators, global.ej2AngularSplitbuttons, global.three, global.CSS3DRenderer, global.TWEEN, global.ng.animations, global.ej2AngularPopups, global.ej2AngularKanban, global.ej2AngularRichtexteditor, global.ng.forms, global.ej2AngularSchedule, global.ej2AngularNavigations, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2AngularGrids, global.ej2Base, global.ej2AngularCalendars, global.ej2AngularInputs, global.ej2AngularPivotview, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.dragDrop));
5
- })(this, (function (exports, core, common, http, platformBrowser, rxjs, operators, ej2AngularSplitbuttons, three, CSS3DRenderer, TWEEN, animations, ej2AngularPopups, ej2AngularKanban, ej2AngularRichtexteditor, forms, ej2AngularSchedule, ej2AngularNavigations, ej2AngularButtons, ej2AngularDropdowns, ej2AngularGrids, ej2Base, ej2AngularCalendars, ej2AngularInputs, ej2AngularPivotview, overlay, portal, dragDrop) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('@angular/platform-browser'), require('rxjs'), require('rxjs/operators'), require('@syncfusion/ej2-angular-splitbuttons'), require('three'), require('three/examples/jsm/renderers/CSS3DRenderer'), require('@tweenjs/tween.js'), require('@angular/animations'), require('@syncfusion/ej2-angular-popups'), require('@syncfusion/ej2-angular-kanban'), require('@syncfusion/ej2-angular-richtexteditor'), require('@angular/forms'), require('@syncfusion/ej2-angular-schedule'), require('@syncfusion/ej2-angular-navigations'), require('@syncfusion/ej2-angular-buttons'), require('@syncfusion/ej2-angular-dropdowns'), require('@syncfusion/ej2-angular-grids'), require('@syncfusion/ej2-base'), require('@syncfusion/ej2-angular-calendars'), require('@syncfusion/ej2-angular-inputs'), require('@syncfusion/ej2-angular-pivotview'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/cdk/drag-drop'), require('@angular/cdk/scrolling')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/corecomponents_v12', ['exports', '@angular/core', '@angular/common', '@angular/common/http', '@angular/platform-browser', 'rxjs', 'rxjs/operators', '@syncfusion/ej2-angular-splitbuttons', 'three', 'three/examples/jsm/renderers/CSS3DRenderer', '@tweenjs/tween.js', '@angular/animations', '@syncfusion/ej2-angular-popups', '@syncfusion/ej2-angular-kanban', '@syncfusion/ej2-angular-richtexteditor', '@angular/forms', '@syncfusion/ej2-angular-schedule', '@syncfusion/ej2-angular-navigations', '@syncfusion/ej2-angular-buttons', '@syncfusion/ej2-angular-dropdowns', '@syncfusion/ej2-angular-grids', '@syncfusion/ej2-base', '@syncfusion/ej2-angular-calendars', '@syncfusion/ej2-angular-inputs', '@syncfusion/ej2-angular-pivotview', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/cdk/drag-drop', '@angular/cdk/scrolling'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.corecomponents_v12 = {}), global.ng.core, global.ng.common, global.ng.common.http, global.ng.platformBrowser, global.rxjs, global.rxjs.operators, global.ej2AngularSplitbuttons, global.three, global.CSS3DRenderer, global.TWEEN, global.ng.animations, global.ej2AngularPopups, global.ej2AngularKanban, global.ej2AngularRichtexteditor, global.ng.forms, global.ej2AngularSchedule, global.ej2AngularNavigations, global.ej2AngularButtons, global.ej2AngularDropdowns, global.ej2AngularGrids, global.ej2Base, global.ej2AngularCalendars, global.ej2AngularInputs, global.ej2AngularPivotview, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.cdk.dragDrop, global.ng.cdk.scrolling));
5
+ })(this, (function (exports, core, common, http, platformBrowser, rxjs, operators, ej2AngularSplitbuttons, three, CSS3DRenderer, TWEEN, animations, ej2AngularPopups, ej2AngularKanban, ej2AngularRichtexteditor, forms, ej2AngularSchedule, ej2AngularNavigations, ej2AngularButtons, ej2AngularDropdowns, ej2AngularGrids, ej2Base, ej2AngularCalendars, ej2AngularInputs, ej2AngularPivotview, overlay, portal, dragDrop, scrolling) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -4541,6 +4541,7 @@
4541
4541
  };
4542
4542
  BaseInputComponent.prototype.ngOnDestroy = function () {
4543
4543
  var _this = this;
4544
+ this._removeSelfFromForm();
4544
4545
  if (this.input) {
4545
4546
  this.input.removeEventListener('blur', function (event) { return _this.doBlur(event); });
4546
4547
  this.input.removeEventListener('focus', function (event) { return _this.doFocus(event); });
@@ -6956,7 +6957,6 @@
6956
6957
  _super.prototype.handleKeyDown.call(this, event);
6957
6958
  };
6958
6959
  InputNumberPickerComponent.prototype.handleChangeModel = function (value) {
6959
- console.log(value);
6960
6960
  this.numberLogic.setValue(value);
6961
6961
  };
6962
6962
  // Note: recursive through setTimeout().
@@ -9177,6 +9177,7 @@
9177
9177
  this.resizable = false;
9178
9178
  this.inlineEdit = false;
9179
9179
  this.showToolbar = false;
9180
+ this.autoAddRow = false;
9180
9181
  /**
9181
9182
  * Should component emit drag and drop actions instead of handle
9182
9183
  * (update collection) by itself
@@ -9310,6 +9311,7 @@
9310
9311
  resizable: [{ type: core.Input }],
9311
9312
  inlineEdit: [{ type: core.Input }],
9312
9313
  showToolbar: [{ type: core.Input }],
9314
+ autoAddRow: [{ type: core.Input }],
9313
9315
  emitDragDrop: [{ type: core.Input }],
9314
9316
  extraColumns: [{ type: core.Input }],
9315
9317
  onDrop: [{ type: core.Output }],
@@ -9327,7 +9329,7 @@
9327
9329
  _this._changeDetection = _changeDetection;
9328
9330
  _this._formMaster = _formMaster;
9329
9331
  _this.defaultTextAlign = exports.ColumnAlign.Left;
9330
- _this.editting = false;
9332
+ _this.editing = false;
9331
9333
  _this.editRowIndex = -1;
9332
9334
  _this.editCellIndex = -1;
9333
9335
  _this.selectedRowIndex = -1;
@@ -9382,42 +9384,43 @@
9382
9384
  var valid = this.validateAndSave();
9383
9385
  this._detectChanges();
9384
9386
  if (valid) {
9385
- this.data.unshift({});
9387
+ this.data.push({});
9386
9388
  this._newRow = true;
9387
- this.editRowIndex = 0;
9389
+ this.editRowIndex = this.data.length - 1;
9388
9390
  this._nextAvailableCellToEdit(true).then(function (index) {
9389
9391
  _this.editCellIndex = index;
9390
9392
  _this._detectChanges();
9391
9393
  });
9392
- this.editting = true;
9393
- this.rowToEdit = this.data[0];
9394
+ this.editing = true;
9395
+ this.rowToEdit = this.data[this.data.length - 1];
9394
9396
  this._detectChanges();
9395
9397
  }
9396
9398
  };
9397
- SimpleGridComponent.prototype.validateAndSave = function (stopEditting) {
9398
- if (stopEditting === void 0) { stopEditting = true; }
9399
- if (!this.editting) {
9399
+ SimpleGridComponent.prototype.validateAndSave = function (stopediting) {
9400
+ if (stopediting === void 0) { stopediting = true; }
9401
+ if (!this.editing) {
9400
9402
  return true;
9401
9403
  }
9402
9404
  var valid = this._formMaster.submitSlaves();
9403
9405
  this._detectChanges();
9404
9406
  if (valid) {
9405
- this._saveRow(stopEditting);
9407
+ this._saveRow(stopediting);
9406
9408
  return true;
9407
9409
  }
9410
+ return false;
9408
9411
  };
9409
9412
  SimpleGridComponent.prototype.cancelEditRow = function () {
9410
- if (!this.editting) {
9413
+ if (!this.editing) {
9411
9414
  return;
9412
9415
  }
9413
9416
  if (this._newRow) {
9414
- this.data.shift();
9417
+ this.data.splice(this.data.length - 1, 1);
9415
9418
  }
9416
9419
  else {
9417
9420
  this.data[this.editRowIndex] = this.rowToEdit;
9418
9421
  }
9419
9422
  this._newRow = false;
9420
- this.editting = false;
9423
+ this.editing = false;
9421
9424
  this._detectChanges();
9422
9425
  };
9423
9426
  SimpleGridComponent.prototype.handleClickRow = function (event, index) {
@@ -9431,7 +9434,7 @@
9431
9434
  };
9432
9435
  SimpleGridComponent.prototype.selectTheRow = function (index, emit) {
9433
9436
  if (emit === void 0) { emit = true; }
9434
- if (this.selectedRowIndex !== index && ((this.editting && this.validateAndSave()) || !this.editting)) {
9437
+ if (this.selectedRowIndex !== index && ((this.editing && this.validateAndSave()) || !this.editing)) {
9435
9438
  this.selectedRowIndex = index;
9436
9439
  if (emit) {
9437
9440
  this.selectRow.next(this.data[this.selectedRowIndex]);
@@ -9452,7 +9455,7 @@
9452
9455
  var _this = this;
9453
9456
  this.editRowIndex = this.selectedRowIndex;
9454
9457
  this.rowToEdit = this.data[this.editRowIndex];
9455
- this.editting = true;
9458
+ this.editing = true;
9456
9459
  this._nextAvailableCellToEdit(true).then(function (index) {
9457
9460
  _this.editCellIndex = index;
9458
9461
  });
@@ -9524,7 +9527,13 @@
9524
9527
  return new Promise(function (resolve, reject) {
9525
9528
  var newRowIndex = 0;
9526
9529
  if (_this.editRowIndex + 1 >= _this.data.length) {
9527
- newRowIndex = 0;
9530
+ if (_this.autoAddRow) {
9531
+ _this.addRow();
9532
+ newRowIndex = _this.editRowIndex;
9533
+ }
9534
+ else {
9535
+ newRowIndex = 0;
9536
+ }
9528
9537
  }
9529
9538
  else {
9530
9539
  newRowIndex = _this.editRowIndex + 1;
@@ -9567,17 +9576,17 @@
9567
9576
  }
9568
9577
  });
9569
9578
  };
9570
- SimpleGridComponent.prototype._saveRow = function (stopEditting) {
9571
- if (stopEditting === void 0) { stopEditting = true; }
9579
+ SimpleGridComponent.prototype._saveRow = function (stopediting) {
9580
+ if (stopediting === void 0) { stopediting = true; }
9572
9581
  // emit saveEvent
9573
9582
  if (this.rowToEdit) {
9574
9583
  this.saveRow.next(this.rowToEdit);
9575
9584
  }
9576
9585
  this._newRow = false;
9577
- if (stopEditting) {
9586
+ if (stopediting) {
9578
9587
  this.editRowIndex = -1;
9579
9588
  this.editCellIndex = -1;
9580
- this.editting = false;
9589
+ this.editing = false;
9581
9590
  this.rowToEdit = undefined;
9582
9591
  }
9583
9592
  this._detectChanges();
@@ -9590,7 +9599,7 @@
9590
9599
  SimpleGridComponent.decorators = [
9591
9600
  { type: core.Component, args: [{
9592
9601
  selector: "co-simple-grid",
9593
- template: "\n <co-grid-toolbar *ngIf=\"inlineEdit && showToolbar\"\n (addClick)=\"addRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\" [attr.width]=\"column.width\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\">\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText\"\n ></div>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex\"\n [class.editting]=\"rowIndex === editRowIndex\" *ngFor=\"let row of data; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex)\" (dblclick)=\"handleDblClickRow($event, rowIndex)\">\n <co-form class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editting && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form>\n </tr>\n </tbody>\n </table>\n ",
9602
+ template: "\n <co-grid-toolbar *ngIf=\"inlineEdit && showToolbar\"\n (addClick)=\"addRow()\"\n (editClick)=\"editRow($event)\"\n (saveClick)=\"validateAndSave()\"\n (cancelClick)=\"cancelEditRow()\"\n ></co-grid-toolbar>\n <table class=\"simple-grid-table\">\n <colgroup>\n <col *ngFor=\"let column of headerColumns; let index = index\" [attr.width]=\"column.width\">\n </colgroup>\n <thead>\n <tr>\n <th scope=\"col\" #headerCell class=\"simple-grid-column-header\" *ngFor=\"let column of headerColumns; let index = index\">\n <div class=\"simple-grid-column-header-wrapper\" [class.resizable]=\"resizable\">\n <div class=\"simple-grid-column-header-label\" [ngClass]=\"column.textAlign ? column.textAlign : defaultTextAlign\"\n [textContent]=\"column.headerText\"\n ></div>\n <div *ngIf=\"resizable && column.resizable\" class=\"simple-grid-column-sizer\"\n (mousedown)=\"handleSizerMouseDown($event, column)\"\n ></div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody #dropList cdkDropList cdkDropListOrientation=\"vertical\"\n class=\"simple-grid-drag-drop-list\"\n [cdkDropListDisabled]=\"!dragDropEnabled\"\n [cdkDropListData]=\"data\"\n [cdkDropListEnterPredicate]=\"handleCanDragDrop\"\n (cdkDropListDropped)=\"handleDrop($event)\">\n <tr class=\"simple-grid-row\" [class.selected]=\"rowIndex === selectedRowIndex && !editing\"\n [class.editing]=\"rowIndex === editRowIndex\" *ngFor=\"let row of data; let rowIndex = index\" cdkDrag\n (click)=\"handleClickRow($event, rowIndex)\" (dblclick)=\"handleDblClickRow($event, rowIndex)\">\n <co-form class=\"simple-grid-row-form\">\n <ng-container *ngIf=\"isSingleColumnRow(row)\">\n <td class=\"simple-grid-single-column-cell\" [attr.colspan]=\"headerColumns.length\">\n <co-simple-grid-cell\n [column]=\"columns[singleColumnIndex(row)]\"\n [row]=\"row\"\n [editMode]=\"false\"\n ></co-simple-grid-cell>\n </td>\n </ng-container>\n <ng-container *ngIf=\"!isSingleColumnRow(row)\">\n <ng-container *ngFor=\"let column of headerColumns; let columnIndex = index\">\n <td class=\"simple-grid-column-cell\" *ngIf=\"columnIndex !== singleColumnIndex(row)\">\n <co-simple-grid-cell\n [column]=\"column\"\n [row]=\"row\"\n [editMode]=\"inlineEdit && editing && rowIndex === editRowIndex\"\n [fieldEditMode]=\"editCellIndex === columnIndex\"\n (cellClick)=\"handleCellClick(columnIndex)\"\n ></co-simple-grid-cell>\n <div *ngIf=\"column.resizable\" class=\"simple-grid-column-sizer-placeholder\"></div>\n </td>\n </ng-container>\n </ng-container>\n </co-form>\n </tr>\n </tbody>\n </table>\n ",
9594
9603
  providers: [
9595
9604
  FormMasterService
9596
9605
  ],
@@ -9823,6 +9832,7 @@
9823
9832
  };
9824
9833
  FilterItemComponent.prototype.ngOnInit = function () {
9825
9834
  this.setToInitialLimit();
9835
+ this.maxItems = Math.min(this.limitTo, this.collection.length);
9826
9836
  };
9827
9837
  FilterItemComponent.prototype.setToInitialLimit = function () {
9828
9838
  this.limitTo = this.initialLimit;
@@ -9853,7 +9863,6 @@
9853
9863
  if (!this.collection) {
9854
9864
  return [];
9855
9865
  }
9856
- console.log('filteren');
9857
9866
  var filterText = this.filterText.toLowerCase();
9858
9867
  var filteredItemCount = 0;
9859
9868
  this.filteredCollection = (_a = this.collection) === null || _a === void 0 ? void 0 : _a.filter(function (item) {
@@ -9873,8 +9882,9 @@
9873
9882
  FilterItemComponent.decorators = [
9874
9883
  { type: core.Component, args: [{
9875
9884
  selector: "co-filter-item",
9876
- 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 >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\">\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=\"searchable\"\n [placeholder]=\"searchPlaceholder\"\n [(model)]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <div class=\"co-filter-item-collection-results\">\n <div class=\"co-filter-item-collection-result-items\"\n *ngFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || !showMore\">\n <co-input-checkbox [label]=\"option[fields.text]\"\n [(model)]=\"option['checked']\"\n (modelChange)=\"updateSelection()\"\n ></co-input-checkbox>\n </div>\n </div>\n </div>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"showMore\">\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 ",
9877
- encapsulation: core.ViewEncapsulation.None
9885
+ 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 >\n <div class=\"co-filter-item-collapsable-content\">\n <div class=\"co-filter-item-custom-content\" *ngIf=\"customContent; else collectionContent\">\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=\"searchable\"\n [placeholder]=\"searchPlaceholder\"\n [(model)]=\"filterText\"\n (modelChange)=\"applyFilter($event)\"\n >\n </co-input-text>\n <cdk-virtual-scroll-viewport [itemSize]=\"25\" [style.height.px]=\"maxItems * 25\" class=\"co-filter-item-collection-results\">\n <div class=\"co-filter-item-collection-result-items\"\n *cdkVirtualFor=\"let option of filteredCollection; let index = index\">\n <div class=\"co-filter-item-collection-result-item\" *ngIf=\"index < limitTo || !showMore\">\n <co-input-checkbox [label]=\"option[fields.text]\"\n [(model)]=\"option['checked']\"\n (modelChange)=\"updateSelection()\"\n ></co-input-checkbox>\n <div class=\"co-filter-item-amount\" *ngIf=\"fields.count\"\n [textContent]=\"option[fields.count] | append: ')' | prepend: ' ('\"\n ></div>\n </div>\n </div>\n </cdk-virtual-scroll-viewport>\n <div class=\"co-filter-show-more-or-less\" *ngIf=\"showMore\">\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 ",
9886
+ encapsulation: core.ViewEncapsulation.None,
9887
+ changeDetection: core.ChangeDetectionStrategy.OnPush
9878
9888
  },] }
9879
9889
  ];
9880
9890
  FilterItemComponent.ctorParameters = function () { return [
@@ -9896,6 +9906,41 @@
9896
9906
  showClass: [{ type: core.HostBinding, args: ["class.co-filter-item",] }]
9897
9907
  };
9898
9908
 
9909
+ // A pipe for prepending strings to other strings in view templates.
9910
+ var PrependPipe = /** @class */ (function () {
9911
+ function PrependPipe() {
9912
+ }
9913
+ PrependPipe.prototype.transform = function (value, prepend) {
9914
+ if (!value) {
9915
+ return "";
9916
+ }
9917
+ if (!prepend) {
9918
+ return value;
9919
+ }
9920
+ return prepend + value;
9921
+ };
9922
+ return PrependPipe;
9923
+ }());
9924
+ PrependPipe.decorators = [
9925
+ { type: core.Pipe, args: [{ name: "prepend" },] }
9926
+ ];
9927
+
9928
+ var PrependPipeModule = /** @class */ (function () {
9929
+ function PrependPipeModule() {
9930
+ }
9931
+ return PrependPipeModule;
9932
+ }());
9933
+ PrependPipeModule.decorators = [
9934
+ { type: core.NgModule, args: [{
9935
+ declarations: [
9936
+ PrependPipe
9937
+ ],
9938
+ exports: [
9939
+ PrependPipe
9940
+ ]
9941
+ },] }
9942
+ ];
9943
+
9899
9944
  var FilterItemModule = /** @class */ (function () {
9900
9945
  function FilterItemModule() {
9901
9946
  }
@@ -9910,6 +9955,9 @@
9910
9955
  InputCheckboxMultiSelectModule,
9911
9956
  InputCheckboxModule,
9912
9957
  IconModule,
9958
+ scrolling.ScrollingModule,
9959
+ AppendPipeModule,
9960
+ PrependPipeModule
9913
9961
  ],
9914
9962
  declarations: [
9915
9963
  FilterItemComponent
@@ -10016,6 +10064,8 @@
10016
10064
  exports.TileModule = TileModule;
10017
10065
  exports["ɵa"] = RippleModule;
10018
10066
  exports["ɵb"] = MD_RIPPLE_GLOBAL_OPTIONS;
10067
+ exports["ɵba"] = PrependPipeModule;
10068
+ exports["ɵbb"] = PrependPipe;
10019
10069
  exports["ɵc"] = CoRippleDirective;
10020
10070
  exports["ɵd"] = CoViewportRulerService;
10021
10071
  exports["ɵe"] = CoScrollDispatcherService;