@clr/angular 12.3.0 → 12.4.1

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.
@@ -12012,10 +12012,13 @@
12012
12012
  }
12013
12013
  DatagridPropertyNumericFilter.prototype.accepts = function (item, low, high) {
12014
12014
  var propValue = this.nestedProp.getPropValue(item);
12015
- if (low !== null && propValue < low) {
12015
+ if (propValue === undefined) {
12016
12016
  return false;
12017
12017
  }
12018
- if (high !== null && propValue > high) {
12018
+ if (low !== null && (typeof propValue !== 'number' || propValue < low)) {
12019
+ return false;
12020
+ }
12021
+ if (high !== null && (typeof propValue !== 'number' || propValue > high)) {
12019
12022
  return false;
12020
12023
  }
12021
12024
  return true;
@@ -16357,6 +16360,7 @@
16357
16360
  var ClrDatagridPageSize = /** @class */ (function () {
16358
16361
  function ClrDatagridPageSize(page) {
16359
16362
  this.page = page;
16363
+ this.pageSizeOptionsId = uniqueIdFactory();
16360
16364
  }
16361
16365
  ClrDatagridPageSize.prototype.ngOnInit = function () {
16362
16366
  if (!this.pageSizeOptions || this.pageSizeOptions.length === 0) {
@@ -16368,14 +16372,15 @@
16368
16372
  ClrDatagridPageSize.decorators = [
16369
16373
  { type: i0.Component, args: [{
16370
16374
  selector: 'clr-dg-page-size',
16371
- template: "\n <ng-content></ng-content>\n <div class=\"clr-select-wrapper\">\n <select [class.clr-page-size-select]=\"true\" [(ngModel)]=\"page.size\">\n <option *ngFor=\"let option of pageSizeOptions\" [ngValue]=\"option\">{{ option }}</option>\n </select>\n </div>\n "
16375
+ template: "\n <ng-content></ng-content>\n <div class=\"clr-select-wrapper\">\n <select [id]=\"pageSizeOptionsId\" [class.clr-page-size-select]=\"true\" [(ngModel)]=\"page.size\">\n <option *ngFor=\"let option of pageSizeOptions\" [ngValue]=\"option\">{{ option }}</option>\n </select>\n </div>\n "
16372
16376
  },] }
16373
16377
  ];
16374
16378
  ClrDatagridPageSize.ctorParameters = function () { return [
16375
16379
  { type: Page }
16376
16380
  ]; };
16377
16381
  ClrDatagridPageSize.propDecorators = {
16378
- pageSizeOptions: [{ type: i0.Input, args: ['clrPageSizeOptions',] }]
16382
+ pageSizeOptions: [{ type: i0.Input, args: ['clrPageSizeOptions',] }],
16383
+ pageSizeOptionsId: [{ type: i0.Input, args: ['clrPageSizeOptionsId',] }]
16379
16384
  };
16380
16385
 
16381
16386
  /*