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.
@@ -1574,9 +1574,9 @@
1574
1574
  /* Store pipe */
1575
1575
  _this.self = _this;
1576
1576
  _this._storedElements = [];
1577
- _this.model = [];
1578
1577
  _this.searchPlaceholder = 'search';
1579
1578
  _this.noResultsLabel = 'list.results.no.items';
1579
+ _this.placeholder = 'list.placeholder';
1580
1580
  _this.isSearchActive = true;
1581
1581
  _this.searchInput = false;
1582
1582
  _this.inputChange = new core.EventEmitter();
@@ -1621,8 +1621,8 @@
1621
1621
  ListComponent.decorators = [
1622
1622
  { type: core.Component, args: [{
1623
1623
  selector: 'ode-list',
1624
- 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",
1625
- 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
+ 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",
1625
+ 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}"]
1626
1626
  }] }
1627
1627
  ];
1628
1628
  /** @nocollapse */
@@ -1637,6 +1637,7 @@
1637
1637
  limit: [{ type: core.Input }],
1638
1638
  searchPlaceholder: [{ type: core.Input }],
1639
1639
  noResultsLabel: [{ type: core.Input }],
1640
+ placeholder: [{ type: core.Input }],
1640
1641
  isSearchActive: [{ type: core.Input }],
1641
1642
  searchInput: [{ type: core.Input }],
1642
1643
  searchSubmit: [{ type: core.Input }],
@@ -1671,6 +1672,8 @@
1671
1672
  /** @type {?} */
1672
1673
  ListComponent.prototype.noResultsLabel;
1673
1674
  /** @type {?} */
1675
+ ListComponent.prototype.placeholder;
1676
+ /** @type {?} */
1674
1677
  ListComponent.prototype.isSearchActive;
1675
1678
  /** @type {?} */
1676
1679
  ListComponent.prototype.searchInput;