@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.
@@ -7,7 +7,6 @@ import { Input, ContentChild, ContentChildren, QueryList, isDevMode } from '@ang
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';
11
10
  /**
12
11
  * @hidden
13
12
  */
@@ -145,10 +144,15 @@ var ColumnBase = /** @class */ (function () {
145
144
  * The width of the column (in pixels).
146
145
  */
147
146
  set: function (value) {
148
- if (isDevMode() && isPresent(value) && typeof value !== 'number') {
149
- throw new Error('The "width" option accepts numeric values only.');
147
+ if (typeof value === 'string') {
148
+ var parsedValue = this._width = parseInt(value, 10);
149
+ if (isDevMode()) {
150
+ console.warn("Expected numeric value for column width, but got a string \"" + value + "\". Treating as " + parsedValue + "px.");
151
+ }
152
+ }
153
+ else {
154
+ this._width = value;
150
155
  }
151
- this._width = typeof value === 'string' ? parseInt(value, 10) : value;
152
156
  },
153
157
  enumerable: true,
154
158
  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: 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
  };
@@ -7,7 +7,6 @@ import { Input, ContentChild, ContentChildren, QueryList, isDevMode } from '@ang
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';
11
10
  /**
12
11
  * @hidden
13
12
  */
@@ -143,10 +142,15 @@ export class ColumnBase {
143
142
  * The width of the column (in pixels).
144
143
  */
145
144
  set width(value) {
146
- if (isDevMode() && isPresent(value) && typeof value !== 'number') {
147
- throw new Error('The "width" option accepts numeric values only.');
145
+ if (typeof value === 'string') {
146
+ const parsedValue = this._width = parseInt(value, 10);
147
+ if (isDevMode()) {
148
+ console.warn(`Expected numeric value for column width, but got a string "${value}". Treating as ${parsedValue}px.`);
149
+ }
150
+ }
151
+ else {
152
+ this._width = value;
148
153
  }
149
- this._width = typeof value === 'string' ? parseInt(value, 10) : value;
150
154
  }
151
155
  get width() { return this._width; }
152
156
  /**
@@ -4,7 +4,7 @@
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { GridComponent } from "../grid.component";
6
6
  /**
7
- * Arguments for the `cellClick` event.
7
+ * Arguments for the `cellClick` event([see example]({% slug editing_incell_grid %}#toc-basic-concepts)).
8
8
  */
9
9
  export interface CellClickEvent {
10
10
  /**