@progress/kendo-angular-grid 6.1.2-dev.202203210932 → 6.1.2-dev.202203221325

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.
@@ -3,10 +3,11 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
- import { Input, ContentChild, ContentChildren, QueryList } from '@angular/core';
6
+ import { Input, ContentChild, ContentChildren, QueryList, isDevMode } from '@angular/core';
7
7
  import { HeaderTemplateDirective } from '../rendering/header/header-template.directive';
8
8
  import { FooterTemplateDirective } from '../rendering/footer/footer-template.directive';
9
9
  import { ColumnMenuTemplateDirective } from '../column-menu/column-menu-template.directive';
10
+ import { isPresent } from '../utils';
10
11
  /**
11
12
  * @hidden
12
13
  */
@@ -144,7 +145,10 @@ var ColumnBase = /** @class */ (function () {
144
145
  * The width of the column (in pixels).
145
146
  */
146
147
  set: function (value) {
147
- this._width = parseInt(value, 10);
148
+ if (isDevMode() && isPresent(value) && typeof value !== 'number') {
149
+ throw new Error('The "width" option accepts numeric values only.');
150
+ }
151
+ this._width = typeof value === 'string' ? parseInt(value, 10) : value;
148
152
  },
149
153
  enumerable: true,
150
154
  configurable: true
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-grid',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1647854683,
12
+ publishDate: 1647955042,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };
@@ -3,10 +3,11 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as tslib_1 from "tslib";
6
- import { Input, ContentChild, ContentChildren, QueryList } from '@angular/core';
6
+ import { Input, ContentChild, ContentChildren, QueryList, isDevMode } from '@angular/core';
7
7
  import { HeaderTemplateDirective } from '../rendering/header/header-template.directive';
8
8
  import { FooterTemplateDirective } from '../rendering/footer/footer-template.directive';
9
9
  import { ColumnMenuTemplateDirective } from '../column-menu/column-menu-template.directive';
10
+ import { isPresent } from '../utils';
10
11
  /**
11
12
  * @hidden
12
13
  */
@@ -142,7 +143,10 @@ export class ColumnBase {
142
143
  * The width of the column (in pixels).
143
144
  */
144
145
  set width(value) {
145
- this._width = parseInt(value, 10);
146
+ if (isDevMode() && isPresent(value) && typeof value !== 'number') {
147
+ throw new Error('The "width" option accepts numeric values only.');
148
+ }
149
+ this._width = typeof value === 'string' ? parseInt(value, 10) : value;
146
150
  }
147
151
  get width() { return this._width; }
148
152
  /**