ngx-ode-ui 3.12.0-dev.2 → 3.12.0-dev.3

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.
@@ -1383,6 +1383,7 @@ var ListComponent = /** @class */ (function (_super) {
1383
1383
  _this.model = [];
1384
1384
  _this.searchPlaceholder = 'search';
1385
1385
  _this.noResultsLabel = 'list.results.no.items';
1386
+ _this.searchInput = true;
1386
1387
  _this.inputChange = new EventEmitter();
1387
1388
  _this.onSelect = new EventEmitter();
1388
1389
  _this.listChange = new EventEmitter();
@@ -1425,7 +1426,7 @@ var ListComponent = /** @class */ (function (_super) {
1425
1426
  ListComponent.decorators = [
1426
1427
  { type: Component, args: [{
1427
1428
  selector: 'ode-list',
1428
- template: "<ode-search-input [attr.placeholder]=\"searchPlaceholder | translate\" (onChange)=\"inputChange.emit($event)\"></ode-search-input>\n<div class=\"toolbar\">\n <ng-content select=\"[toolbar]\"></ng-content>\n</div>\n<div class=\"list-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n <ul>\n <li *ngFor=\"let item of model | filter: filters | filter: inputFilter | store:self:'storedElements' | orderBy: sort | slice: 0:limit\"\n (click)=\"onSelect.emit(item)\"\n [class.selected]=\"isSelected(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n class=\"lct-list-item\">\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\">\n </ng-template>\n </li>\n </ul>\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n</div>\n",
1429
+ template: "<ode-search-input *ngIf=\"searchInput\" [attr.placeholder]=\"searchPlaceholder | translate\" (onChange)=\"inputChange.emit($event)\"></ode-search-input>\n<div class=\"toolbar\">\n <ng-content select=\"[toolbar]\"></ng-content>\n</div>\n<div class=\"list-wrapper\"\n infiniteScroll\n [scrollWindow]=\"false\"\n (scrolled)=\"scrolledDown.emit()\"\n [infiniteScrollThrottle]=\"50\">\n <ul>\n <li *ngFor=\"let item of model | filter: filters | filter: inputFilter | store:self:'storedElements' | orderBy: sort | slice: 0:limit\"\n (click)=\"onSelect.emit(item)\"\n [class.selected]=\"isSelected(item)\"\n [class.disabled]=\"isDisabled(item)\"\n [ngClass]=\"ngClass(item)\"\n class=\"lct-list-item\">\n <ng-template [ngTemplateOutlet]=\"templateRef\" [ngTemplateOutletContext]=\"{$implicit: item}\">\n </ng-template>\n </li>\n </ul>\n <ul *ngIf=\"storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n</div>\n",
1429
1430
  styles: ["ul{margin:0;padding:0;font-size:.9em}ul li{cursor:pointer;border-top:1px solid #ddd;padding:10px}ul li.disabled{pointer-events:none}"]
1430
1431
  }] }
1431
1432
  ];
@@ -1441,6 +1442,7 @@ var ListComponent = /** @class */ (function (_super) {
1441
1442
  limit: [{ type: Input }],
1442
1443
  searchPlaceholder: [{ type: Input }],
1443
1444
  noResultsLabel: [{ type: Input }],
1445
+ searchInput: [{ type: Input }],
1444
1446
  inputChange: [{ type: Output }],
1445
1447
  onSelect: [{ type: Output }],
1446
1448
  listChange: [{ type: Output }],
@@ -1472,6 +1474,8 @@ if (false) {
1472
1474
  /** @type {?} */
1473
1475
  ListComponent.prototype.noResultsLabel;
1474
1476
  /** @type {?} */
1477
+ ListComponent.prototype.searchInput;
1478
+ /** @type {?} */
1475
1479
  ListComponent.prototype.inputChange;
1476
1480
  /** @type {?} */
1477
1481
  ListComponent.prototype.onSelect;