@progress/kendo-angular-grid 6.1.2 → 6.1.3-dev.202203310639

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.
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-grid',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1648212017,
12
+ publishDate: 1648708290,
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
  };
@@ -2831,7 +2831,7 @@ const packageMetadata = {
2831
2831
  name: '@progress/kendo-angular-grid',
2832
2832
  productName: 'Kendo UI for Angular',
2833
2833
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
2834
- publishDate: 1648212017,
2834
+ publishDate: 1648708290,
2835
2835
  version: '',
2836
2836
  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'
2837
2837
  };
@@ -3398,10 +3398,15 @@ class ColumnBase$1 {
3398
3398
  * The width of the column (in pixels).
3399
3399
  */
3400
3400
  set width(value) {
3401
- if (isDevMode() && isPresent(value) && typeof value !== 'number') {
3402
- throw new Error('The "width" option accepts numeric values only.');
3401
+ if (typeof value === 'string') {
3402
+ const parsedValue = this._width = parseInt(value, 10);
3403
+ if (isDevMode()) {
3404
+ console.warn(`Expected numeric value for column width, but got a string "${value}". Treating as ${parsedValue}px.`);
3405
+ }
3406
+ }
3407
+ else {
3408
+ this._width = value;
3403
3409
  }
3404
- this._width = typeof value === 'string' ? parseInt(value, 10) : value;
3405
3410
  }
3406
3411
  get width() { return this._width; }
3407
3412
  /**
@@ -3044,7 +3044,7 @@ var packageMetadata = {
3044
3044
  name: '@progress/kendo-angular-grid',
3045
3045
  productName: 'Kendo UI for Angular',
3046
3046
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
3047
- publishDate: 1648212017,
3047
+ publishDate: 1648708290,
3048
3048
  version: '',
3049
3049
  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'
3050
3050
  };
@@ -3621,10 +3621,15 @@ var ColumnBase$1 = /** @class */ (function () {
3621
3621
  * The width of the column (in pixels).
3622
3622
  */
3623
3623
  set: function (value) {
3624
- if (isDevMode() && isPresent(value) && typeof value !== 'number') {
3625
- throw new Error('The "width" option accepts numeric values only.');
3624
+ if (typeof value === 'string') {
3625
+ var parsedValue = this._width = parseInt(value, 10);
3626
+ if (isDevMode()) {
3627
+ console.warn("Expected numeric value for column width, but got a string \"" + value + "\". Treating as " + parsedValue + "px.");
3628
+ }
3629
+ }
3630
+ else {
3631
+ this._width = value;
3626
3632
  }
3627
- this._width = typeof value === 'string' ? parseInt(value, 10) : value;
3628
3633
  },
3629
3634
  enumerable: true,
3630
3635
  configurable: true
@@ -9,7 +9,6 @@ var core_1 = require("@angular/core");
9
9
  var header_template_directive_1 = require("../rendering/header/header-template.directive");
10
10
  var footer_template_directive_1 = require("../rendering/footer/footer-template.directive");
11
11
  var column_menu_template_directive_1 = require("../column-menu/column-menu-template.directive");
12
- var utils_1 = require("../utils");
13
12
  /**
14
13
  * @hidden
15
14
  */
@@ -148,10 +147,15 @@ var ColumnBase = /** @class */ (function () {
148
147
  * The width of the column (in pixels).
149
148
  */
150
149
  set: function (value) {
151
- if (core_1.isDevMode() && utils_1.isPresent(value) && typeof value !== 'number') {
152
- throw new Error('The "width" option accepts numeric values only.');
150
+ if (typeof value === 'string') {
151
+ var parsedValue = this._width = parseInt(value, 10);
152
+ if (core_1.isDevMode()) {
153
+ console.warn("Expected numeric value for column width, but got a string \"" + value + "\". Treating as " + parsedValue + "px.");
154
+ }
155
+ }
156
+ else {
157
+ this._width = value;
153
158
  }
154
- this._width = typeof value === 'string' ? parseInt(value, 10) : value;
155
159
  },
156
160
  enumerable: true,
157
161
  configurable: true
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-grid',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1648212017,
14
+ publishDate: 1648708290,
15
15
  version: '',
16
16
  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'
17
17
  };