@progress/kendo-angular-common 2.0.4-dev.202203091004 → 3.0.0-dev.202204131617

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 (167) hide show
  1. package/bundles/kendo-angular-common.umd.js +5 -0
  2. package/{dist/es2015/dom-queries → dom-queries}/closest-in-scope.d.ts +0 -0
  3. package/{dist/es2015/dom-queries → dom-queries}/closest.d.ts +0 -0
  4. package/{dist/es2015/dom-queries → dom-queries}/contains.d.ts +0 -0
  5. package/{dist/es2015/dom-queries → dom-queries}/find-element.d.ts +0 -0
  6. package/{dist/es2015/dom-queries → dom-queries}/find-focusable-child.d.ts +0 -0
  7. package/{dist/es2015/dom-queries → dom-queries}/find-focusable.d.ts +0 -0
  8. package/{dist/es2015/dom-queries → dom-queries}/has-classes.d.ts +0 -0
  9. package/{dist/es2015/dom-queries → dom-queries}/is-focusable-with-tab-key.d.ts +0 -0
  10. package/{dist/es2015/dom-queries → dom-queries}/is-focusable.d.ts +0 -0
  11. package/{dist/es2015/dom-queries → dom-queries}/is-visible.d.ts +0 -0
  12. package/{dist/es2015/dom-queries → dom-queries}/matches-classes.d.ts +0 -0
  13. package/{dist/es2015/dom-queries → dom-queries}/matches-node-name.d.ts +0 -0
  14. package/{dist/es2015/dom-queries → dom-queries}/rtl-scroll-position.d.ts +0 -0
  15. package/{dist/es2015/dom-queries.d.ts → dom-queries.d.ts} +0 -0
  16. package/{dist/es2015/draggable → draggable}/draggable.directive.d.ts +3 -0
  17. package/{dist/es2015/draggable → draggable}/draggable.module.d.ts +6 -0
  18. package/{dist/es2015/draggable.d.ts → draggable.d.ts} +0 -0
  19. package/{dist/es2015/enums → enums}/keys.d.ts +0 -0
  20. package/{dist/es2015/enums.d.ts → enums.d.ts} +0 -0
  21. package/{dist/es2015 → esm2015}/dom-queries/closest-in-scope.js +0 -0
  22. package/{dist/es2015 → esm2015}/dom-queries/closest.js +0 -0
  23. package/{dist/es2015 → esm2015}/dom-queries/contains.js +0 -0
  24. package/{dist/es2015 → esm2015}/dom-queries/find-element.js +0 -0
  25. package/{dist/es2015 → esm2015}/dom-queries/find-focusable-child.js +0 -0
  26. package/{dist/es2015 → esm2015}/dom-queries/find-focusable.js +0 -0
  27. package/{dist/es2015 → esm2015}/dom-queries/has-classes.js +0 -2
  28. package/{dist/es2015 → esm2015}/dom-queries/is-focusable-with-tab-key.js +0 -0
  29. package/{dist/es2015 → esm2015}/dom-queries/is-focusable.js +0 -0
  30. package/{dist/es2015 → esm2015}/dom-queries/is-visible.js +0 -0
  31. package/{dist/es2015 → esm2015}/dom-queries/matches-classes.js +0 -0
  32. package/{dist/es2015 → esm2015}/dom-queries/matches-node-name.js +0 -0
  33. package/{dist/es2015 → esm2015}/dom-queries/rtl-scroll-position.js +0 -0
  34. package/{dist/es → esm2015}/dom-queries.js +0 -0
  35. package/{dist/es2015 → esm2015}/draggable/draggable.directive.js +20 -27
  36. package/esm2015/draggable/draggable.module.js +24 -0
  37. package/{dist/es → esm2015}/draggable.js +0 -0
  38. package/{dist/es → esm2015}/enums/keys.js +0 -0
  39. package/{dist/es → esm2015}/enums.js +0 -0
  40. package/{dist/es2015 → esm2015}/events/events-outside-angular.directive.js +17 -22
  41. package/esm2015/events/events.module.js +22 -0
  42. package/{dist/es → esm2015}/events.js +0 -0
  43. package/{dist/es2015/index.js → esm2015/kendo-angular-common.js} +0 -1
  44. package/{dist/es → esm2015}/main.js +0 -0
  45. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  46. package/{dist/es2015 → esm2015}/resize-sensor/compat.service.js +1 -4
  47. package/{dist/es2015 → esm2015}/resize-sensor/observer.service.js +0 -0
  48. package/{dist/es2015 → esm2015}/resize-sensor/resize-batch.service.js +9 -9
  49. package/{dist/es2015 → esm2015}/resize-sensor/resize-sensor.component.js +18 -21
  50. package/esm2015/resize-sensor/resize-sensor.module.js +25 -0
  51. package/{dist/es2015 → esm2015}/resize-sensor/resize.service.js +0 -0
  52. package/{dist/es → esm2015}/resize-sensor.js +0 -0
  53. package/{dist/es2015 → esm2015}/tokens.js +0 -0
  54. package/{dist/es2015 → esm2015}/utils/any-changed.js +3 -0
  55. package/{dist/es2015 → esm2015}/utils/guid.js +5 -2
  56. package/{dist/es2015 → esm2015}/utils/has-observers.js +3 -0
  57. package/{dist/es2015 → esm2015}/utils/is-changed.js +3 -0
  58. package/{dist/es2015 → esm2015}/utils/is-document-available.js +3 -0
  59. package/{dist/es → esm2015}/utils.js +0 -0
  60. package/{dist/es2015/events → events}/events-outside-angular.directive.d.ts +3 -0
  61. package/{dist/es2015/events → events}/events.module.d.ts +5 -0
  62. package/{dist/es2015/events.d.ts → events.d.ts} +0 -0
  63. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-common.js} +115 -98
  64. package/{dist/es/index.js → kendo-angular-common.d.ts} +1 -1
  65. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  66. package/package.json +32 -87
  67. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  68. package/{dist/es2015/resize-sensor → resize-sensor}/compat.service.d.ts +0 -0
  69. package/{dist/es2015/resize-sensor → resize-sensor}/observer.service.d.ts +0 -0
  70. package/{dist/es2015/resize-sensor → resize-sensor}/resize-batch.service.d.ts +3 -0
  71. package/{dist/es2015/resize-sensor → resize-sensor}/resize-sensor.component.d.ts +3 -0
  72. package/{dist/es2015/resize-sensor → resize-sensor}/resize-sensor.module.d.ts +5 -0
  73. package/{dist/es2015/resize-sensor → resize-sensor}/resize.service.d.ts +0 -0
  74. package/{dist/es2015/resize-sensor.d.ts → resize-sensor.d.ts} +0 -0
  75. package/{dist/es2015/tokens.d.ts → tokens.d.ts} +0 -0
  76. package/{dist/es2015/utils → utils}/any-changed.d.ts +3 -0
  77. package/{dist/es2015/utils → utils}/guid.d.ts +3 -0
  78. package/{dist/es2015/utils → utils}/has-observers.d.ts +3 -0
  79. package/{dist/es2015/utils → utils}/is-changed.d.ts +3 -0
  80. package/{dist/es2015/utils → utils}/is-document-available.d.ts +3 -0
  81. package/{dist/es2015/utils.d.ts → utils.d.ts} +0 -0
  82. package/dist/cdn/js/kendo-angular-common.js +0 -20
  83. package/dist/cdn/main.js +0 -5
  84. package/dist/es/dom-queries/closest-in-scope.js +0 -12
  85. package/dist/es/dom-queries/closest.js +0 -10
  86. package/dist/es/dom-queries/contains.js +0 -14
  87. package/dist/es/dom-queries/find-element.js +0 -23
  88. package/dist/es/dom-queries/find-focusable-child.js +0 -10
  89. package/dist/es/dom-queries/find-focusable.js +0 -10
  90. package/dist/es/dom-queries/has-classes.js +0 -11
  91. package/dist/es/dom-queries/is-focusable-with-tab-key.js +0 -15
  92. package/dist/es/dom-queries/is-focusable.js +0 -14
  93. package/dist/es/dom-queries/is-visible.js +0 -12
  94. package/dist/es/dom-queries/matches-classes.js +0 -8
  95. package/dist/es/dom-queries/matches-node-name.js +0 -13
  96. package/dist/es/dom-queries/rtl-scroll-position.js +0 -17
  97. package/dist/es/draggable/draggable.directive.js +0 -73
  98. package/dist/es/draggable/draggable.module.js +0 -24
  99. package/dist/es/events/events-outside-angular.directive.js +0 -59
  100. package/dist/es/events/events.module.js +0 -22
  101. package/dist/es/preventable-event.js +0 -29
  102. package/dist/es/resize-sensor/compat.service.js +0 -106
  103. package/dist/es/resize-sensor/observer.service.js +0 -44
  104. package/dist/es/resize-sensor/resize-batch.service.js +0 -66
  105. package/dist/es/resize-sensor/resize-sensor.component.js +0 -72
  106. package/dist/es/resize-sensor/resize-sensor.module.js +0 -25
  107. package/dist/es/resize-sensor/resize.service.js +0 -64
  108. package/dist/es/tokens.js +0 -10
  109. package/dist/es/utils/any-changed.js +0 -9
  110. package/dist/es/utils/guid.js +0 -16
  111. package/dist/es/utils/has-observers.js +0 -5
  112. package/dist/es/utils/is-changed.js +0 -10
  113. package/dist/es/utils/is-document-available.js +0 -5
  114. package/dist/es2015/dom-queries.js +0 -17
  115. package/dist/es2015/draggable/draggable.module.js +0 -21
  116. package/dist/es2015/draggable.js +0 -6
  117. package/dist/es2015/enums/keys.js +0 -68
  118. package/dist/es2015/enums.js +0 -5
  119. package/dist/es2015/events/events.module.js +0 -19
  120. package/dist/es2015/events.js +0 -6
  121. package/dist/es2015/index.d.ts +0 -9
  122. package/dist/es2015/index.metadata.json +0 -1
  123. package/dist/es2015/main.js +0 -12
  124. package/dist/es2015/resize-sensor/resize-sensor.module.js +0 -22
  125. package/dist/es2015/resize-sensor.js +0 -9
  126. package/dist/es2015/utils.js +0 -9
  127. package/dist/fesm5/index.js +0 -740
  128. package/dist/npm/dom-queries/closest-in-scope.js +0 -14
  129. package/dist/npm/dom-queries/closest.js +0 -12
  130. package/dist/npm/dom-queries/contains.js +0 -16
  131. package/dist/npm/dom-queries/find-element.js +0 -25
  132. package/dist/npm/dom-queries/find-focusable-child.js +0 -12
  133. package/dist/npm/dom-queries/find-focusable.js +0 -12
  134. package/dist/npm/dom-queries/has-classes.js +0 -13
  135. package/dist/npm/dom-queries/is-focusable-with-tab-key.js +0 -17
  136. package/dist/npm/dom-queries/is-focusable.js +0 -16
  137. package/dist/npm/dom-queries/is-visible.js +0 -14
  138. package/dist/npm/dom-queries/matches-classes.js +0 -10
  139. package/dist/npm/dom-queries/matches-node-name.js +0 -15
  140. package/dist/npm/dom-queries/rtl-scroll-position.js +0 -20
  141. package/dist/npm/dom-queries.js +0 -32
  142. package/dist/npm/draggable/draggable.directive.js +0 -75
  143. package/dist/npm/draggable/draggable.module.js +0 -26
  144. package/dist/npm/draggable.js +0 -10
  145. package/dist/npm/enums/keys.js +0 -70
  146. package/dist/npm/enums.js +0 -8
  147. package/dist/npm/events/events-outside-angular.directive.js +0 -61
  148. package/dist/npm/events/events.module.js +0 -24
  149. package/dist/npm/events.js +0 -10
  150. package/dist/npm/index.js +0 -13
  151. package/dist/npm/main.js +0 -16
  152. package/dist/npm/preventable-event.js +0 -31
  153. package/dist/npm/resize-sensor/compat.service.js +0 -109
  154. package/dist/npm/resize-sensor/observer.service.js +0 -46
  155. package/dist/npm/resize-sensor/resize-batch.service.js +0 -68
  156. package/dist/npm/resize-sensor/resize-sensor.component.js +0 -74
  157. package/dist/npm/resize-sensor/resize-sensor.module.js +0 -27
  158. package/dist/npm/resize-sensor/resize.service.js +0 -66
  159. package/dist/npm/resize-sensor.js +0 -16
  160. package/dist/npm/tokens.js +0 -12
  161. package/dist/npm/utils/any-changed.js +0 -11
  162. package/dist/npm/utils/guid.js +0 -18
  163. package/dist/npm/utils/has-observers.js +0 -7
  164. package/dist/npm/utils/is-changed.js +0 -12
  165. package/dist/npm/utils/is-document-available.js +0 -7
  166. package/dist/npm/utils.js +0 -16
  167. package/dist/systemjs/kendo-angular-common.js +0 -5
@@ -1,106 +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
- // tslint:disable:deprecation
6
- import * as tslib_1 from "tslib";
7
- import { ResizeService } from './resize.service';
8
- import { fromEvent, merge } from 'rxjs';
9
- var div = function (style) {
10
- var el = document.createElement('div');
11
- el.style.cssText = style;
12
- return el;
13
- };
14
- var ɵ0 = div;
15
- var computedProp = function (elem, prop) {
16
- return getComputedStyle(elem, null).getPropertyValue(prop);
17
- };
18
- var ɵ1 = computedProp;
19
- var WRAP_STYLE = 'position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;' +
20
- 'overflow: hidden; visibility: hidden;';
21
- var EXPAND_CHILD_STYLE = 'position: absolute; left: 0; top: 0; transition: 0s;';
22
- var SHRINK_CHILD_STYLE = EXPAND_CHILD_STYLE + 'width: 200%; height: 200%;';
23
- var ResizeCompatService = /** @class */ (function (_super) {
24
- tslib_1.__extends(ResizeCompatService, _super);
25
- function ResizeCompatService(resizeBatchService, element, ngZone) {
26
- var _this = _super.call(this, resizeBatchService) || this;
27
- _this.element = element;
28
- _this.ngZone = ngZone;
29
- return _this;
30
- }
31
- ResizeCompatService.prototype.checkChanges = function () {
32
- if (this.state === 2 /* Initialized */) {
33
- if (!this.resizeBatchService.isScheduled(this)) {
34
- this.resizeBatchService.schedule(this, this.checkSize);
35
- }
36
- return;
37
- }
38
- _super.prototype.checkChanges.call(this);
39
- };
40
- ResizeCompatService.prototype.destroy = function () {
41
- _super.prototype.destroy.call(this);
42
- if (this.subscription) {
43
- this.subscription.unsubscribe();
44
- }
45
- if (this.expand) {
46
- var element = this.element.nativeElement;
47
- element.removeChild(this.expand);
48
- element.removeChild(this.shrink);
49
- this.expand.removeChild(this.expandChild);
50
- this.expand = this.expandChild = this.shrink = this.element = null;
51
- }
52
- };
53
- ResizeCompatService.prototype.checkSize = function () {
54
- if (_super.prototype.checkSize.call(this)) {
55
- this.reset();
56
- return true;
57
- }
58
- };
59
- ResizeCompatService.prototype.init = function () {
60
- var parentElement = this.parentElement = this.element.nativeElement.parentElement;
61
- if (computedProp(parentElement, 'position') === 'static') {
62
- parentElement.style.position = 'relative';
63
- }
64
- this.state = 2 /* Initialized */;
65
- this.render();
66
- this.reset();
67
- this.initSize();
68
- this.subscribe();
69
- };
70
- ResizeCompatService.prototype.render = function () {
71
- var element = this.element.nativeElement;
72
- element.style.cssText = WRAP_STYLE;
73
- element.setAttribute('dir', 'ltr');
74
- this.expand = div(WRAP_STYLE);
75
- this.expandChild = div(EXPAND_CHILD_STYLE);
76
- this.expand.appendChild(this.expandChild);
77
- element.appendChild(this.expand);
78
- this.shrink = div(WRAP_STYLE);
79
- var shrinkChild = div(SHRINK_CHILD_STYLE);
80
- this.shrink.appendChild(shrinkChild);
81
- element.appendChild(this.shrink);
82
- };
83
- ResizeCompatService.prototype.reset = function () {
84
- var expandChild = this.expandChild;
85
- expandChild.style.width = 100000 + 'px';
86
- expandChild.style.height = 100000 + 'px';
87
- var expand = this.expand;
88
- expand.scrollLeft = 100000;
89
- expand.scrollTop = 100000;
90
- var shrink = this.shrink;
91
- shrink.scrollLeft = 100000;
92
- shrink.scrollTop = 100000;
93
- };
94
- ResizeCompatService.prototype.subscribe = function () {
95
- var _this = this;
96
- this.ngZone.runOutsideAngular(function () {
97
- _this.subscription = merge(fromEvent(_this.shrink, 'scroll'), fromEvent(_this.expand, 'scroll'))
98
- .subscribe(function () {
99
- _this.checkSize();
100
- });
101
- });
102
- };
103
- return ResizeCompatService;
104
- }(ResizeService));
105
- export { ResizeCompatService };
106
- export { ɵ0, ɵ1 };
@@ -1,44 +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
- import * as tslib_1 from "tslib";
6
- import { ResizeService } from './resize.service';
7
- var HAS_OBSERVER = typeof ResizeObserver !== 'undefined';
8
- /**
9
- * @hidden
10
- */
11
- var ResizeObserverService = /** @class */ (function (_super) {
12
- tslib_1.__extends(ResizeObserverService, _super);
13
- function ResizeObserverService(resizeBatchService, element, ngZone) {
14
- var _this = _super.call(this, resizeBatchService) || this;
15
- _this.element = element;
16
- _this.ngZone = ngZone;
17
- return _this;
18
- }
19
- ResizeObserverService.supported = function () {
20
- return HAS_OBSERVER;
21
- };
22
- ResizeObserverService.prototype.destroy = function () {
23
- _super.prototype.destroy.call(this);
24
- if (this.resizeObserver) {
25
- this.resizeObserver.disconnect();
26
- this.resizeObserver = null;
27
- }
28
- this.parentElement = null;
29
- };
30
- ResizeObserverService.prototype.init = function () {
31
- var _this = this;
32
- this.parentElement = this.element.nativeElement.parentElement;
33
- this.initSize();
34
- this.state = 2 /* Initialized */;
35
- this.ngZone.runOutsideAngular(function () {
36
- _this.resizeObserver = new ResizeObserver(function () {
37
- _this.checkSize();
38
- });
39
- _this.resizeObserver.observe(_this.parentElement);
40
- });
41
- };
42
- return ResizeObserverService;
43
- }(ResizeService));
44
- export { ResizeObserverService };
@@ -1,66 +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
- import * as tslib_1 from "tslib";
6
- import { Injectable, NgZone } from '@angular/core';
7
- import { from as fromPromise } from 'rxjs';
8
- /**
9
- * @hidden
10
- */
11
- var ResizeBatchService = /** @class */ (function () {
12
- function ResizeBatchService(ngZone) {
13
- this.ngZone = ngZone;
14
- this.scheduled = [];
15
- this.resolvedPromise = Promise.resolve(null);
16
- this.flush = this.flush.bind(this);
17
- }
18
- ResizeBatchService.prototype.schedule = function (instance, method) {
19
- var _this = this;
20
- this.scheduled.push({ instance: instance, method: method });
21
- if (!this.subscription) {
22
- this.ngZone.runOutsideAngular(function () {
23
- _this.subscription = fromPromise(_this.resolvedPromise)
24
- .subscribe(_this.flush);
25
- });
26
- }
27
- };
28
- ResizeBatchService.prototype.isScheduled = function (instance) {
29
- return Boolean(this.scheduled.find(function (item) { return item.instance === instance; }));
30
- };
31
- ResizeBatchService.prototype.cancel = function (instance) {
32
- var scheduled = this.scheduled;
33
- var count = scheduled.length;
34
- for (var idx = 0; idx < count; idx++) {
35
- if (scheduled[idx].instance === instance) {
36
- scheduled.splice(idx, 1);
37
- if (!scheduled.length) {
38
- this.unsubscribe();
39
- }
40
- return;
41
- }
42
- }
43
- };
44
- ResizeBatchService.prototype.ngOnDestroy = function () {
45
- this.unsubscribe();
46
- };
47
- ResizeBatchService.prototype.unsubscribe = function () {
48
- if (this.subscription) {
49
- this.subscription.unsubscribe();
50
- this.subscription = null;
51
- }
52
- };
53
- ResizeBatchService.prototype.flush = function () {
54
- this.scheduled.forEach(function (item) {
55
- item.method.call(item.instance);
56
- });
57
- this.scheduled = [];
58
- this.unsubscribe();
59
- };
60
- ResizeBatchService = tslib_1.__decorate([
61
- Injectable(),
62
- tslib_1.__metadata("design:paramtypes", [NgZone])
63
- ], ResizeBatchService);
64
- return ResizeBatchService;
65
- }());
66
- export { ResizeBatchService };
@@ -1,72 +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
- import * as tslib_1 from "tslib";
6
- import { Component, EventEmitter, Input, Output, ElementRef, NgZone } from '@angular/core';
7
- import { auditTime } from 'rxjs/operators';
8
- import { ResizeCompatService } from './compat.service';
9
- import { ResizeObserverService } from './observer.service';
10
- import { ResizeBatchService } from './resize-batch.service';
11
- /**
12
- * Emit up to 10 resize events per second by default.
13
- * Chosen as a compromise between responsiveness and performance.
14
- */
15
- var DEFAULT_RATE_LIMIT = 10;
16
- /**
17
- * Resize Sensor Component
18
- *
19
- * Triggers a "resize" event whenever the parent DOM element size changes.
20
- */
21
- var ResizeSensorComponent = /** @class */ (function () {
22
- function ResizeSensorComponent(resizeBatchService, element, ngZone) {
23
- var _this = this;
24
- /**
25
- * The maximum number of resize events to emit per second.
26
- *
27
- * Defaults to 10.
28
- */
29
- this.rateLimit = DEFAULT_RATE_LIMIT;
30
- /**
31
- * Fires when the parent DOM element has been resized.
32
- */
33
- this.resize = new EventEmitter();
34
- var serviceType = ResizeObserverService.supported() ? ResizeObserverService : ResizeCompatService;
35
- this.resizeService = new serviceType(resizeBatchService, element, ngZone);
36
- var throttleTime = 1000 / (this.rateLimit || DEFAULT_RATE_LIMIT);
37
- this.subscription = this.resizeService.resize
38
- .pipe(auditTime(throttleTime))
39
- .subscribe(function () {
40
- if (!_this.resizeService.acceptedSize) {
41
- _this.resize.emit();
42
- }
43
- });
44
- }
45
- ResizeSensorComponent.prototype.ngAfterViewChecked = function () {
46
- this.resizeService.checkChanges();
47
- };
48
- ResizeSensorComponent.prototype.ngOnDestroy = function () {
49
- this.subscription.unsubscribe();
50
- this.resizeService.destroy();
51
- };
52
- ResizeSensorComponent.prototype.acceptSize = function (size) {
53
- this.resizeService.acceptSize(size);
54
- };
55
- tslib_1.__decorate([
56
- Input(),
57
- tslib_1.__metadata("design:type", Number)
58
- ], ResizeSensorComponent.prototype, "rateLimit", void 0);
59
- tslib_1.__decorate([
60
- Output(),
61
- tslib_1.__metadata("design:type", EventEmitter)
62
- ], ResizeSensorComponent.prototype, "resize", void 0);
63
- ResizeSensorComponent = tslib_1.__decorate([
64
- Component({
65
- selector: 'kendo-resize-sensor',
66
- template: ''
67
- }),
68
- tslib_1.__metadata("design:paramtypes", [ResizeBatchService, ElementRef, NgZone])
69
- ], ResizeSensorComponent);
70
- return ResizeSensorComponent;
71
- }());
72
- export { ResizeSensorComponent };
@@ -1,25 +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
- import * as tslib_1 from "tslib";
6
- import { NgModule } from '@angular/core';
7
- import { ResizeSensorComponent } from './resize-sensor.component';
8
- import { ResizeBatchService } from './resize-batch.service';
9
- var COMPONENT_DIRECTIVES = [ResizeSensorComponent];
10
- /**
11
- * Resize Sensor module
12
- */
13
- var ResizeSensorModule = /** @class */ (function () {
14
- function ResizeSensorModule() {
15
- }
16
- ResizeSensorModule = tslib_1.__decorate([
17
- NgModule({
18
- declarations: [COMPONENT_DIRECTIVES],
19
- exports: [COMPONENT_DIRECTIVES],
20
- providers: [ResizeBatchService]
21
- })
22
- ], ResizeSensorModule);
23
- return ResizeSensorModule;
24
- }());
25
- export { ResizeSensorModule };
@@ -1,64 +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
- import { EventEmitter } from '@angular/core';
6
- import { isDocumentAvailable } from '../utils';
7
- var ResizeService = /** @class */ (function () {
8
- function ResizeService(resizeBatchService) {
9
- this.resizeBatchService = resizeBatchService;
10
- this.resize = new EventEmitter();
11
- this.acceptedSize = false;
12
- this.state = 0 /* Initial */;
13
- }
14
- ResizeService.prototype.acceptSize = function (size) {
15
- if (size === void 0) { size = this.measure(); }
16
- this.lastWidth = size.width;
17
- this.lastHeight = size.height;
18
- this.acceptedSize = true;
19
- };
20
- ResizeService.prototype.checkChanges = function () {
21
- if (!isDocumentAvailable()) {
22
- return;
23
- }
24
- if (this.state === 0 /* Initial */) {
25
- this.state = 1 /* Initializing */;
26
- // batch initial measure
27
- this.resizeBatchService.schedule(this, this.init);
28
- }
29
- };
30
- ResizeService.prototype.destroy = function () {
31
- this.resizeBatchService.cancel(this);
32
- };
33
- ResizeService.prototype.checkSize = function () {
34
- if (!this.parentElement) {
35
- return;
36
- }
37
- var _a = this.measure(), width = _a.width, height = _a.height;
38
- var sameSize = width === this.lastWidth && height === this.lastHeight;
39
- if (sameSize) {
40
- return;
41
- }
42
- this.lastWidth = width;
43
- this.lastHeight = height;
44
- this.acceptedSize = false;
45
- this.resize.emit();
46
- return true;
47
- };
48
- ResizeService.prototype.initSize = function () {
49
- var size = this.measure();
50
- this.lastWidth = size.width;
51
- this.lastHeight = size.height;
52
- };
53
- ResizeService.prototype.measure = function () {
54
- var width = 0;
55
- var height = 0;
56
- if (this.parentElement) {
57
- height = this.parentElement.offsetHeight;
58
- width = this.parentElement.offsetWidth;
59
- }
60
- return { height: height, width: width };
61
- };
62
- return ResizeService;
63
- }());
64
- export { ResizeService };
package/dist/es/tokens.js DELETED
@@ -1,10 +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
- var KendoInput = /** @class */ (function () {
6
- function KendoInput() {
7
- }
8
- return KendoInput;
9
- }());
10
- export { KendoInput };
@@ -1,9 +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
- import { isChanged } from './is-changed';
6
- export var anyChanged = function (propertyNames, changes, skipFirstChange) {
7
- if (skipFirstChange === void 0) { skipFirstChange = true; }
8
- return propertyNames.some(function (name) { return isChanged(name, changes, skipFirstChange); });
9
- };
@@ -1,16 +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
- export var guid = function () {
6
- var id = "";
7
- for (var i = 0; i < 32; i++) {
8
- var random = Math.random() * 16 | 0; // tslint:disable-line:no-bitwise
9
- if (i === 8 || i === 12 || i === 16 || i === 20) {
10
- id += "-";
11
- }
12
- // tslint:disable-next-line:no-bitwise
13
- id += (i === 12 ? 4 : (i === 16 ? (random & 3 | 8) : random)).toString(16);
14
- }
15
- return id;
16
- };
@@ -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
- export var hasObservers = function (emitter) { return emitter && emitter.observers.length > 0; };
@@ -1,10 +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
- export var isChanged = function (propertyName, changes, skipFirstChange) {
6
- if (skipFirstChange === void 0) { skipFirstChange = true; }
7
- return (typeof changes[propertyName] !== 'undefined' &&
8
- (!changes[propertyName].isFirstChange() || !skipFirstChange) &&
9
- changes[propertyName].previousValue !== changes[propertyName].currentValue);
10
- };
@@ -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
- export var isDocumentAvailable = function () { return typeof document !== 'undefined'; };
@@ -1,17 +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
- export { closestInScope } from './dom-queries/closest-in-scope';
6
- export { closest } from './dom-queries/closest';
7
- export { contains } from './dom-queries/contains';
8
- export { findElement } from './dom-queries/find-element';
9
- export { findFocusableChild } from './dom-queries/find-focusable-child';
10
- export { findFocusable } from './dom-queries/find-focusable';
11
- export { hasClasses } from './dom-queries/has-classes';
12
- export { isFocusableWithTabKey } from './dom-queries/is-focusable-with-tab-key';
13
- export { isFocusable } from './dom-queries/is-focusable';
14
- export { isVisible } from './dom-queries/is-visible';
15
- export { matchesClasses } from './dom-queries/matches-classes';
16
- export { matchesNodeName } from './dom-queries/matches-node-name';
17
- export { rtlScrollPosition } from './dom-queries/rtl-scroll-position';
@@ -1,21 +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
- import * as tslib_1 from "tslib";
6
- import { NgModule } from '@angular/core';
7
- import { DraggableDirective } from './draggable.directive';
8
- import { CommonModule } from '@angular/common';
9
- /**
10
- * @hidden
11
- */
12
- let DraggableModule = class DraggableModule {
13
- };
14
- DraggableModule = tslib_1.__decorate([
15
- NgModule({
16
- declarations: [DraggableDirective],
17
- exports: [DraggableDirective],
18
- imports: [CommonModule]
19
- })
20
- ], DraggableModule);
21
- export { DraggableModule };
@@ -1,6 +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
- export { DraggableDirective } from './draggable/draggable.directive';
6
- export { DraggableModule } from './draggable/draggable.module';
@@ -1,68 +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
- /**
6
- * Enum with key codes.
7
- */
8
- export var Keys;
9
- (function (Keys) {
10
- Keys[Keys["Alt"] = 18] = "Alt";
11
- Keys[Keys["ArrowDown"] = 40] = "ArrowDown";
12
- Keys[Keys["ArrowLeft"] = 37] = "ArrowLeft";
13
- Keys[Keys["ArrowRight"] = 39] = "ArrowRight";
14
- Keys[Keys["ArrowUp"] = 38] = "ArrowUp";
15
- Keys[Keys["Backspace"] = 8] = "Backspace";
16
- Keys[Keys["Control"] = 17] = "Control";
17
- Keys[Keys["Delete"] = 46] = "Delete";
18
- Keys[Keys["Digit0"] = 48] = "Digit0";
19
- Keys[Keys["Digit1"] = 49] = "Digit1";
20
- Keys[Keys["Digit2"] = 50] = "Digit2";
21
- Keys[Keys["Digit3"] = 51] = "Digit3";
22
- Keys[Keys["Digit4"] = 52] = "Digit4";
23
- Keys[Keys["Digit5"] = 53] = "Digit5";
24
- Keys[Keys["Digit6"] = 54] = "Digit6";
25
- Keys[Keys["Digit7"] = 55] = "Digit7";
26
- Keys[Keys["Digit8"] = 56] = "Digit8";
27
- Keys[Keys["Digit9"] = 57] = "Digit9";
28
- Keys[Keys["End"] = 35] = "End";
29
- Keys[Keys["Enter"] = 13] = "Enter";
30
- Keys[Keys["Escape"] = 27] = "Escape";
31
- Keys[Keys["F1"] = 112] = "F1";
32
- Keys[Keys["F2"] = 113] = "F2";
33
- Keys[Keys["F10"] = 121] = "F10";
34
- Keys[Keys["Home"] = 36] = "Home";
35
- Keys[Keys["Insert"] = 45] = "Insert";
36
- Keys[Keys["KeyA"] = 65] = "KeyA";
37
- Keys[Keys["KeyB"] = 66] = "KeyB";
38
- Keys[Keys["KeyC"] = 67] = "KeyC";
39
- Keys[Keys["KeyD"] = 68] = "KeyD";
40
- Keys[Keys["KeyE"] = 69] = "KeyE";
41
- Keys[Keys["KeyF"] = 70] = "KeyF";
42
- Keys[Keys["KeyG"] = 71] = "KeyG";
43
- Keys[Keys["KeyH"] = 72] = "KeyH";
44
- Keys[Keys["KeyI"] = 73] = "KeyI";
45
- Keys[Keys["KeyJ"] = 74] = "KeyJ";
46
- Keys[Keys["KeyK"] = 75] = "KeyK";
47
- Keys[Keys["KeyL"] = 76] = "KeyL";
48
- Keys[Keys["KeyM"] = 77] = "KeyM";
49
- Keys[Keys["KeyN"] = 78] = "KeyN";
50
- Keys[Keys["KeyO"] = 79] = "KeyO";
51
- Keys[Keys["KeyP"] = 80] = "KeyP";
52
- Keys[Keys["KeyQ"] = 81] = "KeyQ";
53
- Keys[Keys["KeyR"] = 82] = "KeyR";
54
- Keys[Keys["KeyS"] = 83] = "KeyS";
55
- Keys[Keys["KeyT"] = 84] = "KeyT";
56
- Keys[Keys["KeyU"] = 85] = "KeyU";
57
- Keys[Keys["KeyV"] = 86] = "KeyV";
58
- Keys[Keys["KeyW"] = 87] = "KeyW";
59
- Keys[Keys["KeyX"] = 88] = "KeyX";
60
- Keys[Keys["KeyY"] = 89] = "KeyY";
61
- Keys[Keys["KeyZ"] = 90] = "KeyZ";
62
- Keys[Keys["NumpadDecimal"] = 110] = "NumpadDecimal";
63
- Keys[Keys["PageDown"] = 34] = "PageDown";
64
- Keys[Keys["PageUp"] = 33] = "PageUp";
65
- Keys[Keys["Shift"] = 16] = "Shift";
66
- Keys[Keys["Space"] = 32] = "Space";
67
- Keys[Keys["Tab"] = 9] = "Tab";
68
- })(Keys || (Keys = {}));
@@ -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
- export { Keys } from './enums/keys';
@@ -1,19 +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
- import * as tslib_1 from "tslib";
6
- import { NgModule } from '@angular/core';
7
- import { EventsOutsideAngularDirective } from './events-outside-angular.directive';
8
- /**
9
- * @hidden
10
- */
11
- let EventsModule = class EventsModule {
12
- };
13
- EventsModule = tslib_1.__decorate([
14
- NgModule({
15
- declarations: [EventsOutsideAngularDirective],
16
- exports: [EventsOutsideAngularDirective]
17
- })
18
- ], EventsModule);
19
- export { EventsModule };
@@ -1,6 +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
- export { EventsOutsideAngularDirective } from './events/events-outside-angular.directive';
6
- export { EventsModule } from './events/events.module';
@@ -1,9 +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
- /**
6
- * Generated bundle index. Do not edit.
7
- */
8
- export * from './main';
9
- export { ResizeService } from './resize-sensor/resize.service';