@progress/kendo-angular-utils 21.4.1 → 22.0.0

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 (39) hide show
  1. package/fesm2022/progress-kendo-angular-utils.mjs +38 -38
  2. package/package.json +8 -16
  3. package/esm2022/adaptive-breakpoints/adaptive-settings.mjs +0 -20
  4. package/esm2022/adaptive-breakpoints/adaptive-settings.service.mjs +0 -29
  5. package/esm2022/adaptive-breakpoints/adaptive.service.mjs +0 -114
  6. package/esm2022/adaptive-breakpoints/index.mjs +0 -7
  7. package/esm2022/adaptive-breakpoints/models/adaptive-settings.mjs +0 -5
  8. package/esm2022/adaptive-breakpoints/models/adaptive-size.mjs +0 -5
  9. package/esm2022/directives.mjs +0 -45
  10. package/esm2022/drag-and-drop/drag-state.service.mjs +0 -139
  11. package/esm2022/drag-and-drop/draghandle.directive.mjs +0 -49
  12. package/esm2022/drag-and-drop/dragtarget-container.directive.mjs +0 -709
  13. package/esm2022/drag-and-drop/dragtarget.directive.mjs +0 -596
  14. package/esm2022/drag-and-drop/droptarget-container.directive.mjs +0 -236
  15. package/esm2022/drag-and-drop/droptarget.directive.mjs +0 -137
  16. package/esm2022/drag-and-drop/events/drag-target/drag-event.mjs +0 -52
  17. package/esm2022/drag-and-drop/events/drag-target/dragready-event.mjs +0 -32
  18. package/esm2022/drag-and-drop/events/drag-target/end-event.mjs +0 -46
  19. package/esm2022/drag-and-drop/events/drag-target/index.mjs +0 -10
  20. package/esm2022/drag-and-drop/events/drag-target/press-event.mjs +0 -46
  21. package/esm2022/drag-and-drop/events/drag-target/release-event.mjs +0 -46
  22. package/esm2022/drag-and-drop/events/drag-target/start-event.mjs +0 -48
  23. package/esm2022/drag-and-drop/events/drop-target-event.mjs +0 -53
  24. package/esm2022/drag-and-drop/events/index.mjs +0 -6
  25. package/esm2022/drag-and-drop/hint.component.mjs +0 -56
  26. package/esm2022/drag-and-drop/models/autoscroll-options.mjs +0 -5
  27. package/esm2022/drag-and-drop/models/coordinates.mjs +0 -5
  28. package/esm2022/drag-and-drop/models/drag-axis.mjs +0 -5
  29. package/esm2022/drag-and-drop/models/drag-mode.mjs +0 -5
  30. package/esm2022/drag-and-drop/models/functions.mjs +0 -5
  31. package/esm2022/drag-and-drop/models/hint-settings.mjs +0 -5
  32. package/esm2022/drag-and-drop/models/index.mjs +0 -5
  33. package/esm2022/drag-and-drop/models/scroll-direction.mjs +0 -5
  34. package/esm2022/drag-and-drop/util.mjs +0 -90
  35. package/esm2022/drag-and-drop.module.mjs +0 -45
  36. package/esm2022/index.mjs +0 -17
  37. package/esm2022/package-metadata.mjs +0 -16
  38. package/esm2022/progress-kendo-angular-utils.mjs +0 -8
  39. package/esm2022/utils.module.mjs +0 -45
@@ -1,53 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Arguments for the drag events of the `DropTarget` and `DropTargetContainer` directives.
7
- */
8
- export class DropTargetEvent {
9
- /**
10
- * The current drag target element.
11
- */
12
- dragTarget;
13
- /**
14
- * The current drop target element.
15
- */
16
- dropTarget;
17
- /**
18
- * The information related to the current drag event.
19
- */
20
- dragEvent;
21
- /**
22
- * The data passed to the `dragData` input property of the `DragTarget` or `DragTargetContainer` directive.
23
- */
24
- dragData;
25
- /**
26
- * The index of the current drop target in the collection of drop targets. Applies to `DropTargetContainer` directive.
27
- */
28
- dropTargetIndex;
29
- /**
30
- * The hint element of the `DragTarget`.
31
- */
32
- hintElement;
33
- /**
34
- * Left for backward compatibility for the DropTarget deprecated events.
35
- * @hidden
36
- */
37
- get normalizedEvent() {
38
- return this.dragEvent;
39
- }
40
- /**
41
- * Left for backward compatibility for the DropTarget deprecated events.
42
- * @hidden
43
- */
44
- get hostElement() {
45
- return this.dropTarget;
46
- }
47
- /**
48
- * @hidden
49
- */
50
- constructor(args) {
51
- Object.assign(this, args);
52
- }
53
- }
@@ -1,6 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { DropTargetEvent } from './drop-target-event';
6
- export * from './drag-target';
@@ -1,56 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ElementRef, HostBinding, Input, TemplateRef } from "@angular/core";
6
- import { NgTemplateOutlet } from "@angular/common";
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class HintComponent {
12
- element;
13
- template;
14
- directive;
15
- targetIndex;
16
- contextData;
17
- customContext;
18
- pointerEvents = 'none';
19
- constructor(element) {
20
- this.element = element;
21
- }
22
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HintComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
23
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: HintComponent, isStandalone: true, selector: "kendo-draghint", inputs: { template: "template", directive: "directive", targetIndex: "targetIndex", contextData: "contextData", customContext: "customContext" }, host: { properties: { "style.pointer-events": "this.pointerEvents" } }, ngImport: i0, template: `
24
- <ng-container
25
- [ngTemplateOutlet]="template"
26
- [ngTemplateOutletContext]="customContext || { $implicit: this.directive, index: this.targetIndex, data: this.contextData }">
27
- </ng-container>
28
- `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
29
- }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: HintComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'kendo-draghint',
34
- template: `
35
- <ng-container
36
- [ngTemplateOutlet]="template"
37
- [ngTemplateOutletContext]="customContext || { $implicit: this.directive, index: this.targetIndex, data: this.contextData }">
38
- </ng-container>
39
- `,
40
- standalone: true,
41
- imports: [NgTemplateOutlet]
42
- }]
43
- }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { template: [{
44
- type: Input
45
- }], directive: [{
46
- type: Input
47
- }], targetIndex: [{
48
- type: Input
49
- }], contextData: [{
50
- type: Input
51
- }], customContext: [{
52
- type: Input
53
- }], pointerEvents: [{
54
- type: HostBinding,
55
- args: ['style.pointer-events']
56
- }] } });
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,90 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- function isDocumentNode(container) {
6
- return container.nodeType === 9;
7
- }
8
- /**
9
- * @hidden
10
- */
11
- export const getAction = (event, draggable) => {
12
- return {
13
- event: event,
14
- payload: draggable
15
- };
16
- };
17
- /**
18
- * @hidden
19
- */
20
- export const dragTargetTransition = 'transform .3s ease-in-out';
21
- /**
22
- * @hidden
23
- */
24
- export const isPresent = (value) => value !== null && value !== undefined;
25
- /**
26
- * @hidden
27
- */
28
- export function closestBySelector(element, selector) {
29
- if (element.closest) {
30
- return element.closest(selector);
31
- }
32
- const matches = Element.prototype.matches ?
33
- (el, sel) => el.matches(sel)
34
- : (el, sel) => el.msMatchesSelector(sel);
35
- let node = element;
36
- while (node && !isDocumentNode(node)) {
37
- if (matches(node, selector)) {
38
- return node;
39
- }
40
- node = node.parentNode;
41
- }
42
- }
43
- /**
44
- * @hidden
45
- */
46
- export const intersect = (element, candidates) => {
47
- let max = 0;
48
- let result = null;
49
- candidates.forEach((candidate) => {
50
- if (candidate && element) {
51
- const ration = getRatio(element, candidate);
52
- if (ration > max) {
53
- max = ration;
54
- result = candidate;
55
- }
56
- }
57
- });
58
- return result;
59
- };
60
- const getRatio = (element, target) => {
61
- const elementRect = element.getBoundingClientRect();
62
- const targetRect = target.getBoundingClientRect();
63
- const top = Math.max(targetRect.top, elementRect.top);
64
- const left = Math.max(targetRect.left, elementRect.left);
65
- const right = Math.min(targetRect.left + targetRect.width, elementRect.left + elementRect.width);
66
- const bottom = Math.min(targetRect.top + targetRect.height, elementRect.top + elementRect.height);
67
- const width = right - left;
68
- const height = bottom - top;
69
- if (left < right && top < bottom) {
70
- const targetArea = targetRect.width * targetRect.height;
71
- const entryArea = elementRect.width * elementRect.height;
72
- const intersectionArea = width * height;
73
- const intersectionRatio = intersectionArea / (targetArea + entryArea - intersectionArea);
74
- return Number(intersectionRatio.toFixed(4));
75
- }
76
- return 0;
77
- };
78
- /**
79
- * @hidden
80
- */
81
- export const setElementStyles = (renderer, elem, styles) => {
82
- const props = Object.keys(styles);
83
- props.forEach(p => {
84
- renderer.setStyle(elem, p, styles[p]);
85
- });
86
- };
87
- /**
88
- * @hidden
89
- */
90
- export const noop = () => { };
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from '@angular/core';
6
- import { KENDO_DRAGANDDROP } from './directives';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./drag-and-drop/dragtarget.directive";
9
- import * as i2 from "./drag-and-drop/draghandle.directive";
10
- import * as i3 from "./drag-and-drop/droptarget.directive";
11
- import * as i4 from "./drag-and-drop/dragtarget-container.directive";
12
- import * as i5 from "./drag-and-drop/droptarget-container.directive";
13
- import * as i6 from "./drag-and-drop/hint.component";
14
- // IMPORTANT: NgModule export kept for backwards compatibility
15
- /**
16
- * Represents the [`NgModule`](link:site.data.urls.angular['ngmodules'])
17
- * definition for the Drag and Drop directives.
18
- *
19
- * @example
20
- * ```ts
21
- * import { DragAndDropModule } from '@progress/kendo-angular-utils';
22
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
23
- * import { NgModule } from '@angular/core';
24
- * import { AppComponent } from './app.component';
25
- *
26
- * @NgModule({
27
- * declarations: [AppComponent],
28
- * imports: [BrowserModule, DragAndDropModule],
29
- * bootstrap: [AppComponent]
30
- * })
31
- * export class AppModule {}
32
- * ```
33
- */
34
- export class DragAndDropModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropModule });
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: DragAndDropModule, decorators: [{
40
- type: NgModule,
41
- args: [{
42
- exports: [...KENDO_DRAGANDDROP],
43
- imports: [...KENDO_DRAGANDDROP]
44
- }]
45
- }] });
package/esm2022/index.mjs DELETED
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export * from './directives';
6
- export { UtilsModule } from './utils.module';
7
- export { DragAndDropModule } from './drag-and-drop.module';
8
- export { DragTargetDirective } from './drag-and-drop/dragtarget.directive';
9
- export { DragHandleDirective } from './drag-and-drop/draghandle.directive';
10
- export { DropTargetDirective } from './drag-and-drop/droptarget.directive';
11
- export { DragTargetContainerDirective } from './drag-and-drop/dragtarget-container.directive';
12
- export { DropTargetContainerDirective } from './drag-and-drop/droptarget-container.directive';
13
- export { HintComponent } from './drag-and-drop/hint.component';
14
- export * from './drag-and-drop/models/index';
15
- export { DropTargetEvent } from './drag-and-drop/events';
16
- export * from './drag-and-drop/events/drag-target';
17
- export * from './adaptive-breakpoints';
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * @hidden
7
- */
8
- export const packageMetadata = {
9
- name: '@progress/kendo-angular-utils',
10
- productName: 'Kendo UI for Angular',
11
- productCode: 'KENDOUIANGULAR',
12
- productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1768393066,
14
- version: '21.4.1',
15
- licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
- };
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 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 './index';
@@ -1,45 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from '@angular/core';
6
- import { KENDO_UTILS } from './directives';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "./drag-and-drop/dragtarget.directive";
9
- import * as i2 from "./drag-and-drop/draghandle.directive";
10
- import * as i3 from "./drag-and-drop/droptarget.directive";
11
- import * as i4 from "./drag-and-drop/dragtarget-container.directive";
12
- import * as i5 from "./drag-and-drop/droptarget-container.directive";
13
- import * as i6 from "./drag-and-drop/hint.component";
14
- // IMPORTANT: NgModule export kept for backwards compatibility
15
- /**
16
- * Represents the [`NgModule`](link:site.data.urls.angular['ngmodules'])
17
- * definition for the Utils components.
18
- *
19
- * @example
20
- * ```ts
21
- * import { UtilsModule } from '@progress/kendo-angular-utils';
22
- * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
23
- * import { NgModule } from '@angular/core';
24
- * import { AppComponent } from './app.component';
25
- *
26
- * @NgModule({
27
- * declarations: [AppComponent],
28
- * imports: [BrowserModule, UtilsModule],
29
- * bootstrap: [AppComponent]
30
- * })
31
- * export class AppModule {}
32
- * ```
33
- */
34
- export class UtilsModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: UtilsModule, imports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent], exports: [i1.DragTargetDirective, i2.DragHandleDirective, i3.DropTargetDirective, i4.DragTargetContainerDirective, i5.DropTargetContainerDirective, i6.HintComponent] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilsModule });
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UtilsModule, decorators: [{
40
- type: NgModule,
41
- args: [{
42
- exports: [...KENDO_UTILS],
43
- imports: [...KENDO_UTILS]
44
- }]
45
- }] });