@progress/kendo-angular-grid 6.1.2-dev.202203210932 → 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.
@@ -13,9 +13,7 @@ import { closest } from '../rendering/common/dom-queries';
13
13
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
14
14
  *
15
15
  * @example
16
- * {% meta height:300 %}
17
16
  * ```ts-preview
18
- *
19
17
  * _@Component({
20
18
  * selector: 'my-app',
21
19
  * template: `
@@ -32,9 +30,7 @@ import { closest } from '../rendering/common/dom-queries';
32
30
  * class AppComponent {
33
31
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
34
32
  * }
35
- *
36
33
  * ```
37
- * {% endmeta %}
38
34
  */
39
35
  var ColumnChooserComponent = /** @class */ (function () {
40
36
  function ColumnChooserComponent(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
@@ -3,7 +3,7 @@
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';
@@ -144,7 +144,15 @@ var ColumnBase = /** @class */ (function () {
144
144
  * The width of the column (in pixels).
145
145
  */
146
146
  set: function (value) {
147
- this._width = parseInt(value, 10);
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;
155
+ }
148
156
  },
149
157
  enumerable: true,
150
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: 1647854683,
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
  };
@@ -11,9 +11,7 @@ import { LocalizationService } from "@progress/kendo-angular-l10n";
11
11
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
12
12
  *
13
13
  * @example
14
- * {% meta height:300 %}
15
14
  * ```ts-preview
16
- *
17
15
  * _@Component({
18
16
  * selector: 'my-app',
19
17
  * template: `
@@ -30,9 +28,7 @@ import { LocalizationService } from "@progress/kendo-angular-l10n";
30
28
  * class AppComponent {
31
29
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
32
30
  * }
33
- *
34
31
  * ```
35
- * {% endmeta %}
36
32
  */
37
33
  export declare class ColumnChooserComponent implements OnDestroy {
38
34
  localization: LocalizationService;
@@ -13,9 +13,7 @@ import { closest } from '../rendering/common/dom-queries';
13
13
  * add the component inside a [ToolbarTemplate]({% slug api_grid_toolbartemplatedirective %}) directive.
14
14
  *
15
15
  * @example
16
- * {% meta height:300 %}
17
16
  * ```ts-preview
18
- *
19
17
  * _@Component({
20
18
  * selector: 'my-app',
21
19
  * template: `
@@ -32,9 +30,7 @@ import { closest } from '../rendering/common/dom-queries';
32
30
  * class AppComponent {
33
31
  * public data: any[] = [{ Field1: 'Foo', Field2: 'Bar' }];
34
32
  * }
35
- *
36
33
  * ```
37
- * {% endmeta %}
38
34
  */
39
35
  let ColumnChooserComponent = class ColumnChooserComponent {
40
36
  constructor(localization, columnInfoService, popupService, ngZone, renderer, changeDetector) {
@@ -3,7 +3,7 @@
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';
@@ -142,7 +142,15 @@ export class ColumnBase {
142
142
  * The width of the column (in pixels).
143
143
  */
144
144
  set width(value) {
145
- this._width = parseInt(value, 10);
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;
153
+ }
146
154
  }
147
155
  get width() { return this._width; }
148
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
  /**