ngx-ode-ui 3.12.0-dev.10 → 3.12.0-dev.11

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.
@@ -1380,9 +1380,9 @@ var ListComponent = /** @class */ (function (_super) {
1380
1380
  /* Store pipe */
1381
1381
  _this.self = _this;
1382
1382
  _this._storedElements = [];
1383
- _this.model = [];
1384
1383
  _this.searchPlaceholder = 'search';
1385
1384
  _this.noResultsLabel = 'list.results.no.items';
1385
+ _this.placeholder = 'list.placeholder';
1386
1386
  _this.isSearchActive = true;
1387
1387
  _this.searchInput = false;
1388
1388
  _this.inputChange = new EventEmitter();
@@ -1427,8 +1427,8 @@ var ListComponent = /** @class */ (function (_super) {
1427
1427
  ListComponent.decorators = [
1428
1428
  { type: Component, args: [{
1429
1429
  selector: 'ode-list',
1430
- template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (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",
1431
- 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
+ template: "<ode-search-input\n *ngIf=\"isSearchActive\"\n [searchInput]=\"searchInput\"\n [searchSubmit]=\"searchSubmit\"\n [attr.placeholder]=\"searchPlaceholder | translate\"\n (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 *ngIf=\"model\">\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=\"model && storedElements && storedElements.length === 0\">\n <li class=\"no-results\">{{ noResultsLabel | translate }}</li>\n </ul>\n <ul *ngIf=\"!model\">\n <li class=\"placeholder\">{{ placeholder | translate }}</li>\n </ul>\n</div>\n",
1431
+ 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}.placeholder{color:#aaa}"]
1432
1432
  }] }
1433
1433
  ];
1434
1434
  /** @nocollapse */
@@ -1443,6 +1443,7 @@ var ListComponent = /** @class */ (function (_super) {
1443
1443
  limit: [{ type: Input }],
1444
1444
  searchPlaceholder: [{ type: Input }],
1445
1445
  noResultsLabel: [{ type: Input }],
1446
+ placeholder: [{ type: Input }],
1446
1447
  isSearchActive: [{ type: Input }],
1447
1448
  searchInput: [{ type: Input }],
1448
1449
  searchSubmit: [{ type: Input }],
@@ -1477,6 +1478,8 @@ if (false) {
1477
1478
  /** @type {?} */
1478
1479
  ListComponent.prototype.noResultsLabel;
1479
1480
  /** @type {?} */
1481
+ ListComponent.prototype.placeholder;
1482
+ /** @type {?} */
1480
1483
  ListComponent.prototype.isSearchActive;
1481
1484
  /** @type {?} */
1482
1485
  ListComponent.prototype.searchInput;