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

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 (89) 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} +2 -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/{esm2015/utils/scrollbar-width.service.js → esm2020/utils/scrollbar-width.service.mjs} +21 -6
  62. package/{esm2015/utils.js → esm2020/utils.mjs} +1 -2
  63. package/events/events-outside-angular.directive.d.ts +2 -2
  64. package/events/events.module.d.ts +1 -1
  65. package/events.d.ts +1 -1
  66. package/fesm2015/progress-kendo-angular-common.mjs +753 -0
  67. package/{fesm2015/kendo-angular-common.js → fesm2020/progress-kendo-angular-common.mjs} +60 -58
  68. package/{main.d.ts → index.d.ts} +2 -2
  69. package/package.json +24 -55
  70. package/preventable-event.d.ts +1 -1
  71. package/{kendo-angular-common.d.ts → progress-kendo-angular-common.d.ts} +2 -2
  72. package/resize-sensor/compat.service.d.ts +3 -3
  73. package/resize-sensor/observer.service.d.ts +1 -1
  74. package/resize-sensor/resize-batch.service.d.ts +2 -2
  75. package/resize-sensor/resize-sensor.component.d.ts +1 -1
  76. package/resize-sensor/resize-sensor.module.d.ts +1 -1
  77. package/resize-sensor/resize.service.d.ts +3 -3
  78. package/resize-sensor.d.ts +1 -1
  79. package/tokens.d.ts +1 -1
  80. package/utils/any-changed.d.ts +1 -1
  81. package/utils/guid.d.ts +1 -1
  82. package/utils/has-observers.d.ts +1 -1
  83. package/utils/is-changed.d.ts +1 -1
  84. package/utils/is-document-available.d.ts +1 -1
  85. package/utils/scrollbar-width.service.d.ts +5 -1
  86. package/utils.d.ts +1 -2
  87. package/bundles/kendo-angular-common.umd.js +0 -5
  88. package/esm2015/utils/get-scrollbar-width.js +0 -21
  89. 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 © 2022 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';
@@ -47,23 +47,6 @@ const guid = () => {
47
47
  return id;
48
48
  };
49
49
 
50
- const canCreateElement = () => isDocumentAvailable() && document.createElement;
51
- /**
52
- * @hidden
53
- */
54
- function getScrollbarWidth() {
55
- let scrollbarWidth = 0;
56
- if (canCreateElement()) {
57
- const div = document.createElement('div');
58
- div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
59
- div.innerHTML = ' ';
60
- document.body.appendChild(div);
61
- scrollbarWidth = div.offsetWidth - div.scrollWidth;
62
- document.body.removeChild(div);
63
- }
64
- return scrollbarWidth;
65
- }
66
-
67
50
  class DraggableDirective {
68
51
  constructor(element, ngZone) {
69
52
  this.element = element;
@@ -93,20 +76,20 @@ class DraggableDirective {
93
76
  press: (e) => this.kendoPress.next(e),
94
77
  release: (e) => this.kendoRelease.next(e)
95
78
  });
96
- this.ngZone.runOutsideAngular(() => this.draggable.bindTo(this.element.nativeElement));
79
+ this.ngZone.runOutsideAngular(() => this.draggable?.bindTo(this.element.nativeElement));
97
80
  }
98
81
  }
99
82
  }
100
83
  destroyDraggable() {
101
84
  if (this.draggable) {
102
85
  this.draggable.destroy();
103
- this.draggable = null;
86
+ this.draggable = undefined;
104
87
  }
105
88
  }
106
89
  }
107
- 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 });
108
- 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 });
109
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, decorators: [{
90
+ 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 });
91
+ 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 });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, decorators: [{
110
93
  type: Directive,
111
94
  args: [{
112
95
  selector: '[kendoDraggable]'
@@ -126,10 +109,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
126
109
  */
127
110
  class DraggableModule {
128
111
  }
129
- DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
- DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
131
- DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableModule, decorators: [{
112
+ DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
113
+ DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
114
+ DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, decorators: [{
133
116
  type: NgModule,
134
117
  args: [{
135
118
  declarations: [DraggableDirective],
@@ -145,6 +128,7 @@ const closestInScope = (node, predicate, scope) => {
145
128
  if (node !== scope) {
146
129
  return node;
147
130
  }
131
+ return undefined;
148
132
  };
149
133
 
150
134
  const closest = (node, predicate) => {
@@ -266,9 +250,9 @@ class EventsOutsideAngularDirective {
266
250
  const events = this.events;
267
251
  this.subscriptions = [];
268
252
  this.ngZone.runOutsideAngular(() => {
269
- for (let name in events) {
270
- if (events.hasOwnProperty(name)) {
271
- this.subscriptions.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
253
+ for (const name in events) {
254
+ if (Object.hasOwnProperty.call(events, name)) {
255
+ this.subscriptions?.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
272
256
  }
273
257
  }
274
258
  });
@@ -282,9 +266,9 @@ class EventsOutsideAngularDirective {
282
266
  }
283
267
  }
284
268
  }
285
- 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 });
286
- EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
287
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
269
+ 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 });
270
+ EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
288
272
  type: Directive,
289
273
  args: [{
290
274
  selector: '[kendoEventsOutsideAngular]'
@@ -301,10 +285,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
301
285
  */
302
286
  class EventsModule {
303
287
  }
304
- EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
305
- EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
306
- EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule });
307
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: EventsModule, decorators: [{
288
+ EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
289
+ EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
290
+ EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule });
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, decorators: [{
308
292
  type: NgModule,
309
293
  args: [{
310
294
  declarations: [EventsOutsideAngularDirective],
@@ -339,12 +323,12 @@ class ResizeService {
339
323
  }
340
324
  checkSize() {
341
325
  if (!this.parentElement) {
342
- return;
326
+ return false;
343
327
  }
344
328
  const { width, height } = this.measure();
345
329
  const sameSize = width === this.lastWidth && height === this.lastHeight;
346
330
  if (sameSize) {
347
- return;
331
+ return false;
348
332
  }
349
333
  this.lastWidth = width;
350
334
  this.lastHeight = height;
@@ -369,7 +353,8 @@ class ResizeService {
369
353
  }
370
354
 
371
355
  // eslint-disable import/no-deprecated
372
- const div = style => {
356
+ // TODO:NG13 CSP
357
+ const div = (style) => {
373
358
  const el = document.createElement('div');
374
359
  el.style.cssText = style;
375
360
  return el;
@@ -400,7 +385,7 @@ class ResizeCompatService extends ResizeService {
400
385
  this.subscription.unsubscribe();
401
386
  }
402
387
  if (this.expand) {
403
- const element = this.element.nativeElement;
388
+ const element = this.element?.nativeElement;
404
389
  element.removeChild(this.expand);
405
390
  element.removeChild(this.shrink);
406
391
  this.expand.removeChild(this.expandChild);
@@ -412,9 +397,10 @@ class ResizeCompatService extends ResizeService {
412
397
  this.reset();
413
398
  return true;
414
399
  }
400
+ return false;
415
401
  }
416
402
  init() {
417
- const parentElement = this.parentElement = this.element.nativeElement.parentElement;
403
+ const parentElement = this.parentElement = this.element?.nativeElement.parentElement;
418
404
  if (computedProp(parentElement, 'position') === 'static') {
419
405
  parentElement.style.position = 'relative';
420
406
  }
@@ -425,7 +411,7 @@ class ResizeCompatService extends ResizeService {
425
411
  this.subscribe();
426
412
  }
427
413
  render() {
428
- const element = this.element.nativeElement;
414
+ const element = this.element?.nativeElement;
429
415
  element.style.cssText = WRAP_STYLE;
430
416
  element.setAttribute('dir', 'ltr');
431
417
  this.expand = div(WRAP_STYLE);
@@ -544,9 +530,9 @@ class ResizeBatchService {
544
530
  this.unsubscribe();
545
531
  }
546
532
  }
547
- ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
548
- ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService });
549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeBatchService, decorators: [{
533
+ ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
534
+ ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService });
535
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, decorators: [{
550
536
  type: Injectable
551
537
  }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
552
538
 
@@ -594,9 +580,9 @@ class ResizeSensorComponent {
594
580
  this.resizeService.acceptSize(size);
595
581
  }
596
582
  }
597
- ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
598
- 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 });
599
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorComponent, decorators: [{
583
+ ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
584
+ 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 });
585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, decorators: [{
600
586
  type: Component,
601
587
  args: [{
602
588
  selector: 'kendo-resize-sensor',
@@ -614,10 +600,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
614
600
  */
615
601
  class ResizeSensorModule {
616
602
  }
617
- ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
618
- ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
619
- ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
620
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ResizeSensorModule, decorators: [{
603
+ ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
604
+ ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
605
+ ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, decorators: [{
621
607
  type: NgModule,
622
608
  args: [{
623
609
  declarations: [COMPONENT_DIRECTIVES],
@@ -718,7 +704,23 @@ class PreventableEvent {
718
704
  }
719
705
  }
720
706
 
707
+ const canCreateElement = () => isDocumentAvailable() && document.createElement;
721
708
  const propName = '--kendo-scrollbar-width';
709
+ /**
710
+ * @hidden
711
+ */
712
+ const scrollbarWidth = () => {
713
+ let scrollbarWidth = 0;
714
+ if (canCreateElement()) {
715
+ const div = document.createElement('div');
716
+ div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
717
+ div.innerHTML = ' ';
718
+ document.body.appendChild(div);
719
+ scrollbarWidth = div.offsetWidth - div.scrollWidth;
720
+ document.body.removeChild(div);
721
+ }
722
+ return scrollbarWidth;
723
+ };
722
724
  /**
723
725
  * @hidden
724
726
  */
@@ -726,13 +728,13 @@ class ScrollbarWidthService {
726
728
  constructor() {
727
729
  this.changes = new EventEmitter();
728
730
  if (typeof window !== 'undefined' && isDocumentAvailable()) {
729
- document.body.style.setProperty(propName, `${getScrollbarWidth()}px`);
731
+ document.body.style.setProperty(propName, `${scrollbarWidth()}px`);
730
732
  }
731
733
  }
732
734
  }
733
- ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
734
- ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
735
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ScrollbarWidthService, decorators: [{
735
+ ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
736
+ ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
737
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, decorators: [{
736
738
  type: Injectable,
737
739
  args: [{
738
740
  providedIn: 'root'
@@ -743,5 +745,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
743
745
  * Generated bundle index. Do not edit.
744
746
  */
745
747
 
746
- export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, getScrollbarWidth, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFocusable, isFocusableWithTabKey, isVisible, matchesClasses, matchesNodeName, rtlScrollPosition };
748
+ export { DraggableDirective, DraggableModule, EventsModule, EventsOutsideAngularDirective, KendoInput, Keys, PreventableEvent, ResizeBatchService, ResizeCompatService, ResizeObserverService, ResizeSensorComponent, ResizeSensorModule, ScrollbarWidthService, anyChanged, closest, closestInScope, contains, findElement, findFocusable, findFocusableChild, guid, hasClasses, hasObservers, isChanged, isDocumentAvailable, isFocusable, isFocusableWithTabKey, isVisible, matchesClasses, matchesNodeName, rtlScrollPosition, scrollbarWidth };
747
749
 
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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';
@@ -10,4 +10,4 @@ export * from './tokens';
10
10
  export * from './utils';
11
11
  export * from './enums';
12
12
  export { PreventableEvent } from './preventable-event';
13
- export { ScrollbarWidthService } from './utils/scrollbar-width.service';
13
+ export { ScrollbarWidthService, scrollbarWidth } from './utils/scrollbar-width.service';
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-common",
3
- "version": "3.2.2",
3
+ "version": "11.0.0-develop.79",
4
4
  "description": "Kendo UI for Angular - Utility Package",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
7
7
  "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/telerik/kendo-angular-common.git"
11
- },
12
8
  "bugs": {
13
9
  "url": "https://github.com/telerik/kendo-angular"
14
10
  },
@@ -17,64 +13,37 @@
17
13
  "Kendo UI",
18
14
  "Progress"
19
15
  ],
20
- "dependencies": {
21
- "@progress/kendo-draggable": "^3.0.2",
22
- "tslib": "^2.3.1",
23
- "@progress/kendo-schematics": "^3.0.0"
24
- },
25
16
  "peerDependencies": {
26
- "@angular/animations": "12 - 15",
27
- "@angular/common": "12 - 15",
28
- "@angular/core": "12 - 15",
29
- "@angular/forms": "12 - 15",
17
+ "@angular/animations": "13 - 15",
18
+ "@angular/common": "13 - 15",
19
+ "@angular/core": "13 - 15",
30
20
  "rxjs": "^6.5.3 || ^7.0.0"
31
21
  },
32
- "config": {
33
- "commitizen": {
34
- "path": "./node_modules/cz-conventional-changelog"
35
- },
36
- "ghooks": {
37
- "commit-msg": "validate-commit-msg"
38
- },
39
- "validate-commit-msg": {
40
- "types": [
41
- "feat",
42
- "fix",
43
- "docs",
44
- "style",
45
- "refactor",
46
- "perf",
47
- "test",
48
- "chore",
49
- "revert"
50
- ],
51
- "warnOnFail": false,
52
- "maxSubjectLength": 100
53
- }
22
+ "dependencies": {
23
+ "@progress/kendo-draggable": "^3.0.2",
24
+ "tslib": "^2.3.1"
54
25
  },
55
26
  "publishConfig": {
56
27
  "access": "public"
57
28
  },
58
- "schematics": "./schematics/collection.json",
59
- "release": {
60
- "debug": false,
61
- "branchTags": {
62
- "develop": "dev"
29
+ "module": "fesm2015/progress-kendo-angular-common.mjs",
30
+ "es2020": "fesm2020/progress-kendo-angular-common.mjs",
31
+ "esm2020": "esm2020/progress-kendo-angular-common.mjs",
32
+ "fesm2020": "fesm2020/progress-kendo-angular-common.mjs",
33
+ "fesm2015": "fesm2015/progress-kendo-angular-common.mjs",
34
+ "typings": "progress-kendo-angular-common.d.ts",
35
+ "exports": {
36
+ "./package.json": {
37
+ "default": "./package.json"
63
38
  },
64
- "fallbackTags": {
65
- "dev": "latest"
66
- },
67
- "analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
68
- "generateNotes": "@progress/semantic-prerelease/generateNotes",
69
- "getLastRelease": "@progress/semantic-prerelease/getLastRelease",
70
- "verifyConditions": "@progress/semantic-prerelease/verifyConditions",
71
- "verifyRelease": "@progress/semantic-prerelease/verifyRelease"
39
+ ".": {
40
+ "types": "./progress-kendo-angular-common.d.ts",
41
+ "esm2020": "./esm2020/progress-kendo-angular-common.mjs",
42
+ "es2020": "./fesm2020/progress-kendo-angular-common.mjs",
43
+ "es2015": "./fesm2015/progress-kendo-angular-common.mjs",
44
+ "node": "./fesm2015/progress-kendo-angular-common.mjs",
45
+ "default": "./fesm2020/progress-kendo-angular-common.mjs"
46
+ }
72
47
  },
73
- "main": "bundles/kendo-angular-common.umd.js",
74
- "module": "fesm2015/kendo-angular-common.js",
75
- "es2015": "fesm2015/kendo-angular-common.js",
76
- "esm2015": "esm2015/kendo-angular-common.js",
77
- "fesm2015": "fesm2015/kendo-angular-common.js",
78
- "typings": "kendo-angular-common.d.ts",
79
48
  "sideEffects": false
80
49
  }
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 declare abstract class PreventableEvent {
@@ -1,9 +1,9 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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
8
  /// <amd-module name="@progress/kendo-angular-common" />
9
- export * from './main';
9
+ export * from './index';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { ElementRef, NgZone } from '@angular/core';
@@ -11,8 +11,8 @@ export declare class ResizeCompatService extends ResizeService {
11
11
  private expand;
12
12
  private expandChild;
13
13
  private shrink;
14
- private subscription;
15
- constructor(resizeBatchService: ResizeBatchService, element: ElementRef, ngZone: NgZone);
14
+ private subscription?;
15
+ constructor(resizeBatchService: ResizeBatchService, element: ElementRef | null, ngZone: NgZone);
16
16
  checkChanges(): void;
17
17
  destroy(): void;
18
18
  protected checkSize(): boolean;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { ElementRef, NgZone } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { NgZone, OnDestroy } from '@angular/core';
@@ -11,7 +11,7 @@ export declare class ResizeBatchService implements OnDestroy {
11
11
  private ngZone;
12
12
  private scheduled;
13
13
  private resolvedPromise;
14
- private subscription;
14
+ private subscription?;
15
15
  constructor(ngZone: NgZone);
16
16
  schedule(instance: any, method: any): void;
17
17
  isScheduled(instance: any): boolean;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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, OnDestroy, AfterViewChecked, ElementRef, NgZone } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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';
@@ -13,8 +13,8 @@ export declare abstract class ResizeService {
13
13
  protected resizeBatchService: ResizeBatchService;
14
14
  resize: EventEmitter<any>;
15
15
  acceptedSize: boolean;
16
- lastWidth: number;
17
- lastHeight: number;
16
+ lastWidth?: number;
17
+ lastHeight?: number;
18
18
  protected state: ServiceState;
19
19
  protected parentElement: any;
20
20
  protected abstract init(): void;
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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';
package/tokens.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 declare class KendoInput {
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { SimpleChanges } from '@angular/core';
package/utils/guid.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 © 2022 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';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 { SimpleChanges } from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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,9 +1,13 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * @hidden
9
+ */
10
+ export declare const scrollbarWidth: () => number;
7
11
  /**
8
12
  * @hidden
9
13
  */
package/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
2
+ * Copyright © 2022 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 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@progress/kendo-draggable"),require("@angular/common"),require("rxjs/operators"),require("rxjs")):"function"==typeof define&&define.amd?define("KendoAngularCommon",["exports","@angular/core","@progress/kendo-draggable","@angular/common","rxjs/operators","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KendoAngularCommon={},e.ng.core,e.KendoDraggable,e.ng.common,e.rxjs.operators,e.rxjs)}(this,function(e,o,M,t,N,r){"use strict";function R(n){var r;return n&&n.__esModule?n:(r=Object.create(null),n&&Object.keys(n).forEach(function(e){var t;"default"!==e&&(t=Object.getOwnPropertyDescriptor(n,e),Object.defineProperty(r,e,t.get?t:{enumerable:!0,get:function(){return n[e]}}))}),r.default=n,Object.freeze(r))}function n(){return"undefined"!=typeof document}function i(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)}var s=R(o),T=function(){return n()&&document.createElement};function a(){var e,t=0;return T()&&((e=document.createElement("div")).style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",document.body.appendChild(e),t=e.offsetWidth-e.scrollWidth,document.body.removeChild(e)),t}p.prototype.ngOnInit=function(){this.toggleDraggable()},p.prototype.ngOnChanges=function(e){i("enableDrag",e)&&this.toggleDraggable()},p.prototype.ngOnDestroy=function(){this.destroyDraggable()},p.prototype.toggleDraggable=function(){var t=this;n()&&(this.destroyDraggable(),this.enableDrag)&&(this.draggable=new M.Draggable({drag:function(e){return t.kendoDrag.next(e)},press:function(e){return t.kendoPress.next(e)},release:function(e){return t.kendoRelease.next(e)}}),this.ngZone.runOutsideAngular(function(){return t.draggable.bindTo(t.element.nativeElement)}))},p.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)};var c=p;function p(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new o.EventEmitter,this.kendoDrag=new o.EventEmitter,this.kendoRelease=new o.EventEmitter}c.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:c,deps:[{token:s.ElementRef},{token:s.NgZone}],target:s.ɵɵFactoryTarget.Directive}),c.ɵdir=s.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:c,selector:"[kendoDraggable]",inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},usesOnChanges:!0,ngImport:s}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:c,decorators:[{type:o.Directive,args:[{selector:"[kendoDraggable]"}]}],ctorParameters:function(){return[{type:s.ElementRef},{type:s.NgZone}]},propDecorators:{enableDrag:[{type:o.Input}],kendoPress:[{type:o.Output}],kendoDrag:[{type:o.Output}],kendoRelease:[{type:o.Output}]}});function l(e,t){for(;e&&!t(e);)e=e.parentNode;return e}function u(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=u(e,t);if(r)return r}e=e.nextSibling}}}function d(e,t){var n;return void 0===t&&(t=!0),!!f(e)&&(n=e.getAttribute("tabIndex"),!t||L(e))&&"-1"!==n}function h(e){return String(e).trim().split(" ")}function g(e,t){var n=h(t);return Boolean(h(e.className).find(function(e){return 0<=n.indexOf(e)}))}var y=function(){},Z=(y.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,deps:[],target:s.ɵɵFactoryTarget.NgModule}),y.ɵmod=s.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,declarations:[c],imports:[t.CommonModule],exports:[c]}),y.ɵinj=s.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,imports:[[t.CommonModule]]}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:y,decorators:[{type:o.NgModule,args:[{declarations:[c],exports:[c],imports:[t.CommonModule]}]}]}),/^(?:a|input|select|option|textarea|button|object)$/i),f=function(e){var t,n;return!!e.tagName&&(t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex")),!e.disabled&&Z.test(t)||n)},L=function(e){var t=e.getBoundingClientRect(),n=0<t.width&&0<t.height,t=0!==t.x&&0!==t.y;return(n||t)&&"hidden"!==window.getComputedStyle(e).visibility},m={};v.prototype.ngOnInit=function(){var t,n=this;this.element&&this.element.nativeElement&&(t=this.events,this.subscriptions=[],this.ngZone.runOutsideAngular(function(){for(var e in t)t.hasOwnProperty(e)&&n.subscriptions.push(n.renderer.listen(n.element.nativeElement,e,n.scope?t[e].bind(n.scope):t[e]))}))},v.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}};t=v;function v(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}t.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:t,deps:[{token:s.ElementRef},{token:s.NgZone},{token:s.Renderer2}],target:s.ɵɵFactoryTarget.Directive}),t.ɵdir=s.ɵɵngDeclareDirective({minVersion:"12.0.0",version:"12.2.16",type:t,selector:"[kendoEventsOutsideAngular]",inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"},ngImport:s}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:t,decorators:[{type:o.Directive,args:[{selector:"[kendoEventsOutsideAngular]"}]}],ctorParameters:function(){return[{type:s.ElementRef},{type:s.NgZone},{type:s.Renderer2}]},propDecorators:{events:[{type:o.Input,args:["kendoEventsOutsideAngular"]}],scope:[{type:o.Input}]}});var b=function(){},B=(b.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:b,deps:[],target:s.ɵɵFactoryTarget.NgModule}),b.ɵmod=s.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:b,declarations:[t],exports:[t]}),b.ɵinj=s.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:b}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:b,decorators:[{type:o.NgModule,args:[{declarations:[t],exports:[t]}]}]}),function(e,t){return(B=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)});function W(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;K.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},K.prototype.checkChanges=function(){n()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},K.prototype.destroy=function(){this.resizeBatchService.cancel(this)},K.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,e=e.height,n=t===this.lastWidth&&e===this.lastHeight;if(!n)return this.lastWidth=t,this.lastHeight=e,this.acceptedSize=!1,this.resize.emit(),!0}},K.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},K.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}};var D=K;function K(e){this.resizeBatchService=e,this.resize=new o.EventEmitter,this.acceptedSize=!1,this.state=0}function E(e){var t=document.createElement("div");return t.style.cssText=e,t}var k,C="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",_="position: absolute; left: 0; top: 0; transition: 0s;",H=(W(I,k=D),I.prototype.checkChanges=function(){2===this.state?this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize):k.prototype.checkChanges.call(this)},I.prototype.destroy=function(){var e;k.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand&&((e=this.element.nativeElement).removeChild(this.expand),e.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null)},I.prototype.checkSize=function(){if(k.prototype.checkSize.call(this))return this.reset(),!0},I.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},I.prototype.render=function(){var e=this.element.nativeElement,t=(e.style.cssText=C,e.setAttribute("dir","ltr"),this.expand=E(C),this.expandChild=E(_),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=E(C),E("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;"));this.shrink.appendChild(t),e.appendChild(this.shrink)},I.prototype.reset=function(){var e=this.expandChild,e=(e.style.width=1e5+"px",e.style.height=1e5+"px",this.expand),e=(e.scrollLeft=1e5,e.scrollTop=1e5,this.shrink);e.scrollLeft=1e5,e.scrollTop=1e5},I.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular(function(){e.subscription=r.merge(r.fromEvent(e.shrink,"scroll"),r.fromEvent(e.expand,"scroll")).subscribe(function(){e.checkSize()})})},I);function I(e,t,n){e=k.call(this,e)||this;return e.element=t,e.ngZone=n,e}var z,U="undefined"!=typeof ResizeObserver,S=(W(O,z=D),O.supported=function(){return U},O.prototype.destroy=function(){z.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},O.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(function(){e.resizeObserver=new ResizeObserver(function(){e.checkSize()}),e.resizeObserver.observe(e.parentElement)})},O);function O(e,t,n){e=z.call(this,e)||this;return e.element=t,e.ngZone=n,e}w.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular(function(){n.subscription=r.from(n.resolvedPromise).subscribe(n.flush)})},w.prototype.isScheduled=function(t){return Boolean(this.scheduled.find(function(e){return e.instance===t}))},w.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},w.prototype.ngOnDestroy=function(){this.unsubscribe()},w.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},w.prototype.flush=function(){this.scheduled.forEach(function(e){e.method.call(e.instance)}),this.scheduled=[],this.unsubscribe()};var x=w;function w(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}x.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:x,deps:[{token:s.NgZone}],target:s.ɵɵFactoryTarget.Injectable}),x.ɵprov=s.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:x}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:x,decorators:[{type:o.Injectable}],ctorParameters:function(){return[{type:s.NgZone}]}});V.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},V.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},V.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)};D=V;function V(e,t,n){var r=this,i=(this.rateLimit=10,this.resize=new o.EventEmitter,S.supported()?S:H),i=(this.resizeService=new i(e,t,n),1e3/(this.rateLimit||10));this.subscription=this.resizeService.resize.pipe(N.auditTime(i)).subscribe(function(){r.resizeService.acceptedSize||r.resize.emit()})}D.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:D,deps:[{token:x},{token:s.ElementRef},{token:s.NgZone}],target:s.ɵɵFactoryTarget.Component}),D.ɵcmp=s.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.16",type:D,selector:"kendo-resize-sensor",inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},ngImport:s,template:"",isInline:!0}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:D,decorators:[{type:o.Component,args:[{selector:"kendo-resize-sensor",template:""}]}],ctorParameters:function(){return[{type:x},{type:s.ElementRef},{type:s.NgZone}]},propDecorators:{rateLimit:[{type:o.Input}],resize:[{type:o.Output}]}});function q(){}var j=[D],A=function(){},j=(A.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:A,deps:[],target:s.ɵɵFactoryTarget.NgModule}),A.ɵmod=s.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:A,declarations:[D],exports:[D]}),A.ɵinj=s.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:A,providers:[x]}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:A,decorators:[{type:o.NgModule,args:[{declarations:[j],exports:[j],providers:[x]}]}]}),e.Keys=void 0,(j=e.Keys||(e.Keys={}))[j.Alt=18]="Alt",j[j.ArrowDown=40]="ArrowDown",j[j.ArrowLeft=37]="ArrowLeft",j[j.ArrowRight=39]="ArrowRight",j[j.ArrowUp=38]="ArrowUp",j[j.Backspace=8]="Backspace",j[j.Control=17]="Control",j[j.Delete=46]="Delete",j[j.Digit0=48]="Digit0",j[j.Digit1=49]="Digit1",j[j.Digit2=50]="Digit2",j[j.Digit3=51]="Digit3",j[j.Digit4=52]="Digit4",j[j.Digit5=53]="Digit5",j[j.Digit6=54]="Digit6",j[j.Digit7=55]="Digit7",j[j.Digit8=56]="Digit8",j[j.Digit9=57]="Digit9",j[j.End=35]="End",j[j.Enter=13]="Enter",j[j.Escape=27]="Escape",j[j.F1=112]="F1",j[j.F2=113]="F2",j[j.F10=121]="F10",j[j.Home=36]="Home",j[j.Insert=45]="Insert",j[j.KeyA=65]="KeyA",j[j.KeyB=66]="KeyB",j[j.KeyC=67]="KeyC",j[j.KeyD=68]="KeyD",j[j.KeyE=69]="KeyE",j[j.KeyF=70]="KeyF",j[j.KeyG=71]="KeyG",j[j.KeyH=72]="KeyH",j[j.KeyI=73]="KeyI",j[j.KeyJ=74]="KeyJ",j[j.KeyK=75]="KeyK",j[j.KeyL=76]="KeyL",j[j.KeyM=77]="KeyM",j[j.KeyN=78]="KeyN",j[j.KeyO=79]="KeyO",j[j.KeyP=80]="KeyP",j[j.KeyQ=81]="KeyQ",j[j.KeyR=82]="KeyR",j[j.KeyS=83]="KeyS",j[j.KeyT=84]="KeyT",j[j.KeyU=85]="KeyU",j[j.KeyV=86]="KeyV",j[j.KeyW=87]="KeyW",j[j.KeyX=88]="KeyX",j[j.KeyY=89]="KeyY",j[j.KeyZ=90]="KeyZ",j[j.NumpadDecimal=110]="NumpadDecimal",j[j.PageDown=34]="PageDown",j[j.PageUp=33]="PageUp",j[j.Shift=16]="Shift",j[j.Space=32]="Space",j[j.Tab=9]="Tab",P.prototype.preventDefault=function(){this.prevented=!0},P.prototype.isDefaultPrevented=function(){return this.prevented},P);function P(){this.prevented=!1}var F=function(){this.changes=new o.EventEmitter,"undefined"!=typeof window&&n()&&document.body.style.setProperty("--kendo-scrollbar-width",a()+"px")};F.ɵfac=s.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:F,deps:[],target:s.ɵɵFactoryTarget.Injectable}),F.ɵprov=s.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:F,providedIn:"root"}),s.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.16",ngImport:s,type:F,decorators:[{type:o.Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[]}}),e.DraggableDirective=c,e.DraggableModule=y,e.EventsModule=b,e.EventsOutsideAngularDirective=t,e.KendoInput=q,e.PreventableEvent=j,e.ResizeBatchService=x,e.ResizeCompatService=H,e.ResizeObserverService=S,e.ResizeSensorComponent=D,e.ResizeSensorModule=A,e.ScrollbarWidthService=F,e.anyChanged=function(e,t,n){return void 0===n&&(n=!0),e.some(function(e){return i(e,t,n)})},e.closest=l,e.closestInScope=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},e.contains=function(t,n,e){var r;return void 0===e&&(e=!1),!!l(n,function(e){return e===t})&&(r=l(n,function(e){return e===n}))&&(e||r!==t)},e.findElement=u,e.findFocusable=function(e,t){return void 0===t&&(t=!0),u(e,function(e){return d(e,t)})},e.findFocusableChild=function(e,t){return void 0===t&&(t=!0),u(e,function(e){return d(e,t)},!1)},e.getScrollbarWidth=a,e.guid=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},e.hasClasses=g,e.hasObservers=function(e){return e&&0<e.observers.length},e.isChanged=i,e.isDocumentAvailable=n,e.isFocusable=f,e.isFocusableWithTabKey=d,e.isVisible=L,e.matchesClasses=function(t){return function(e){return g(e,t)}},e.matchesNodeName=function(t){return m[t]||(m[t]=function(e){return String(e.nodeName).toLowerCase()===t.toLowerCase()}),m[t]},e.rtlScrollPosition=function(e,t,n){var r=e;return n<0?r=-e:0<n&&(r=t.scrollWidth-t.offsetWidth-e),r},Object.defineProperty(e,"__esModule",{value:!0})});