@progress/kendo-angular-common 3.2.2 → 11.0.0-develop.80
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.
- package/LICENSE.md +1 -1
- package/NOTICE.txt +119 -79
- package/README.md +1 -1
- package/dom-queries/closest-in-scope.d.ts +2 -2
- package/dom-queries/closest.d.ts +2 -2
- package/dom-queries/contains.d.ts +2 -2
- package/dom-queries/find-element.d.ts +1 -1
- package/dom-queries/find-focusable-child.d.ts +1 -1
- package/dom-queries/find-focusable.d.ts +1 -1
- package/dom-queries/has-classes.d.ts +1 -1
- package/dom-queries/is-focusable-with-tab-key.d.ts +1 -1
- package/dom-queries/is-focusable.d.ts +1 -1
- package/dom-queries/is-visible.d.ts +1 -1
- package/dom-queries/matches-classes.d.ts +1 -1
- package/dom-queries/matches-node-name.d.ts +2 -2
- package/dom-queries/rtl-scroll-position.d.ts +1 -1
- package/dom-queries.d.ts +1 -1
- package/draggable/draggable.directive.d.ts +2 -2
- package/draggable/draggable.module.d.ts +1 -1
- package/draggable.d.ts +1 -1
- package/enums/keys.d.ts +1 -1
- package/enums.d.ts +1 -1
- package/{esm2015/dom-queries/closest-in-scope.js → esm2020/dom-queries/closest-in-scope.mjs} +2 -1
- package/{esm2015/dom-queries/closest.js → esm2020/dom-queries/closest.mjs} +1 -1
- package/{esm2015/dom-queries/contains.js → esm2020/dom-queries/contains.mjs} +1 -1
- package/{esm2015/dom-queries/find-element.js → esm2020/dom-queries/find-element.mjs} +1 -1
- package/{esm2015/dom-queries/find-focusable-child.js → esm2020/dom-queries/find-focusable-child.mjs} +1 -1
- package/{esm2015/dom-queries/find-focusable.js → esm2020/dom-queries/find-focusable.mjs} +1 -1
- package/{esm2015/dom-queries/has-classes.js → esm2020/dom-queries/has-classes.mjs} +1 -1
- package/{esm2015/dom-queries/is-focusable-with-tab-key.js → esm2020/dom-queries/is-focusable-with-tab-key.mjs} +1 -1
- package/{esm2015/dom-queries/is-focusable.js → esm2020/dom-queries/is-focusable.mjs} +1 -1
- package/{esm2015/dom-queries/is-visible.js → esm2020/dom-queries/is-visible.mjs} +1 -1
- package/{esm2015/dom-queries/matches-classes.js → esm2020/dom-queries/matches-classes.mjs} +1 -1
- package/{esm2015/dom-queries/matches-node-name.js → esm2020/dom-queries/matches-node-name.mjs} +1 -1
- package/{esm2015/dom-queries/rtl-scroll-position.js → esm2020/dom-queries/rtl-scroll-position.mjs} +1 -1
- package/{esm2015/dom-queries.js → esm2020/dom-queries.mjs} +1 -1
- package/{esm2015/draggable/draggable.directive.js → esm2020/draggable/draggable.directive.mjs} +7 -7
- package/{esm2015/draggable/draggable.module.js → esm2020/draggable/draggable.module.mjs} +5 -5
- package/{esm2015/draggable.js → esm2020/draggable.mjs} +1 -1
- package/{esm2015/enums/keys.js → esm2020/enums/keys.mjs} +1 -1
- package/{esm2015/enums.js → esm2020/enums.mjs} +1 -1
- package/{esm2015/events/events-outside-angular.directive.js → esm2020/events/events-outside-angular.directive.mjs} +8 -8
- package/{esm2015/events/events.module.js → esm2020/events/events.module.mjs} +5 -5
- package/{esm2015/events.js → esm2020/events.mjs} +1 -1
- package/{esm2015/main.js → esm2020/index.mjs} +2 -2
- package/{esm2015/preventable-event.js → esm2020/preventable-event.mjs} +1 -1
- package/{esm2015/kendo-angular-common.js → esm2020/progress-kendo-angular-common.mjs} +2 -2
- package/{esm2015/resize-sensor/compat.service.js → esm2020/resize-sensor/compat.service.mjs} +7 -5
- package/{esm2015/resize-sensor/observer.service.js → esm2020/resize-sensor/observer.service.mjs} +1 -1
- package/{esm2015/resize-sensor/resize-batch.service.js → esm2020/resize-sensor/resize-batch.service.mjs} +5 -5
- package/{esm2015/resize-sensor/resize-sensor.component.js → esm2020/resize-sensor/resize-sensor.component.mjs} +6 -5
- package/{esm2015/resize-sensor/resize-sensor.module.js → esm2020/resize-sensor/resize-sensor.module.mjs} +5 -5
- package/{esm2015/resize-sensor/resize.service.js → esm2020/resize-sensor/resize.service.mjs} +3 -3
- package/{esm2015/resize-sensor.js → esm2020/resize-sensor.mjs} +1 -1
- package/{esm2015/tokens.js → esm2020/tokens.mjs} +1 -1
- package/{esm2015/utils/any-changed.js → esm2020/utils/any-changed.mjs} +1 -1
- package/{esm2015/utils/guid.js → esm2020/utils/guid.mjs} +1 -1
- package/{esm2015/utils/has-observers.js → esm2020/utils/has-observers.mjs} +1 -1
- package/{esm2015/utils/is-changed.js → esm2020/utils/is-changed.mjs} +1 -1
- package/{esm2015/utils/is-document-available.js → esm2020/utils/is-document-available.mjs} +1 -1
- package/{esm2015/utils/scrollbar-width.service.js → esm2020/utils/scrollbar-width.service.mjs} +21 -6
- package/{esm2015/utils.js → esm2020/utils.mjs} +1 -2
- package/events/events-outside-angular.directive.d.ts +2 -2
- package/events/events.module.d.ts +1 -1
- package/events.d.ts +1 -1
- package/fesm2015/progress-kendo-angular-common.mjs +753 -0
- package/{fesm2015/kendo-angular-common.js → fesm2020/progress-kendo-angular-common.mjs} +60 -58
- package/{main.d.ts → index.d.ts} +2 -2
- package/package.json +24 -55
- package/preventable-event.d.ts +1 -1
- package/{kendo-angular-common.d.ts → progress-kendo-angular-common.d.ts} +2 -2
- package/resize-sensor/compat.service.d.ts +3 -3
- package/resize-sensor/observer.service.d.ts +1 -1
- package/resize-sensor/resize-batch.service.d.ts +2 -2
- package/resize-sensor/resize-sensor.component.d.ts +1 -1
- package/resize-sensor/resize-sensor.module.d.ts +1 -1
- package/resize-sensor/resize.service.d.ts +3 -3
- package/resize-sensor.d.ts +1 -1
- package/tokens.d.ts +1 -1
- package/utils/any-changed.d.ts +1 -1
- package/utils/guid.d.ts +1 -1
- package/utils/has-observers.d.ts +1 -1
- package/utils/is-changed.d.ts +1 -1
- package/utils/is-document-available.d.ts +1 -1
- package/utils/scrollbar-width.service.d.ts +5 -1
- package/utils.d.ts +1 -2
- package/bundles/kendo-angular-common.umd.js +0 -5
- package/esm2015/utils/get-scrollbar-width.js +0 -21
- package/utils/get-scrollbar-width.d.ts +0 -8
package/{esm2015/dom-queries/rtl-scroll-position.js → esm2020/dom-queries/rtl-scroll-position.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 ©
|
|
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 { closestInScope } from './dom-queries/closest-in-scope';
|
package/{esm2015/draggable/draggable.directive.js → esm2020/draggable/draggable.directive.mjs}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
-
import { EventEmitter, Directive, Output, Input } from '@angular/core';
|
|
5
|
+
import { EventEmitter, ElementRef, Directive, Output, NgZone, Input } from '@angular/core';
|
|
6
6
|
import { isDocumentAvailable, isChanged } from '../utils';
|
|
7
7
|
import { Draggable } from '@progress/kendo-draggable';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -35,20 +35,20 @@ export class DraggableDirective {
|
|
|
35
35
|
press: (e) => this.kendoPress.next(e),
|
|
36
36
|
release: (e) => this.kendoRelease.next(e)
|
|
37
37
|
});
|
|
38
|
-
this.ngZone.runOutsideAngular(() => this.draggable
|
|
38
|
+
this.ngZone.runOutsideAngular(() => this.draggable?.bindTo(this.element.nativeElement));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
destroyDraggable() {
|
|
43
43
|
if (this.draggable) {
|
|
44
44
|
this.draggable.destroy();
|
|
45
|
-
this.draggable =
|
|
45
|
+
this.draggable = undefined;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
50
|
-
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { enableDrag: "enableDrag" }, outputs: { kendoPress: "kendoPress", kendoDrag: "kendoDrag", kendoRelease: "kendoRelease" }, usesOnChanges: true, ngImport: i0 });
|
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableDirective, decorators: [{
|
|
52
52
|
type: Directive,
|
|
53
53
|
args: [{
|
|
54
54
|
selector: '[kendoDraggable]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { NgModule } from '@angular/core';
|
|
@@ -11,10 +11,10 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
*/
|
|
12
12
|
export class DraggableModule {
|
|
13
13
|
}
|
|
14
|
-
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
15
|
-
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
16
|
-
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
DraggableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15
|
+
DraggableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, declarations: [DraggableDirective], imports: [CommonModule], exports: [DraggableDirective] });
|
|
16
|
+
DraggableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, imports: [[CommonModule]] });
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DraggableModule, decorators: [{
|
|
18
18
|
type: NgModule,
|
|
19
19
|
args: [{
|
|
20
20
|
declarations: [DraggableDirective],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { DraggableDirective } from './draggable/draggable.directive';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 ©
|
|
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 { Keys } from './enums/keys';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
-
import { Directive, Input } from '@angular/core';
|
|
5
|
+
import { Directive, ElementRef, Input, Renderer2, NgZone } from '@angular/core';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* @hidden
|
|
@@ -21,9 +21,9 @@ export class EventsOutsideAngularDirective {
|
|
|
21
21
|
const events = this.events;
|
|
22
22
|
this.subscriptions = [];
|
|
23
23
|
this.ngZone.runOutsideAngular(() => {
|
|
24
|
-
for (
|
|
25
|
-
if (
|
|
26
|
-
this.subscriptions
|
|
24
|
+
for (const name in events) {
|
|
25
|
+
if (Object.hasOwnProperty.call(events, name)) {
|
|
26
|
+
this.subscriptions?.push(this.renderer.listen(this.element.nativeElement, name, this.scope ? events[name].bind(this.scope) : events[name]));
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
});
|
|
@@ -37,9 +37,9 @@ export class EventsOutsideAngularDirective {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
40
|
+
EventsOutsideAngularDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
+
EventsOutsideAngularDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: { events: ["kendoEventsOutsideAngular", "events"], scope: "scope" }, ngImport: i0 });
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsOutsideAngularDirective, decorators: [{
|
|
43
43
|
type: Directive,
|
|
44
44
|
args: [{
|
|
45
45
|
selector: '[kendoEventsOutsideAngular]'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { NgModule } from '@angular/core';
|
|
@@ -10,10 +10,10 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class EventsModule {
|
|
12
12
|
}
|
|
13
|
-
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
15
|
-
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
EventsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
EventsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, declarations: [EventsOutsideAngularDirective], exports: [EventsOutsideAngularDirective] });
|
|
15
|
+
EventsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EventsModule, decorators: [{
|
|
17
17
|
type: NgModule,
|
|
18
18
|
args: [{
|
|
19
19
|
declarations: [EventsOutsideAngularDirective],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { EventsOutsideAngularDirective } from './events/events-outside-angular.directive';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 class PreventableEvent {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
-
export * from './
|
|
8
|
+
export * from './index';
|
package/{esm2015/resize-sensor/compat.service.js → esm2020/resize-sensor/compat.service.mjs}
RENAMED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
// eslint-disable import/no-deprecated
|
|
6
6
|
import { ResizeService } from './resize.service';
|
|
7
7
|
import { fromEvent, merge } from 'rxjs';
|
|
8
|
-
|
|
8
|
+
// TODO:NG13 CSP
|
|
9
|
+
const div = (style) => {
|
|
9
10
|
const el = document.createElement('div');
|
|
10
11
|
el.style.cssText = style;
|
|
11
12
|
return el;
|
|
@@ -36,7 +37,7 @@ export class ResizeCompatService extends ResizeService {
|
|
|
36
37
|
this.subscription.unsubscribe();
|
|
37
38
|
}
|
|
38
39
|
if (this.expand) {
|
|
39
|
-
const element = this.element
|
|
40
|
+
const element = this.element?.nativeElement;
|
|
40
41
|
element.removeChild(this.expand);
|
|
41
42
|
element.removeChild(this.shrink);
|
|
42
43
|
this.expand.removeChild(this.expandChild);
|
|
@@ -48,9 +49,10 @@ export class ResizeCompatService extends ResizeService {
|
|
|
48
49
|
this.reset();
|
|
49
50
|
return true;
|
|
50
51
|
}
|
|
52
|
+
return false;
|
|
51
53
|
}
|
|
52
54
|
init() {
|
|
53
|
-
const parentElement = this.parentElement = this.element
|
|
55
|
+
const parentElement = this.parentElement = this.element?.nativeElement.parentElement;
|
|
54
56
|
if (computedProp(parentElement, 'position') === 'static') {
|
|
55
57
|
parentElement.style.position = 'relative';
|
|
56
58
|
}
|
|
@@ -61,7 +63,7 @@ export class ResizeCompatService extends ResizeService {
|
|
|
61
63
|
this.subscribe();
|
|
62
64
|
}
|
|
63
65
|
render() {
|
|
64
|
-
const element = this.element
|
|
66
|
+
const element = this.element?.nativeElement;
|
|
65
67
|
element.style.cssText = WRAP_STYLE;
|
|
66
68
|
element.setAttribute('dir', 'ltr');
|
|
67
69
|
this.expand = div(WRAP_STYLE);
|
package/{esm2015/resize-sensor/observer.service.js → esm2020/resize-sensor/observer.service.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { ResizeService } from './resize.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
-
import { Injectable } from '@angular/core';
|
|
5
|
+
import { Injectable, NgZone } from '@angular/core';
|
|
6
6
|
import { from as fromPromise } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
/**
|
|
@@ -57,8 +57,8 @@ export class ResizeBatchService {
|
|
|
57
57
|
this.unsubscribe();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
ResizeBatchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
61
|
+
ResizeBatchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService });
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeBatchService, decorators: [{
|
|
63
63
|
type: Injectable
|
|
64
64
|
}], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
5
|
+
import { Component, EventEmitter, Input, Output, ElementRef, NgZone } from '@angular/core';
|
|
6
6
|
import { auditTime } from 'rxjs/operators';
|
|
7
7
|
import { ResizeCompatService } from './compat.service';
|
|
8
8
|
import { ResizeObserverService } from './observer.service';
|
|
9
|
+
import { ResizeBatchService } from './resize-batch.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "./resize-batch.service";
|
|
11
12
|
/**
|
|
@@ -52,9 +53,9 @@ export class ResizeSensorComponent {
|
|
|
52
53
|
this.resizeService.acceptSize(size);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
ResizeSensorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, deps: [{ token: i1.ResizeBatchService }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
ResizeSensorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: { rateLimit: "rateLimit" }, outputs: { resize: "resize" }, ngImport: i0, template: '', isInline: true });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorComponent, decorators: [{
|
|
58
59
|
type: Component,
|
|
59
60
|
args: [{
|
|
60
61
|
selector: 'kendo-resize-sensor',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { NgModule } from '@angular/core';
|
|
@@ -12,10 +12,10 @@ const COMPONENT_DIRECTIVES = [ResizeSensorComponent];
|
|
|
12
12
|
*/
|
|
13
13
|
export class ResizeSensorModule {
|
|
14
14
|
}
|
|
15
|
-
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
16
|
-
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
17
|
-
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
15
|
+
ResizeSensorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
|
+
ResizeSensorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, declarations: [ResizeSensorComponent], exports: [ResizeSensorComponent] });
|
|
17
|
+
ResizeSensorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, providers: [ResizeBatchService] });
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ResizeSensorModule, decorators: [{
|
|
19
19
|
type: NgModule,
|
|
20
20
|
args: [{
|
|
21
21
|
declarations: [COMPONENT_DIRECTIVES],
|
package/{esm2015/resize-sensor/resize.service.js → esm2020/resize-sensor/resize.service.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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';
|
|
@@ -31,12 +31,12 @@ export class ResizeService {
|
|
|
31
31
|
}
|
|
32
32
|
checkSize() {
|
|
33
33
|
if (!this.parentElement) {
|
|
34
|
-
return;
|
|
34
|
+
return false;
|
|
35
35
|
}
|
|
36
36
|
const { width, height } = this.measure();
|
|
37
37
|
const sameSize = width === this.lastWidth && height === this.lastHeight;
|
|
38
38
|
if (sameSize) {
|
|
39
|
-
return;
|
|
39
|
+
return false;
|
|
40
40
|
}
|
|
41
41
|
this.lastWidth = width;
|
|
42
42
|
this.lastHeight = height;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 class KendoInput {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { isChanged } from './is-changed';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 ©
|
|
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 ©
|
|
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 ©
|
|
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
|
/**
|
package/{esm2015/utils/scrollbar-width.service.js → esm2020/utils/scrollbar-width.service.mjs}
RENAMED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { Injectable, EventEmitter } from '@angular/core';
|
|
6
|
-
import { getScrollbarWidth } from './get-scrollbar-width';
|
|
7
6
|
import { isDocumentAvailable } from './is-document-available';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
const canCreateElement = () => isDocumentAvailable() && document.createElement;
|
|
9
9
|
const propName = '--kendo-scrollbar-width';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export const scrollbarWidth = () => {
|
|
14
|
+
let scrollbarWidth = 0;
|
|
15
|
+
if (canCreateElement()) {
|
|
16
|
+
const div = document.createElement('div');
|
|
17
|
+
div.style.cssText = 'overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block';
|
|
18
|
+
div.innerHTML = ' ';
|
|
19
|
+
document.body.appendChild(div);
|
|
20
|
+
scrollbarWidth = div.offsetWidth - div.scrollWidth;
|
|
21
|
+
document.body.removeChild(div);
|
|
22
|
+
}
|
|
23
|
+
return scrollbarWidth;
|
|
24
|
+
};
|
|
10
25
|
/**
|
|
11
26
|
* @hidden
|
|
12
27
|
*/
|
|
@@ -14,13 +29,13 @@ export class ScrollbarWidthService {
|
|
|
14
29
|
constructor() {
|
|
15
30
|
this.changes = new EventEmitter();
|
|
16
31
|
if (typeof window !== 'undefined' && isDocumentAvailable()) {
|
|
17
|
-
document.body.style.setProperty(propName, `${
|
|
32
|
+
document.body.style.setProperty(propName, `${scrollbarWidth()}px`);
|
|
18
33
|
}
|
|
19
34
|
}
|
|
20
35
|
}
|
|
21
|
-
ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
ScrollbarWidthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
ScrollbarWidthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, providedIn: 'root' });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ScrollbarWidthService, decorators: [{
|
|
24
39
|
type: Injectable,
|
|
25
40
|
args: [{
|
|
26
41
|
providedIn: 'root'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { OnInit, OnDestroy, ElementRef, Renderer2, NgZone } from '@angular/core';
|
|
@@ -13,7 +13,7 @@ export declare class EventsOutsideAngularDirective implements OnInit, OnDestroy
|
|
|
13
13
|
private renderer;
|
|
14
14
|
events: any;
|
|
15
15
|
scope: any;
|
|
16
|
-
protected subscriptions
|
|
16
|
+
protected subscriptions?: any[] | null;
|
|
17
17
|
constructor(element: ElementRef, ngZone: NgZone, renderer: Renderer2);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
ngOnDestroy(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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";
|
package/events.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright ©
|
|
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 { EventsOutsideAngularDirective } from './events/events-outside-angular.directive';
|