@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.
@@ -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: 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,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { __decorate, __metadata, __param } from 'tslib';
6
- import { InjectionToken, HostBinding, Input, Component, EventEmitter, Injectable, Optional, Inject, Directive, SkipSelf, ElementRef, Renderer2, NgZone, ChangeDetectorRef, TemplateRef, QueryList, ContentChildren, ContentChild, forwardRef, Host, Output, isDevMode, SecurityContext, ViewChild, ViewChildren, ViewEncapsulation, Self, ViewContainerRef, Pipe, NgModule, ComponentFactoryResolver, HostListener, ChangeDetectionStrategy } from '@angular/core';
6
+ import { InjectionToken, HostBinding, Input, Component, EventEmitter, Injectable, Optional, Inject, Directive, SkipSelf, ElementRef, Renderer2, NgZone, ChangeDetectorRef, TemplateRef, QueryList, isDevMode, ContentChildren, ContentChild, forwardRef, Host, Output, SecurityContext, ViewChild, ViewChildren, ViewEncapsulation, Self, ViewContainerRef, Pipe, NgModule, ComponentFactoryResolver, HostListener, ChangeDetectionStrategy } from '@angular/core';
7
7
  import { isDocumentAvailable, Keys, DraggableDirective, isChanged, anyChanged, hasObservers, ResizeSensorComponent, KendoInput, DraggableModule, EventsModule, ResizeSensorModule, guid } from '@progress/kendo-angular-common';
8
8
  import { merge, of, Subject, Subscription, from, interval, fromEvent, zip, BehaviorSubject, Observable } from 'rxjs';
9
9
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -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: 1647854683,
2834
+ publishDate: 1647955042,
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,7 +3398,10 @@ class ColumnBase$1 {
3398
3398
  * The width of the column (in pixels).
3399
3399
  */
3400
3400
  set width(value) {
3401
- this._width = parseInt(value, 10);
3401
+ if (isDevMode() && isPresent(value) && typeof value !== 'number') {
3402
+ throw new Error('The "width" option accepts numeric values only.');
3403
+ }
3404
+ this._width = typeof value === 'string' ? parseInt(value, 10) : value;
3402
3405
  }
3403
3406
  get width() { return this._width; }
3404
3407
  /**
@@ -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 { __decorate, __metadata, __param, __extends, __assign } from 'tslib';
6
- import { InjectionToken, HostBinding, Input, Component, Injectable, EventEmitter, Optional, Inject, Directive, SkipSelf, ElementRef, Renderer2, NgZone, ChangeDetectorRef, TemplateRef, ContentChildren, QueryList, ContentChild, forwardRef, Host, Output, isDevMode, SecurityContext, ViewChild, ViewChildren, ViewEncapsulation, Self, ViewContainerRef, Pipe, NgModule, ComponentFactoryResolver, HostListener, ChangeDetectionStrategy } from '@angular/core';
6
+ import { InjectionToken, HostBinding, Input, Component, Injectable, EventEmitter, Optional, Inject, Directive, SkipSelf, ElementRef, Renderer2, NgZone, ChangeDetectorRef, TemplateRef, isDevMode, ContentChildren, QueryList, ContentChild, forwardRef, Host, Output, SecurityContext, ViewChild, ViewChildren, ViewEncapsulation, Self, ViewContainerRef, Pipe, NgModule, ComponentFactoryResolver, HostListener, ChangeDetectionStrategy } from '@angular/core';
7
7
  import { isDocumentAvailable, Keys, DraggableDirective, isChanged, anyChanged, hasObservers, ResizeSensorComponent, KendoInput, DraggableModule, EventsModule, ResizeSensorModule, guid } from '@progress/kendo-angular-common';
8
8
  import { merge, of, Subject, from, Subscription, interval, fromEvent, zip, BehaviorSubject, Observable } from 'rxjs';
9
9
  import { LocalizationService, L10N_PREFIX, ComponentMessages } from '@progress/kendo-angular-l10n';
@@ -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: 1647854683,
3047
+ publishDate: 1647955042,
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,7 +3621,10 @@ var ColumnBase$1 = /** @class */ (function () {
3621
3621
  * The width of the column (in pixels).
3622
3622
  */
3623
3623
  set: function (value) {
3624
- this._width = parseInt(value, 10);
3624
+ if (isDevMode() && isPresent(value) && typeof value !== 'number') {
3625
+ throw new Error('The "width" option accepts numeric values only.');
3626
+ }
3627
+ this._width = typeof value === 'string' ? parseInt(value, 10) : value;
3625
3628
  },
3626
3629
  enumerable: true,
3627
3630
  configurable: true
@@ -9,6 +9,7 @@ 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");
12
13
  /**
13
14
  * @hidden
14
15
  */
@@ -147,7 +148,10 @@ var ColumnBase = /** @class */ (function () {
147
148
  * The width of the column (in pixels).
148
149
  */
149
150
  set: function (value) {
150
- this._width = parseInt(value, 10);
151
+ if (core_1.isDevMode() && utils_1.isPresent(value) && typeof value !== 'number') {
152
+ throw new Error('The "width" option accepts numeric values only.');
153
+ }
154
+ this._width = typeof value === 'string' ? parseInt(value, 10) : value;
151
155
  },
152
156
  enumerable: true,
153
157
  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: 1647854683,
14
+ publishDate: 1647955042,
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
  };