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

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: 1647955042,
12
+ publishDate: 1648709578,
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: 1647955042,
2834
+ publishDate: 1648709578,
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
  /**
@@ -19049,9 +19054,7 @@ ColumnListComponent = __decorate([
19049
19054
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
19050
19055
  *
19051
19056
  * @example
19052
- * {% meta height:300 %}
19053
19057
  * ```ts-preview
19054
- *
19055
19058
  * _@Component({
19056
19059
  * selector: 'my-app',
19057
19060
  * template: `
@@ -19068,9 +19071,7 @@ ColumnListComponent = __decorate([
19068
19071
  * class AppComponent {
19069
19072
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
19070
19073
  * }
19071
- *
19072
19074
  * ```
19073
- * {% endmeta %}
19074
19075
  */
19075
19076
  let ColumnChooserComponent = class ColumnChooserComponent {
19076
19077
  constructor(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
@@ -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: 1647955042,
3047
+ publishDate: 1648709578,
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
@@ -19333,9 +19338,7 @@ var ColumnListComponent = /** @class */ (function () {
19333
19338
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
19334
19339
  *
19335
19340
  * @example
19336
- * {% meta height:300 %}
19337
19341
  * ```ts-preview
19338
- *
19339
19342
  * _@Component({
19340
19343
  * selector: 'my-app',
19341
19344
  * template: `
@@ -19352,9 +19355,7 @@ var ColumnListComponent = /** @class */ (function () {
19352
19355
  * class AppComponent {
19353
19356
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
19354
19357
  * }
19355
- *
19356
19358
  * ```
19357
- * {% endmeta %}
19358
19359
  */
19359
19360
  var ColumnChooserComponent = /** @class */ (function () {
19360
19361
  function ColumnChooserComponent(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
@@ -15,9 +15,7 @@ var dom_queries_1 = require("../rendering/common/dom-queries");
15
15
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
16
16
  *
17
17
  * @example
18
- * {% meta height:300 %}
19
18
  * ```ts-preview
20
- *
21
19
  * _@Component({
22
20
  * selector: 'my-app',
23
21
  * template: `
@@ -34,9 +32,7 @@ var dom_queries_1 = require("../rendering/common/dom-queries");
34
32
  * class AppComponent {
35
33
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
36
34
  * }
37
- *
38
35
  * ```
39
- * {% endmeta %}
40
36
  */
41
37
  var ColumnChooserComponent = /** @class */ (function () {
42
38
  function ColumnChooserComponent(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
@@ -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: 1647955042,
14
+ publishDate: 1648709578,
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
  };