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.
@@ -1577,6 +1577,7 @@
1577
1577
  _this.model = [];
1578
1578
  _this.searchPlaceholder = 'search';
1579
1579
  _this.noResultsLabel = 'list.results.no.items';
1580
+ _this.searchInput = true;
1580
1581
  _this.inputChange = new core.EventEmitter();
1581
1582
  _this.onSelect = new core.EventEmitter();
1582
1583
  _this.listChange = new core.EventEmitter();
@@ -1619,7 +1620,7 @@
1619
1620
  ListComponent.decorators = [
1620
1621
  { type: core.Component, args: [{
1621
1622
  selector: 'ode-list',
1622
- 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",
1623
+ 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",
1623
1624
  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}"]
1624
1625
  }] }
1625
1626
  ];
@@ -1635,6 +1636,7 @@
1635
1636
  limit: [{ type: core.Input }],
1636
1637
  searchPlaceholder: [{ type: core.Input }],
1637
1638
  noResultsLabel: [{ type: core.Input }],
1639
+ searchInput: [{ type: core.Input }],
1638
1640
  inputChange: [{ type: core.Output }],
1639
1641
  onSelect: [{ type: core.Output }],
1640
1642
  listChange: [{ type: core.Output }],
@@ -1666,6 +1668,8 @@
1666
1668
  /** @type {?} */
1667
1669
  ListComponent.prototype.noResultsLabel;
1668
1670
  /** @type {?} */
1671
+ ListComponent.prototype.searchInput;
1672
+ /** @type {?} */
1669
1673
  ListComponent.prototype.inputChange;
1670
1674
  /** @type {?} */
1671
1675
  ListComponent.prototype.onSelect;