@progress/kendo-angular-common 3.2.2 → 11.0.0-develop.100

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.
Files changed (91) hide show
  1. package/LICENSE.md +1 -1
  2. package/NOTICE.txt +119 -79
  3. package/README.md +1 -1
  4. package/dom-queries/closest-in-scope.d.ts +2 -2
  5. package/dom-queries/closest.d.ts +2 -2
  6. package/dom-queries/contains.d.ts +2 -2
  7. package/dom-queries/find-element.d.ts +1 -1
  8. package/dom-queries/find-focusable-child.d.ts +1 -1
  9. package/dom-queries/find-focusable.d.ts +1 -1
  10. package/dom-queries/has-classes.d.ts +1 -1
  11. package/dom-queries/is-focusable-with-tab-key.d.ts +1 -1
  12. package/dom-queries/is-focusable.d.ts +1 -1
  13. package/dom-queries/is-visible.d.ts +1 -1
  14. package/dom-queries/matches-classes.d.ts +1 -1
  15. package/dom-queries/matches-node-name.d.ts +2 -2
  16. package/dom-queries/rtl-scroll-position.d.ts +1 -1
  17. package/dom-queries.d.ts +1 -1
  18. package/draggable/draggable.directive.d.ts +2 -2
  19. package/draggable/draggable.module.d.ts +1 -1
  20. package/draggable.d.ts +1 -1
  21. package/enums/keys.d.ts +1 -1
  22. package/enums.d.ts +1 -1
  23. package/{esm2015/dom-queries/closest-in-scope.js → esm2020/dom-queries/closest-in-scope.mjs} +2 -1
  24. package/{esm2015/dom-queries/closest.js → esm2020/dom-queries/closest.mjs} +1 -1
  25. package/{esm2015/dom-queries/contains.js → esm2020/dom-queries/contains.mjs} +1 -1
  26. package/{esm2015/dom-queries/find-element.js → esm2020/dom-queries/find-element.mjs} +1 -1
  27. package/{esm2015/dom-queries/find-focusable-child.js → esm2020/dom-queries/find-focusable-child.mjs} +1 -1
  28. package/{esm2015/dom-queries/find-focusable.js → esm2020/dom-queries/find-focusable.mjs} +1 -1
  29. package/{esm2015/dom-queries/has-classes.js → esm2020/dom-queries/has-classes.mjs} +1 -1
  30. package/{esm2015/dom-queries/is-focusable-with-tab-key.js → esm2020/dom-queries/is-focusable-with-tab-key.mjs} +1 -1
  31. package/{esm2015/dom-queries/is-focusable.js → esm2020/dom-queries/is-focusable.mjs} +1 -1
  32. package/{esm2015/dom-queries/is-visible.js → esm2020/dom-queries/is-visible.mjs} +1 -1
  33. package/{esm2015/dom-queries/matches-classes.js → esm2020/dom-queries/matches-classes.mjs} +1 -1
  34. package/{esm2015/dom-queries/matches-node-name.js → esm2020/dom-queries/matches-node-name.mjs} +1 -1
  35. package/{esm2015/dom-queries/rtl-scroll-position.js → esm2020/dom-queries/rtl-scroll-position.mjs} +1 -1
  36. package/{esm2015/dom-queries.js → esm2020/dom-queries.mjs} +1 -1
  37. package/{esm2015/draggable/draggable.directive.js → esm2020/draggable/draggable.directive.mjs} +7 -7
  38. package/{esm2015/draggable/draggable.module.js → esm2020/draggable/draggable.module.mjs} +5 -5
  39. package/{esm2015/draggable.js → esm2020/draggable.mjs} +1 -1
  40. package/{esm2015/enums/keys.js → esm2020/enums/keys.mjs} +1 -1
  41. package/{esm2015/enums.js → esm2020/enums.mjs} +1 -1
  42. package/{esm2015/events/events-outside-angular.directive.js → esm2020/events/events-outside-angular.directive.mjs} +8 -8
  43. package/{esm2015/events/events.module.js → esm2020/events/events.module.mjs} +5 -5
  44. package/{esm2015/events.js → esm2020/events.mjs} +1 -1
  45. package/{esm2015/main.js → esm2020/index.mjs} +3 -2
  46. package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
  47. package/{esm2015/kendo-angular-common.js → esm2020/progress-kendo-angular-common.mjs} +2 -2
  48. package/{esm2015/resize-sensor/compat.service.js → esm2020/resize-sensor/compat.service.mjs} +7 -5
  49. package/{esm2015/resize-sensor/observer.service.js → esm2020/resize-sensor/observer.service.mjs} +1 -1
  50. package/{esm2015/resize-sensor/resize-batch.service.js → esm2020/resize-sensor/resize-batch.service.mjs} +5 -5
  51. package/{esm2015/resize-sensor/resize-sensor.component.js → esm2020/resize-sensor/resize-sensor.component.mjs} +6 -5
  52. package/{esm2015/resize-sensor/resize-sensor.module.js → esm2020/resize-sensor/resize-sensor.module.mjs} +5 -5
  53. package/{esm2015/resize-sensor/resize.service.js → esm2020/resize-sensor/resize.service.mjs} +3 -3
  54. package/{esm2015/resize-sensor.js → esm2020/resize-sensor.mjs} +1 -1
  55. package/{esm2015/tokens.js → esm2020/tokens.mjs} +1 -1
  56. package/{esm2015/utils/any-changed.js → esm2020/utils/any-changed.mjs} +1 -1
  57. package/{esm2015/utils/guid.js → esm2020/utils/guid.mjs} +1 -1
  58. package/{esm2015/utils/has-observers.js → esm2020/utils/has-observers.mjs} +1 -1
  59. package/{esm2015/utils/is-changed.js → esm2020/utils/is-changed.mjs} +1 -1
  60. package/{esm2015/utils/is-document-available.js → esm2020/utils/is-document-available.mjs} +1 -1
  61. package/esm2020/utils/ng-class-parser.mjs +65 -0
  62. package/{esm2015/utils/scrollbar-width.service.js → esm2020/utils/scrollbar-width.service.mjs} +21 -6
  63. package/{esm2015/utils.js → esm2020/utils.mjs} +1 -2
  64. package/events/events-outside-angular.directive.d.ts +2 -2
  65. package/events/events.module.d.ts +1 -1
  66. package/events.d.ts +1 -1
  67. package/fesm2015/progress-kendo-angular-common.mjs +815 -0
  68. package/{fesm2015/kendo-angular-common.js → fesm2020/progress-kendo-angular-common.mjs} +122 -58
  69. package/{main.d.ts → index.d.ts} +3 -2
  70. package/package.json +24 -55
  71. package/preventable-event.d.ts +1 -1
  72. package/{kendo-angular-common.d.ts → progress-kendo-angular-common.d.ts} +2 -2
  73. package/resize-sensor/compat.service.d.ts +3 -3
  74. package/resize-sensor/observer.service.d.ts +1 -1
  75. package/resize-sensor/resize-batch.service.d.ts +2 -2
  76. package/resize-sensor/resize-sensor.component.d.ts +1 -1
  77. package/resize-sensor/resize-sensor.module.d.ts +1 -1
  78. package/resize-sensor/resize.service.d.ts +3 -3
  79. package/resize-sensor.d.ts +1 -1
  80. package/tokens.d.ts +1 -1
  81. package/utils/any-changed.d.ts +1 -1
  82. package/utils/guid.d.ts +1 -1
  83. package/utils/has-observers.d.ts +1 -1
  84. package/utils/is-changed.d.ts +1 -1
  85. package/utils/is-document-available.d.ts +1 -1
  86. package/utils/ng-class-parser.d.ts +26 -0
  87. package/utils/scrollbar-width.service.d.ts +5 -1
  88. package/utils.d.ts +1 -2
  89. package/bundles/kendo-angular-common.umd.js +0 -5
  90. package/esm2015/utils/get-scrollbar-width.js +0 -21
  91. package/utils/get-scrollbar-width.d.ts +0 -8
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { closestInScope } from './dom-queries/closest-in-scope';
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { EventEmitter, Directive, Output, Input } from '@angular/core';
5
+ import { EventEmitter, ElementRef, Directive, Output, NgZone, Input } from '@angular/core';
6
6
  import { isDocumentAvailable, isChanged } from '../utils';
7
7
  import { Draggable } from '@progress/kendo-draggable';
8
8
  import * as i0 from "@angular/core";
@@ -35,20 +35,20 @@ export class DraggableDirective {
35
35
  press: (e) => this.kendoPress.next(e),
36
36
  release: (e) => this.kendoRelease.next(e)
37
37
  });
38
- this.ngZone.runOutsideAngular(() => this.draggable.bindTo(this.element.nativeElement));
38
+ this.ngZone.runOutsideAngular(() => this.draggable?.bindTo(this.element.nativeElement));
39
39
  }
40
40
  }
41
41
  }
42
42
  destroyDraggable() {
43
43
  if (this.draggable) {
44
44
  this.draggable.destroy();
45
- this.draggable = null;
45
+ this.draggable = undefined;
46
46
  }
47
47
  }
48
48
  }
49
- DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
50
- DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, decorators: [{
49
+ DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
50
+ DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, decorators: [{
52
52
  type: Directive,
53
53
  args: [{
54
54
  selector: '[kendoDraggable]'
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -11,10 +11,10 @@ import * as i0 from "@angular/core";
11
11
  */
12
12
  export class DraggableModule {
13
13
  }
14
- DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
- DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
16
- DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, decorators: [{
14
+ DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
+ DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
16
+ DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
17
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, decorators: [{
18
18
  type: NgModule,
19
19
  args: [{
20
20
  declarations: [DraggableDirective],
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { DraggableDirective } from './draggable/draggable.directive';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { Keys } from './enums/keys';
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input } from '@angular/core';
5
+ import { Directive, ElementRef, Input, Renderer2, NgZone } from '@angular/core';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * @hidden
@@ -21,9 +21,9 @@ export class EventsOutsideAngularDirective {
21
21
  const events = this.events;
22
22
  this.subscriptions = [];
23
23
  this.ngZone.runOutsideAngular(() => {
24
- for (let name in events) {
25
- if (events.hasOwnProperty(name)) {
26
- this.subscriptions.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
24
+ for (const name in events) {
25
+ if (Object.hasOwnProperty.call(events, name)) {
26
+ this.subscriptions?.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
27
27
  }
28
28
  }
29
29
  });
@@ -37,9 +37,9 @@ export class EventsOutsideAngularDirective {
37
37
  }
38
38
  }
39
39
  }
40
- EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
41
- EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
40
+ EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
41
+ EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
43
43
  type: Directive,
44
44
  args: [{
45
45
  selector: '[kendoEventsOutsideAngular]'
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -10,10 +10,10 @@ import * as i0 from "@angular/core";
10
10
  */
11
11
  export class EventsModule {
12
12
  }
13
- EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
- EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
15
- EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, decorators: [{
13
+ EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
14
+ EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
15
+ EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, decorators: [{
17
17
  type: NgModule,
18
18
  args: [{
19
19
  declarations: [EventsOutsideAngularDirective],
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { EventsOutsideAngularDirective } from './events/events-outside-angular.directive';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export * from './draggable';
@@ -9,5 +9,6 @@ export * from './resize-sensor';
9
9
  export * from './tokens';
10
10
  export * from './utils';
11
11
  export * from './enums';
12
+ export * from './utils/ng-class-parser';
12
13
  export { PreventableEvent } from './preventable-event';
13
- export { ScrollbarWidthService } from './utils/scrollbar-width.service';
14
+ export { ScrollbarWidthService, scrollbarWidth } from './utils/scrollbar-width.service';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export class PreventableEvent {
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
- export * from './main';
8
+ export * from './index';
@@ -1,11 +1,12 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  // eslint-disable import/no-deprecated
6
6
  import { ResizeService } from './resize.service';
7
7
  import { fromEvent, merge } from 'rxjs';
8
- const div = style => {
8
+ // TODO:NG13 CSP
9
+ const div = (style) => {
9
10
  const el = document.createElement('div');
10
11
  el.style.cssText = style;
11
12
  return el;
@@ -36,7 +37,7 @@ export class ResizeCompatService extends ResizeService {
36
37
  this.subscription.unsubscribe();
37
38
  }
38
39
  if (this.expand) {
39
- const element = this.element.nativeElement;
40
+ const element = this.element?.nativeElement;
40
41
  element.removeChild(this.expand);
41
42
  element.removeChild(this.shrink);
42
43
  this.expand.removeChild(this.expandChild);
@@ -48,9 +49,10 @@ export class ResizeCompatService extends ResizeService {
48
49
  this.reset();
49
50
  return true;
50
51
  }
52
+ return false;
51
53
  }
52
54
  init() {
53
- const parentElement = this.parentElement = this.element.nativeElement.parentElement;
55
+ const parentElement = this.parentElement = this.element?.nativeElement.parentElement;
54
56
  if (computedProp(parentElement, 'position') === 'static') {
55
57
  parentElement.style.position = 'relative';
56
58
  }
@@ -61,7 +63,7 @@ export class ResizeCompatService extends ResizeService {
61
63
  this.subscribe();
62
64
  }
63
65
  render() {
64
- const element = this.element.nativeElement;
66
+ const element = this.element?.nativeElement;
65
67
  element.style.cssText = WRAP_STYLE;
66
68
  element.setAttribute('dir', 'ltr');
67
69
  this.expand = div(WRAP_STYLE);
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { ResizeService } from './resize.service';
@@ -1,8 +1,8 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Injectable } from '@angular/core';
5
+ import { Injectable, NgZone } from '@angular/core';
6
6
  import { from as fromPromise } from 'rxjs';
7
7
  import * as i0 from "@angular/core";
8
8
  /**
@@ -57,8 +57,8 @@ export class ResizeBatchService {
57
57
  this.unsubscribe();
58
58
  }
59
59
  }
60
- ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
61
- ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, decorators: [{
60
+ ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
61
+ ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, decorators: [{
63
63
  type: Injectable
64
64
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
@@ -1,11 +1,12 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- import { Component, EventEmitter, Input, Output } from '@angular/core';
5
+ import { Component, EventEmitter, Input, Output, ElementRef, NgZone } from '@angular/core';
6
6
  import { auditTime } from 'rxjs/operators';
7
7
  import { ResizeCompatService } from './compat.service';
8
8
  import { ResizeObserverService } from './observer.service';
9
+ import { ResizeBatchService } from './resize-batch.service';
9
10
  import * as i0 from "@angular/core";
10
11
  import * as i1 from "./resize-batch.service";
11
12
  /**
@@ -52,9 +53,9 @@ export class ResizeSensorComponent {
52
53
  this.resizeService.acceptSize(size);
53
54
  }
54
55
  }
55
- ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: i1.ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
56
- ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, decorators: [{
56
+ ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: i1.ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
57
+ ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, decorators: [{
58
59
  type: Component,
59
60
  args: [{
60
61
  selector: 'kendo-resize-sensor',
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { NgModule } from '@angular/core';
@@ -12,10 +12,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
12
12
  */
13
13
  export class ResizeSensorModule {
14
14
  }
15
- ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16
- ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
17
- ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, decorators: [{
15
+ ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16
+ ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
17
+ ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, decorators: [{
19
19
  type: NgModule,
20
20
  args: [{
21
21
  declarations: [COMPONENT_DIRECTIVES],
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { EventEmitter } from '@angular/core';
@@ -31,12 +31,12 @@ export class ResizeService {
31
31
  }
32
32
  checkSize() {
33
33
  if (!this.parentElement) {
34
- return;
34
+ return false;
35
35
  }
36
36
  const { width, height } = this.measure();
37
37
  const sameSize = width === this.lastWidth && height === this.lastHeight;
38
38
  if (sameSize) {
39
- return;
39
+ return false;
40
40
  }
41
41
  this.lastWidth = width;
42
42
  this.lastHeight = height;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { ResizeSensorComponent } from './resize-sensor/resize-sensor.component';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export class KendoInput {
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { isChanged } from './is-changed';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  /**
@@ -0,0 +1,65 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /* eslint-disable @typescript-eslint/no-explicit-any */
6
+ /**
7
+ * @hidden
8
+ */
9
+ export const isPresent = (value) => value !== null && value !== undefined;
10
+ /**
11
+ * @hidden
12
+ */
13
+ export const isString = (value) => value instanceof String || typeof value === 'string';
14
+ /**
15
+ * @hidden
16
+ */
17
+ export const isObject = (value) => isPresent(value) && !Array.isArray(value) && typeof value === 'object';
18
+ /**
19
+ * @hidden
20
+ */
21
+ export const splitStringToArray = (value) => value.trim().replace(/\s+/g, " ").split(' ');
22
+ /**
23
+ * Receives CSS class declarations either as an object, string or array and returns an array of the class names.
24
+ *
25
+ * @hidden
26
+ */
27
+ export const parseCSSClassNames = (value) => {
28
+ if (Array.isArray(value)) {
29
+ return parseArrayClassNames(value);
30
+ }
31
+ if (isObject(value)) {
32
+ return parseObjectClassNames(value);
33
+ }
34
+ if (isString(value)) {
35
+ return parseStringClassNames(value);
36
+ }
37
+ };
38
+ const parseObjectClassNames = (value) => {
39
+ const classes = [];
40
+ Object.keys(value).forEach((className) => {
41
+ const currentClassName = splitStringToArray(className);
42
+ if (value[className] && currentClassName.length) {
43
+ classes.push(...currentClassName);
44
+ }
45
+ });
46
+ return classes;
47
+ };
48
+ const parseStringClassNames = (value) => {
49
+ const classes = [];
50
+ const classesArray = splitStringToArray(value);
51
+ classesArray.forEach((className) => {
52
+ classes.push(className);
53
+ });
54
+ return classes;
55
+ };
56
+ const parseArrayClassNames = (value) => {
57
+ const classes = [];
58
+ value.forEach((className) => {
59
+ const current = splitStringToArray(className);
60
+ if (current[0]) {
61
+ classes.push(...current);
62
+ }
63
+ });
64
+ return classes;
65
+ };
@@ -1,12 +1,27 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { Injectable, EventEmitter } from '@angular/core';
6
- import { getScrollbarWidth } from './get-scrollbar-width';
7
6
  import { isDocumentAvailable } from './is-document-available';
8
7
  import * as i0 from "@angular/core";
8
+ const canCreateElement = () => isDocumentAvailable() && document.createElement;
9
9
  const propName = '--kendo-scrollbar-width';
10
+ /**
11
+ * @hidden
12
+ */
13
+ export const scrollbarWidth = () => {
14
+ let scrollbarWidth = 0;
15
+ if (canCreateElement()) {
16
+ const div = document.createElement('div');
17
+ div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
18
+ div.innerHTML = ' ';
19
+ document.body.appendChild(div);
20
+ scrollbarWidth = div.offsetWidth - div.scrollWidth;
21
+ document.body.removeChild(div);
22
+ }
23
+ return scrollbarWidth;
24
+ };
10
25
  /**
11
26
  * @hidden
12
27
  */
@@ -14,13 +29,13 @@ export class ScrollbarWidthService {
14
29
  constructor() {
15
30
  this.changes = new EventEmitter();
16
31
  if (typeof window !== 'undefined' && isDocumentAvailable()) {
17
- document.body.style.setProperty(propName, `${getScrollbarWidth()}px`);
32
+ document.body.style.setProperty(propName, `${scrollbarWidth()}px`);
18
33
  }
19
34
  }
20
35
  }
21
- ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
22
- ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, decorators: [{
36
+ ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
37
+ ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, decorators: [{
24
39
  type: Injectable,
25
40
  args: [{
26
41
  providedIn: 'root'
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { isDocumentAvailable } from './utils/is-document-available';
@@ -7,4 +7,3 @@ export { isChanged } from './utils/is-changed';
7
7
  export { anyChanged } from './utils/any-changed';
8
8
  export { hasObservers } from './utils/has-observers';
9
9
  export { guid } from './utils/guid';
10
- export { getScrollbarWidth } from './utils/get-scrollbar-width';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { OnInit, OnDestroy, ElementRef, Renderer2, NgZone } from '@angular/core';
@@ -13,7 +13,7 @@ export declare class EventsOutsideAngularDirective implements OnInit, OnDestroy
13
13
  private renderer;
14
14
  events: any;
15
15
  scope: any;
16
- protected subscriptions: any[];
16
+ protected subscriptions?: any[] | null;
17
17
  constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2);
18
18
  ngOnInit(): void;
19
19
  ngOnDestroy(): void;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import * as i0 from "@angular/core";
package/events.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2023 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  export { EventsOutsideAngularDirective } from './events/events-outside-angular.directive';