@progress/kendo-angular-utils 0.1.1-dev.202208160834 → 0.1.1

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 (34) hide show
  1. package/bundles/kendo-angular-utils.umd.js +1 -1
  2. package/drag-and-drop/dragtarget.directive.d.ts +16 -44
  3. package/drag-and-drop/droptarget.directive.d.ts +5 -5
  4. package/drag-and-drop/events/drag-target/drag-event.d.ts +1 -1
  5. package/drag-and-drop/events/drag-target/end-event.d.ts +1 -1
  6. package/drag-and-drop/events/drag-target/index.d.ts +4 -5
  7. package/drag-and-drop/events/drag-target/press-event.d.ts +1 -1
  8. package/drag-and-drop/events/drag-target/start-event.d.ts +1 -1
  9. package/drag-and-drop/events/drop-target/drop-event.d.ts +1 -1
  10. package/drag-and-drop/events/drop-target/enter-event.d.ts +1 -1
  11. package/drag-and-drop/events/drop-target/index.d.ts +4 -4
  12. package/drag-and-drop/events/drop-target/leave-event.d.ts +1 -1
  13. package/drag-and-drop/events/drop-target/over-event.d.ts +1 -1
  14. package/drag-and-drop/models/allowed-target.d.ts +1 -1
  15. package/drag-and-drop.module.d.ts +31 -0
  16. package/esm2015/drag-and-drop/dragtarget.directive.js +49 -62
  17. package/esm2015/drag-and-drop/droptarget.directive.js +14 -6
  18. package/esm2015/drag-and-drop/events/drag-target/drag-event.js +1 -1
  19. package/esm2015/drag-and-drop/events/drag-target/end-event.js +1 -1
  20. package/esm2015/drag-and-drop/events/drag-target/index.js +4 -5
  21. package/esm2015/drag-and-drop/events/drag-target/press-event.js +1 -1
  22. package/esm2015/drag-and-drop/events/drag-target/start-event.js +1 -1
  23. package/esm2015/drag-and-drop/events/drop-target/drop-event.js +1 -1
  24. package/esm2015/drag-and-drop/events/drop-target/enter-event.js +1 -1
  25. package/esm2015/drag-and-drop/events/drop-target/index.js +4 -4
  26. package/esm2015/drag-and-drop/events/drop-target/leave-event.js +1 -1
  27. package/esm2015/drag-and-drop/events/drop-target/over-event.js +1 -1
  28. package/esm2015/drag-and-drop.module.js +33 -1
  29. package/esm2015/package-metadata.js +1 -1
  30. package/fesm2015/kendo-angular-utils.js +105 -90
  31. package/main.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/drag-and-drop/events/drag-target/release-event.d.ts +0 -22
  34. package/esm2015/drag-and-drop/events/drag-target/release-event.js +0 -15
@@ -7,7 +7,7 @@ import { validatePackage } from '@progress/kendo-licensing';
7
7
  import { packageMetadata } from '../package-metadata';
8
8
  import { DragHandleDirective } from "./draghandle.directive";
9
9
  import { getScrollableParent } from "@progress/kendo-draggable-common";
10
- import { DragStartEvent, DragEndEvent, PressEvent, ReleaseEvent, DragEvent } from "./events/drag-target";
10
+ import { DragTargetDragStartEvent, DragTargetDragEndEvent, DragTargetPressEvent, DragTargetDragEvent } from "./events/drag-target";
11
11
  import { getAction, isPresent, setElementStyles, dragTargetTransition } from './util';
12
12
  import { contains, isDocumentAvailable } from "@progress/kendo-angular-common";
13
13
  import { HintComponent } from "./hint.component";
@@ -46,27 +46,28 @@ export class DragTargetDirective {
46
46
  this.dragDelay = 0;
47
47
  /**
48
48
  * Fires when the user presses the DragTarget element.
49
- * This event is preventable. Preventing it allows full logic customization.
50
49
  */
51
50
  this.press = new EventEmitter();
52
51
  /**
53
52
  * Fires when the dragging of the DragTarget element begins.
54
- * This event is preventable. Preventing it allows full logic customization.
53
+ * This event is preventable.
55
54
  */
56
55
  this.dragStart = new EventEmitter();
57
56
  /**
58
57
  * Fires while the user drags the DragTarget element.
59
- * This event is preventable. Preventing it allows full logic customization.
58
+ * This event is preventable.
60
59
  */
61
60
  this.drag = new EventEmitter();
62
61
  /**
63
- * Fires when the user releases the DragTarget element.
64
- * This event is preventable. Preventing it allows full logic customization.
62
+ * Fires when the DragTarget's `dragDelay` has passed and the user is able to drag the element.
63
+ */
64
+ this.dragReady = new EventEmitter();
65
+ /**
66
+ * Fires when the user releases the DragTarget element after being pressed.
65
67
  */
66
68
  this.release = new EventEmitter();
67
69
  /**
68
- * Fires when the dragging of the DragTarget element ends.
69
- * This event is preventable. Preventing it allows full logic customization.
70
+ * Fires when the dragging of the DragTarget ends and the element is released.
70
71
  */
71
72
  this.dragEnd = new EventEmitter();
72
73
  this.touchAction = 'none';
@@ -77,6 +78,7 @@ export class DragTargetDirective {
77
78
  this.dragStarted = false;
78
79
  this.pressed = false;
79
80
  this.dragTimeout = null;
81
+ this.position = { x: 0, y: 0 };
80
82
  validatePackage(packageMetadata);
81
83
  }
82
84
  /**
@@ -151,13 +153,16 @@ export class DragTargetDirective {
151
153
  if (this.dragDelay > 0) {
152
154
  this.dragTimeout = setTimeout(() => {
153
155
  this.pressed = true;
156
+ this.ngZone.run(() => {
157
+ this.dragReady.emit();
158
+ });
154
159
  }, this.dragDelay);
155
160
  }
156
161
  else {
157
162
  this.pressed = true;
158
163
  }
159
164
  this.ngZone.run(() => {
160
- const eventArgs = new PressEvent({ normalizedEvent: event, hostElement: this.nativeElement });
165
+ const eventArgs = new DragTargetPressEvent({ normalizedEvent: event, hostElement: this.nativeElement });
161
166
  this.press.emit(eventArgs);
162
167
  });
163
168
  }
@@ -172,12 +177,12 @@ export class DragTargetDirective {
172
177
  }
173
178
  return;
174
179
  }
175
- if (isDragStartPrevented) {
176
- return;
177
- }
178
180
  this.ngZone.run(() => {
179
181
  isDragStartPrevented = this.emitEvent('dragStart', { normalizedEvent: event, hostElement: this.nativeElement }).isDefaultPrevented();
180
182
  });
183
+ if (isDragStartPrevented) {
184
+ return;
185
+ }
181
186
  if (isPresent(this.hintTemplate)) {
182
187
  this.createHint();
183
188
  if (isPresent(this.hint)) {
@@ -187,13 +192,10 @@ export class DragTargetDirective {
187
192
  this.dragStarted = this.threshold === 0;
188
193
  this.service.dragTarget = this.dragTarget;
189
194
  this.service.dragTargetDirective = this;
190
- this.initialPosition = { x: event.clientX, y: event.clientY };
195
+ this.initialPosition = { x: event.clientX - this.position.x, y: event.clientY - this.position.y };
191
196
  }
192
- /**
193
- * @hidden
194
- */
195
197
  handleDrag(event) {
196
- if (!this.pressed) {
198
+ if (!this.pressed || isDragStartPrevented) {
197
199
  return;
198
200
  }
199
201
  const elem = this.hint ? this.hintElem : this.nativeElement;
@@ -204,32 +206,28 @@ export class DragTargetDirective {
204
206
  if (isDragPrevented) {
205
207
  return;
206
208
  }
207
- let coordinates = { x: 0, y: 0 };
208
209
  if (this.restrictByAxis === 'horizontal') {
209
- coordinates = { x: event.clientX - this.initialPosition.x + event.scrollX, y: 0 };
210
+ this.position = { x: event.clientX - this.initialPosition.x + event.scrollX, y: 0 };
210
211
  }
211
212
  else if (this.restrictByAxis === 'vertical') {
212
- coordinates = { x: 0, y: event.clientY - this.initialPosition.y + event.scrollY };
213
+ this.position = { x: 0, y: event.clientY - this.initialPosition.y + event.scrollY };
213
214
  }
214
215
  else {
215
- coordinates = { x: event.clientX - this.initialPosition.x + event.scrollX, y: event.clientY - this.initialPosition.y + event.scrollY };
216
+ this.position = { x: event.clientX - this.initialPosition.x + event.scrollX, y: event.clientY - this.initialPosition.y + event.scrollY };
216
217
  }
217
- const thresholdNotReached = Math.abs(coordinates.x) < this.threshold && Math.abs(coordinates.y) < this.threshold;
218
+ const thresholdNotReached = Math.abs(this.position.x) < this.threshold && Math.abs(this.position.y) < this.threshold;
218
219
  if (!this.dragStarted && thresholdNotReached) {
219
220
  return;
220
221
  }
221
222
  if (!this.dragStarted && this.threshold > 0) {
222
223
  this.dragStarted = true;
223
224
  }
224
- const transform = `translate(${coordinates.x}px, ${coordinates.y}px)`;
225
+ const transform = `translate(${this.position.x}px, ${this.position.y}px)`;
225
226
  setElementStyles(this.renderer, elem, {
226
227
  transform: transform,
227
228
  transition: 'none'
228
229
  });
229
230
  }
230
- /**
231
- * @hidden
232
- */
233
231
  handleRelease(event) {
234
232
  if (this.dragTimeout) {
235
233
  clearTimeout(this.dragTimeout);
@@ -239,35 +237,40 @@ export class DragTargetDirective {
239
237
  this.service.dragTarget = null;
240
238
  this.service.dragTargetDirective = null;
241
239
  this.ngZone.run(() => {
242
- const eventArgs = new ReleaseEvent({ normalizedEvent: event, hostElement: this.nativeElement });
240
+ const eventArgs = new DragTargetPressEvent({ normalizedEvent: event, hostElement: this.nativeElement });
243
241
  this.release.emit(eventArgs);
244
242
  });
245
243
  }
246
- /**
247
- * @hidden
248
- */
249
244
  handleDragEnd(event) {
250
- if (!this.dragStarted) {
251
- return;
245
+ if (this.dragTimeout) {
246
+ clearTimeout(this.dragTimeout);
247
+ this.dragTimeout = null;
248
+ this.pressed = false;
252
249
  }
253
- this.dragStarted = false;
250
+ const isDroppedOverParentTarget = isPresent(this.service.dropTarget) && !contains(this.service.dropTarget, this.service.dragTarget, true);
254
251
  const elem = this.hint ? this.hintElem : this.nativeElement;
252
+ if (isDroppedOverParentTarget || this.service.dropTargets.length > 0) {
253
+ this.renderer.removeStyle(elem, 'transform');
254
+ setElementStyles(this.renderer, elem, {
255
+ transition: dragTargetTransition
256
+ });
257
+ this.position = { x: 0, y: 0 };
258
+ }
255
259
  if (isPresent(this.hint)) {
256
260
  this.renderer.removeStyle(this.nativeElement, 'opacity');
257
261
  this.destroyHint();
258
262
  }
259
- this.renderer.removeStyle(elem, 'transform');
260
- setElementStyles(this.renderer, elem, {
261
- transition: dragTargetTransition
262
- });
263
+ this.service.dragTarget = null;
264
+ this.service.dragTargetDirective = null;
265
+ if (!this.dragStarted || isDragStartPrevented || isDragPrevented) {
266
+ return;
267
+ }
263
268
  this.ngZone.run(() => {
264
- const eventArgs = new DragEndEvent({ normalizedEvent: event, hostElement: this.nativeElement });
269
+ const eventArgs = new DragTargetDragEndEvent({ normalizedEvent: event, hostElement: this.nativeElement });
265
270
  this.dragEnd.emit(eventArgs);
266
271
  });
272
+ this.dragStarted = false;
267
273
  }
268
- /**
269
- * @hidden
270
- */
271
274
  initializeDraggable() {
272
275
  this.dragTarget = {
273
276
  element: this.nativeElement,
@@ -279,9 +282,6 @@ export class DragTargetDirective {
279
282
  onDragEnd: this.handleDragEnd.bind(this)
280
283
  };
281
284
  }
282
- /**
283
- * @hidden
284
- */
285
285
  attachDomHandlers() {
286
286
  if (this.domSubscriptions.length > 0) {
287
287
  this.domSubscriptions.forEach(subscription => subscription());
@@ -321,24 +321,15 @@ export class DragTargetDirective {
321
321
  ];
322
322
  }
323
323
  }
324
- /**
325
- * @hidden
326
- */
327
324
  isDragHandle(el) {
328
325
  return this.dragHandles.toArray().some(dh => contains(dh.element.nativeElement, el, true));
329
326
  }
330
- /**
331
- * @hidden
332
- */
333
327
  getAutoScrollContainer() {
334
328
  return typeof this.autoScroll === 'object' &&
335
329
  this.autoScroll.boundaryElementRef &&
336
330
  this.autoScroll.boundaryElementRef.nativeElement ?
337
331
  this.autoScroll.boundaryElementRef.nativeElement : null;
338
332
  }
339
- /**
340
- * @hidden
341
- */
342
333
  createHint() {
343
334
  const hintComponent = this.resolver.resolveComponentFactory(HintComponent);
344
335
  this.hint = this.viewContainer.createComponent(hintComponent);
@@ -347,26 +338,20 @@ export class DragTargetDirective {
347
338
  this.hint.changeDetectorRef.detectChanges();
348
339
  this.dragTarget.hint = this.hint.instance.element.nativeElement;
349
340
  }
350
- /**
351
- * @hidden
352
- */
353
341
  destroyHint() {
354
342
  this.hint.destroy();
355
343
  this.hint.changeDetectorRef.detectChanges();
356
344
  this.hint = null;
357
345
  this.dragTarget.hint = null;
358
346
  }
359
- /**
360
- * @hidden
361
- */
362
347
  emitEvent(event, args) {
363
348
  let eventArgs;
364
349
  switch (event) {
365
350
  case 'dragStart':
366
- eventArgs = new DragStartEvent(args);
351
+ eventArgs = new DragTargetDragStartEvent(args);
367
352
  break;
368
353
  case 'drag':
369
- eventArgs = new DragEvent(args);
354
+ eventArgs = new DragTargetDragEvent(args);
370
355
  break;
371
356
  default:
372
357
  break;
@@ -376,7 +361,7 @@ export class DragTargetDirective {
376
361
  }
377
362
  }
378
363
  DragTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragTargetDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.DragStateService }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Directive });
379
- DragTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragTargetDirective, selector: "[kendoDragTarget]", inputs: { hintTemplate: "hintTemplate", threshold: "threshold", autoScroll: "autoScroll", link: "link", dragDelay: "dragDelay", restrictByAxis: "restrictByAxis" }, outputs: { press: "press", dragStart: "dragStart", drag: "drag", release: "release", dragEnd: "dragEnd" }, host: { properties: { "style.touch-action": "this.touchAction" } }, queries: [{ propertyName: "dragHandles", predicate: DragHandleDirective }], exportAs: ["kendoDragTarget"], ngImport: i0 });
364
+ DragTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DragTargetDirective, selector: "[kendoDragTarget]", inputs: { hintTemplate: "hintTemplate", threshold: "threshold", autoScroll: "autoScroll", link: "link", dragDelay: "dragDelay", restrictByAxis: "restrictByAxis" }, outputs: { press: "press", dragStart: "dragStart", drag: "drag", dragReady: "dragReady", release: "release", dragEnd: "dragEnd" }, host: { properties: { "style.touch-action": "this.touchAction" } }, queries: [{ propertyName: "dragHandles", predicate: DragHandleDirective }], exportAs: ["kendoDragTarget"], ngImport: i0 });
380
365
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragTargetDirective, decorators: [{
381
366
  type: Directive,
382
367
  args: [{
@@ -401,6 +386,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
401
386
  type: Output
402
387
  }], drag: [{
403
388
  type: Output
389
+ }], dragReady: [{
390
+ type: Output
404
391
  }], release: [{
405
392
  type: Output
406
393
  }], dragEnd: [{
@@ -5,7 +5,7 @@
5
5
  import { Directive, EventEmitter, Input, Output } from "@angular/core";
6
6
  import { validatePackage } from '@progress/kendo-licensing';
7
7
  import { packageMetadata } from '../package-metadata';
8
- import { DragEnterEvent, DragOverEvent, DragLeaveEvent, DropEvent } from './events/drop-target';
8
+ import { DropTargetDragEnterEvent, DropTargetDragOverEvent, DropTargetDragLeaveEvent, DropTargetDropEvent } from './events/drop-target';
9
9
  import { isPresent } from './util';
10
10
  import * as i0 from "@angular/core";
11
11
  import * as i1 from "./drag-state.service";
@@ -47,6 +47,9 @@ export class DropTargetDirective {
47
47
  * @hidden
48
48
  */
49
49
  handleDragEnter(event) {
50
+ if (!this.service.dragTarget) {
51
+ return;
52
+ }
50
53
  let allowed = true;
51
54
  if (isPresent(this.allowedDragTargets)) {
52
55
  switch (typeof this.allowedDragTargets) {
@@ -66,7 +69,7 @@ export class DropTargetDirective {
66
69
  if (allowed) {
67
70
  this.service.dropTarget = this.dropTarget;
68
71
  this.ngZone.run(() => {
69
- const eventArgs = new DragEnterEvent({ event, element: this.element.nativeElement });
72
+ const eventArgs = new DropTargetDragEnterEvent({ normalizedEvent: event, hostElement: this.element.nativeElement });
70
73
  this.dragEnter.emit(eventArgs);
71
74
  });
72
75
  }
@@ -76,8 +79,11 @@ export class DropTargetDirective {
76
79
  */
77
80
  handleDragLeave(event) {
78
81
  this.service.dropTarget = null;
82
+ if (!this.service.dragTarget) {
83
+ return;
84
+ }
79
85
  this.ngZone.run(() => {
80
- const eventArgs = new DragLeaveEvent({ event, element: this.element.nativeElement });
86
+ const eventArgs = new DropTargetDragLeaveEvent({ normalizedEvent: event, hostElement: this.element.nativeElement });
81
87
  this.dragLeave.emit(eventArgs);
82
88
  });
83
89
  }
@@ -85,8 +91,11 @@ export class DropTargetDirective {
85
91
  * @hidden
86
92
  */
87
93
  handleDragOver(event) {
94
+ if (!this.service.dragTarget) {
95
+ return;
96
+ }
88
97
  this.ngZone.run(() => {
89
- const eventArgs = new DragOverEvent({ event, element: this.element.nativeElement });
98
+ const eventArgs = new DropTargetDragOverEvent({ normalizedEvent: event, hostElement: this.element.nativeElement });
90
99
  this.dragOver.emit(eventArgs);
91
100
  });
92
101
  }
@@ -95,10 +104,9 @@ export class DropTargetDirective {
95
104
  */
96
105
  handleDrop(event) {
97
106
  this.ngZone.run(() => {
98
- const eventArgs = new DropEvent({ event, element: this.element.nativeElement });
107
+ const eventArgs = new DropTargetDropEvent({ normalizedEvent: event, hostElement: this.element.nativeElement });
99
108
  this.drop.emit(eventArgs);
100
109
  });
101
- this.service.setScrollOffset({ x: 0, y: 0 });
102
110
  }
103
111
  /**
104
112
  * @hidden
@@ -6,7 +6,7 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
6
6
  /**
7
7
  * Arguments for the drag event of the DragTarget.
8
8
  */
9
- export class DragEvent extends PreventableEvent {
9
+ export class DragTargetDragEvent extends PreventableEvent {
10
10
  /**
11
11
  * @hidden
12
12
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the dragEnd event of the DragTarget.
7
7
  */
8
- export class DragEndEvent {
8
+ export class DragTargetDragEndEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -2,8 +2,7 @@
2
2
  * Copyright © 2021 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
- export { PressEvent } from './press-event';
6
- export { DragStartEvent } from './start-event';
7
- export { ReleaseEvent } from './release-event';
8
- export { DragEndEvent } from './end-event';
9
- export { DragEvent } from './drag-event';
5
+ export { DragTargetPressEvent } from './press-event';
6
+ export { DragTargetDragStartEvent } from './start-event';
7
+ export { DragTargetDragEndEvent } from './end-event';
8
+ export { DragTargetDragEvent } from './drag-event';
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the press event of the DragTarget.
7
7
  */
8
- export class PressEvent {
8
+ export class DragTargetPressEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -6,7 +6,7 @@ import { PreventableEvent } from '@progress/kendo-angular-common';
6
6
  /**
7
7
  * Arguments for the dragStart event of the DragTarget.
8
8
  */
9
- export class DragStartEvent extends PreventableEvent {
9
+ export class DragTargetDragStartEvent extends PreventableEvent {
10
10
  /**
11
11
  * @hidden
12
12
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the drop event of the DropTarget.
7
7
  */
8
- export class DropEvent {
8
+ export class DropTargetDropEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the dragEnter event of the DropTarget.
7
7
  */
8
- export class DragEnterEvent {
8
+ export class DropTargetDragEnterEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2021 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
- export { DragEnterEvent } from './enter-event';
6
- export { DragOverEvent } from './over-event';
7
- export { DragLeaveEvent } from './leave-event';
8
- export { DropEvent } from './drop-event';
5
+ export { DropTargetDragEnterEvent } from './enter-event';
6
+ export { DropTargetDragOverEvent } from './over-event';
7
+ export { DropTargetDragLeaveEvent } from './leave-event';
8
+ export { DropTargetDropEvent } from './drop-event';
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the dragLeave event of the DropTarget.
7
7
  */
8
- export class DragLeaveEvent {
8
+ export class DropTargetDragLeaveEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Arguments for the dragOver event of the DropTarget.
7
7
  */
8
- export class DragOverEvent {
8
+ export class DropTargetDragOverEvent {
9
9
  /**
10
10
  * @hidden
11
11
  */
@@ -15,6 +15,37 @@ const EXPORTS = [
15
15
  DropTargetDirective,
16
16
  HintComponent
17
17
  ];
18
+ /**
19
+ * Represents the [NgModule]({{ site.data.urls.angular['ngmodules'] }})
20
+ * definition for the Drag and Drop directives.
21
+ *
22
+ * @example
23
+ *
24
+ * ```ts-no-run
25
+ * // Import the DragAndDrop module
26
+ * import { DragAndDropModule } from '@progress/kendo-angular-utils';
27
+ *
28
+ * // The browser platform with a compiler
29
+ * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
30
+ *
31
+ * import { NgModule } from '@angular/core';
32
+ *
33
+ * // Import the app component
34
+ * import { AppComponent } from './app.component';
35
+ *
36
+ * // Define the app module
37
+ * _@NgModule({
38
+ * declarations: [AppComponent], // declare app component
39
+ * imports: [BrowserModule, DragAndDropModule], // import DragAndDropModule module
40
+ * bootstrap: [AppComponent]
41
+ * })
42
+ * export class AppModule {}
43
+ *
44
+ * // Compile and launch the module
45
+ * platformBrowserDynamic().bootstrapModule(AppModule);
46
+ *
47
+ * ```
48
+ */
18
49
  export class DragAndDropModule {
19
50
  }
20
51
  DragAndDropModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DragAndDropModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -31,6 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImpo
31
62
  args: [{
32
63
  declarations: [...EXPORTS],
33
64
  exports: [...EXPORTS],
34
- imports: [CommonModule]
65
+ imports: [CommonModule],
66
+ entryComponents: [HintComponent]
35
67
  }]
36
68
  }] });
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-utils',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1660638843,
12
+ publishDate: 1663073506,
13
13
  version: '',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
15
15
  };