@progress/kendo-angular-sortable 4.0.7-dev.202203091022 → 5.0.0-dev.202204131843

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 (85) hide show
  1. package/{dist/es2015/binding.directive.d.ts → binding.directive.d.ts} +4 -1
  2. package/bundles/kendo-angular-sortable.umd.js +5 -0
  3. package/{dist/es2015/data-event-args.interface.d.ts → data-event-args.interface.d.ts} +0 -0
  4. package/{dist/es2015/data-events.d.ts → data-events.d.ts} +0 -0
  5. package/{dist/es2015/draggable-event.d.ts → draggable-event.d.ts} +0 -0
  6. package/{dist/es2015/draggable.directive.d.ts → draggable.directive.d.ts} +11 -4
  7. package/{dist/es2015 → esm2015}/binding.directive.js +16 -18
  8. package/{dist/es2015 → esm2015}/data-event-args.interface.js +1 -0
  9. package/{dist/es2015 → esm2015}/data-events.js +0 -0
  10. package/{dist/es2015 → esm2015}/draggable-event.js +0 -0
  11. package/esm2015/draggable.directive.js +71 -0
  12. package/esm2015/item-template.directive.js +39 -0
  13. package/{dist/es/index.js → esm2015/kendo-angular-sortable.js} +0 -0
  14. package/{dist/es → esm2015}/main.js +0 -0
  15. package/{dist/es2015 → esm2015}/navigate-event.js +0 -0
  16. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  17. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  18. package/esm2015/sortable-container.js +16 -0
  19. package/{dist/es2015 → esm2015}/sortable-event-args.interface.js +1 -0
  20. package/{dist/es2015 → esm2015}/sortable-events.js +0 -0
  21. package/{dist/es2015 → esm2015}/sortable.component.js +162 -179
  22. package/{dist/es2015 → esm2015}/sortable.module.js +23 -12
  23. package/{dist/es2015 → esm2015}/sortable.service.js +9 -11
  24. package/{dist/es2015 → esm2015}/util.js +0 -3
  25. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-sortable.js} +406 -407
  26. package/{dist/es2015/item-template.directive.d.ts → item-template.directive.d.ts} +5 -0
  27. package/{dist/es2015/index.d.ts → kendo-angular-sortable.d.ts} +1 -0
  28. package/{dist/es2015/main.d.ts → main.d.ts} +0 -0
  29. package/{dist/es2015/navigate-event.d.ts → navigate-event.d.ts} +0 -0
  30. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  31. package/package.json +32 -92
  32. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  33. package/schematics/ngAdd/index.js +5 -2
  34. package/schematics/ngAdd/index.js.map +1 -1
  35. package/{dist/es2015/sortable-container.d.ts → sortable-container.d.ts} +3 -0
  36. package/{dist/es2015/sortable-event-args.interface.d.ts → sortable-event-args.interface.d.ts} +0 -0
  37. package/{dist/es2015/sortable-events.d.ts → sortable-events.d.ts} +0 -0
  38. package/{dist/es2015/sortable.component.d.ts → sortable.component.d.ts} +13 -8
  39. package/{dist/es2015/sortable.module.d.ts → sortable.module.d.ts} +9 -0
  40. package/{dist/es2015/sortable.service.d.ts → sortable.service.d.ts} +5 -1
  41. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  42. package/dist/cdn/js/kendo-angular-sortable.js +0 -20
  43. package/dist/cdn/main.js +0 -5
  44. package/dist/es/binding.directive.js +0 -177
  45. package/dist/es/data-event-args.interface.js +0 -4
  46. package/dist/es/data-events.js +0 -54
  47. package/dist/es/draggable-event.js +0 -23
  48. package/dist/es/draggable.directive.js +0 -88
  49. package/dist/es/item-template.directive.js +0 -39
  50. package/dist/es/navigate-event.js +0 -22
  51. package/dist/es/package-metadata.js +0 -15
  52. package/dist/es/preventable-event.js +0 -34
  53. package/dist/es/sortable-container.js +0 -18
  54. package/dist/es/sortable-event-args.interface.js +0 -4
  55. package/dist/es/sortable-events.js +0 -54
  56. package/dist/es/sortable.component.js +0 -1075
  57. package/dist/es/sortable.module.js +0 -64
  58. package/dist/es/sortable.service.js +0 -236
  59. package/dist/es/util.js +0 -144
  60. package/dist/es2015/draggable.directive.js +0 -75
  61. package/dist/es2015/index.js +0 -8
  62. package/dist/es2015/index.metadata.json +0 -1
  63. package/dist/es2015/item-template.directive.js +0 -37
  64. package/dist/es2015/main.js +0 -17
  65. package/dist/es2015/sortable-container.js +0 -15
  66. package/dist/fesm5/index.js +0 -1944
  67. package/dist/npm/binding.directive.js +0 -179
  68. package/dist/npm/data-event-args.interface.js +0 -6
  69. package/dist/npm/data-events.js +0 -56
  70. package/dist/npm/draggable-event.js +0 -25
  71. package/dist/npm/draggable.directive.js +0 -90
  72. package/dist/npm/index.js +0 -11
  73. package/dist/npm/item-template.directive.js +0 -41
  74. package/dist/npm/main.js +0 -34
  75. package/dist/npm/navigate-event.js +0 -24
  76. package/dist/npm/package-metadata.js +0 -17
  77. package/dist/npm/preventable-event.js +0 -36
  78. package/dist/npm/sortable-container.js +0 -20
  79. package/dist/npm/sortable-event-args.interface.js +0 -6
  80. package/dist/npm/sortable-events.js +0 -56
  81. package/dist/npm/sortable.component.js +0 -1077
  82. package/dist/npm/sortable.module.js +0 -66
  83. package/dist/npm/sortable.service.js +0 -238
  84. package/dist/npm/util.js +0 -147
  85. package/dist/systemjs/kendo-angular-sortable.js +0 -5
@@ -2,14 +2,16 @@
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
- import { __decorate, __metadata } from 'tslib';
6
- import { Injectable, NgZone, Input, HostBinding, Directive, ElementRef, Renderer2, TemplateRef, EventEmitter, ContentChildren, QueryList, ViewChildren, ViewChild, Output, Component, forwardRef, ChangeDetectorRef, NgModule } from '@angular/core';
5
+ import * as i0 from '@angular/core';
6
+ import { Injectable, Directive, Input, HostBinding, EventEmitter, forwardRef, TemplateRef, Component, ContentChildren, ViewChildren, ViewChild, Output, NgModule } from '@angular/core';
7
7
  import { Subject, merge } from 'rxjs';
8
8
  import { isDocumentAvailable, isChanged } from '@progress/kendo-angular-common';
9
9
  import { filter, tap, take, switchMap } from 'rxjs/operators';
10
+ import * as i1 from '@progress/kendo-angular-l10n';
10
11
  import { LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
11
12
  import { validatePackage } from '@progress/kendo-licensing';
12
13
  import Draggable from '@telerik/kendo-draggable';
14
+ import * as i3 from '@angular/common';
13
15
  import { CommonModule } from '@angular/common';
14
16
 
15
17
  const NODE_NAME_PREDICATES = {};
@@ -152,11 +154,214 @@ const packageMetadata = {
152
154
  name: '@progress/kendo-angular-sortable',
153
155
  productName: 'Kendo UI for Angular',
154
156
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
155
- publishDate: 1646821279,
157
+ publishDate: 1649875352,
156
158
  version: '',
157
159
  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'
158
160
  };
159
161
 
162
+ /**
163
+ * @hidden
164
+ */
165
+ class SortableContainer {
166
+ }
167
+ SortableContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableContainer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
168
+ SortableContainer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableContainer });
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableContainer, decorators: [{
170
+ type: Injectable
171
+ }] });
172
+
173
+ /**
174
+ * @hidden
175
+ */
176
+ class DraggableDirective {
177
+ constructor(parent, el, renderer) {
178
+ this.parent = parent;
179
+ this.el = el;
180
+ this.renderer = renderer;
181
+ }
182
+ set hidden(value) {
183
+ this._hidden = value;
184
+ this.updateDisplayStyle();
185
+ }
186
+ ;
187
+ get hidden() {
188
+ return this._hidden;
189
+ }
190
+ get _focused() {
191
+ return this.disabled ? false : (this.index === this.parent.activeIndex);
192
+ }
193
+ get _disabled() {
194
+ return this.disabled;
195
+ }
196
+ get display() {
197
+ return this.hidden ? "none" : this._display;
198
+ }
199
+ set display(display) {
200
+ this._display = display;
201
+ this.updateDisplayStyle();
202
+ }
203
+ ngOnInit() {
204
+ const nativeElement = this.el.nativeElement;
205
+ this.display = nativeElement.style.display;
206
+ if (nativeElement) { // Remove the inline styles after a few releases of the themes with the style.
207
+ this.renderer.setStyle(nativeElement, 'user-select', 'none');
208
+ this.renderer.setStyle(nativeElement, '-ms-user-select', 'none');
209
+ this.renderer.setStyle(nativeElement, '-moz-user-select', 'none');
210
+ this.renderer.setStyle(nativeElement, '-webkit-user-select', 'none');
211
+ }
212
+ }
213
+ updateDisplayStyle() {
214
+ this.renderer.setStyle(this.el.nativeElement, 'display', this.display);
215
+ }
216
+ }
217
+ DraggableDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, deps: [{ token: SortableContainer }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
218
+ DraggableDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: DraggableDirective, selector: "[kendoDraggable]", inputs: { index: "index", disabled: "disabled", hidden: "hidden" }, host: { properties: { "class.k-state-focused": "this._focused", "attr.aria-disabled": "this._disabled" } }, ngImport: i0 });
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: DraggableDirective, decorators: [{
220
+ type: Directive,
221
+ args: [{
222
+ selector: '[kendoDraggable]'
223
+ }]
224
+ }], ctorParameters: function () { return [{ type: SortableContainer }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { index: [{
225
+ type: Input
226
+ }], disabled: [{
227
+ type: Input
228
+ }], hidden: [{
229
+ type: Input
230
+ }], _focused: [{
231
+ type: HostBinding,
232
+ args: ['class.k-state-focused']
233
+ }], _disabled: [{
234
+ type: HostBinding,
235
+ args: ['attr.aria-disabled']
236
+ }] } });
237
+
238
+ //TODO: RENAME FILE AND UPDATE EXPORTS AND MODULES
239
+ /**
240
+ * @hidden
241
+ */
242
+ class ItemTemplateDirective {
243
+ constructor(templateRef) {
244
+ this.templateRef = templateRef;
245
+ }
246
+ }
247
+ ItemTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
248
+ ItemTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: ItemTemplateDirective, selector: "[kendoSortableItemTemplate]", ngImport: i0 });
249
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: ItemTemplateDirective, decorators: [{
250
+ type: Directive,
251
+ args: [{
252
+ selector: '[kendoSortableItemTemplate]'
253
+ }]
254
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
255
+ /**
256
+ * @hidden
257
+ */
258
+ class PlaceholderTemplateDirective {
259
+ constructor(templateRef) {
260
+ this.templateRef = templateRef;
261
+ }
262
+ }
263
+ PlaceholderTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PlaceholderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
264
+ PlaceholderTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: PlaceholderTemplateDirective, selector: "[kendoSortablePlaceholderTemplate]", ngImport: i0 });
265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: PlaceholderTemplateDirective, decorators: [{
266
+ type: Directive,
267
+ args: [{
268
+ selector: '[kendoSortablePlaceholderTemplate]'
269
+ }]
270
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef }]; } });
271
+
272
+ /**
273
+ * Defines an event whose default action can be prevented
274
+ * by calling the `preventDefault` method.
275
+ *
276
+ * @hidden
277
+ */
278
+ class PreventableEvent {
279
+ constructor() {
280
+ this.prevented = false;
281
+ }
282
+ /**
283
+ * Prevents the default action for a specified event.
284
+ * In this way, the source component suppresses
285
+ * the built-in behavior that follows the event.
286
+ */
287
+ preventDefault() {
288
+ this.prevented = true;
289
+ }
290
+ /**
291
+ * If the event was prevented
292
+ * by any of its subscribers, returns `true`.
293
+ *
294
+ * @returns `true` if the default action was prevented. Otherwise, returns `false`.
295
+ */
296
+ isDefaultPrevented() {
297
+ return this.prevented;
298
+ }
299
+ }
300
+
301
+ /**
302
+ * The `navigate` event is emitted when using the keyboard arrows.
303
+ */
304
+ class NavigateEvent extends PreventableEvent {
305
+ /**
306
+ * @hidden
307
+ */
308
+ constructor(options) {
309
+ super();
310
+ Object.assign(this, options);
311
+ }
312
+ }
313
+
314
+ /**
315
+ * The arguments for the `DraggableDirective` events.
316
+ * @hidden
317
+ */
318
+ class DraggableEvent extends PreventableEvent {
319
+ /**
320
+ * @hidden
321
+ */
322
+ constructor(options) {
323
+ super();
324
+ Object.assign(this, options);
325
+ }
326
+ }
327
+
328
+ /**
329
+ * Arguments for the `dragStart` event.
330
+ */
331
+ class DragStartEvent extends PreventableEvent {
332
+ /**
333
+ * @hidden
334
+ */
335
+ constructor(options) {
336
+ super();
337
+ Object.assign(this, options);
338
+ }
339
+ }
340
+ /**
341
+ * Arguments for the `dragOver` event.
342
+ */
343
+ class DragOverEvent extends DragStartEvent {
344
+ /**
345
+ * @hidden
346
+ */
347
+ constructor(options) {
348
+ super(options);
349
+ Object.assign(this, options);
350
+ }
351
+ }
352
+ /**
353
+ * Arguments for the `dragEnd` event.
354
+ */
355
+ class DragEndEvent extends DragOverEvent {
356
+ /**
357
+ * @hidden
358
+ */
359
+ constructor(options) {
360
+ super(options);
361
+ Object.assign(this, options);
362
+ }
363
+ }
364
+
160
365
  const allowDrag = (e) => {
161
366
  const target = e.originalEvent.target;
162
367
  return target.hasAttribute('data-sortable-item') || !(isFocusable(target) || widgetTarget(target));
@@ -166,7 +371,7 @@ const allowDrag = (e) => {
166
371
  * transferring items between Sortable components within the same page.
167
372
  *
168
373
  */
169
- let SortableService = class SortableService {
374
+ class SortableService {
170
375
  constructor(ngZone) {
171
376
  this.ngZone = ngZone;
172
377
  /**
@@ -365,213 +570,13 @@ let SortableService = class SortableService {
365
570
  this.source.markForCheck();
366
571
  });
367
572
  }
368
- };
369
- SortableService = __decorate([
370
- Injectable(),
371
- __metadata("design:paramtypes", [NgZone])
372
- ], SortableService);
373
-
374
- /**
375
- * @hidden
376
- */
377
- let SortableContainer = class SortableContainer {
378
- };
379
- SortableContainer = __decorate([
380
- Injectable()
381
- ], SortableContainer);
382
-
383
- /**
384
- * @hidden
385
- */
386
- let DraggableDirective = class DraggableDirective {
387
- constructor(parent, el, renderer) {
388
- this.parent = parent;
389
- this.el = el;
390
- this.renderer = renderer;
391
- }
392
- get _focused() {
393
- return this.disabled ? false : (this.index === this.parent.activeIndex);
394
- }
395
- get _disabled() {
396
- return this.disabled;
397
- }
398
- get display() {
399
- return this.hidden ? "none" : this._display;
400
- }
401
- set display(display) {
402
- this._display = display;
403
- }
404
- ngOnInit() {
405
- const nativeElement = this.el.nativeElement;
406
- this.display = nativeElement.style.display;
407
- if (nativeElement) { // Remove the inline styles after a few releases of the themes with the style.
408
- this.renderer.setStyle(nativeElement, 'user-select', 'none');
409
- this.renderer.setStyle(nativeElement, '-ms-user-select', 'none');
410
- this.renderer.setStyle(nativeElement, '-moz-user-select', 'none');
411
- this.renderer.setStyle(nativeElement, '-webkit-user-select', 'none');
412
- }
413
- }
414
- };
415
- __decorate([
416
- Input(),
417
- __metadata("design:type", Number)
418
- ], DraggableDirective.prototype, "index", void 0);
419
- __decorate([
420
- Input(),
421
- __metadata("design:type", Boolean)
422
- ], DraggableDirective.prototype, "hidden", void 0);
423
- __decorate([
424
- Input(),
425
- __metadata("design:type", Boolean)
426
- ], DraggableDirective.prototype, "disabled", void 0);
427
- __decorate([
428
- HostBinding('class.k-state-focused'),
429
- __metadata("design:type", Boolean),
430
- __metadata("design:paramtypes", [])
431
- ], DraggableDirective.prototype, "_focused", null);
432
- __decorate([
433
- HostBinding('attr.aria-disabled'),
434
- __metadata("design:type", Boolean),
435
- __metadata("design:paramtypes", [])
436
- ], DraggableDirective.prototype, "_disabled", null);
437
- __decorate([
438
- HostBinding('style.display'),
439
- __metadata("design:type", String),
440
- __metadata("design:paramtypes", [String])
441
- ], DraggableDirective.prototype, "display", null);
442
- DraggableDirective = __decorate([
443
- Directive({
444
- selector: '[kendoDraggable]'
445
- }),
446
- __metadata("design:paramtypes", [SortableContainer,
447
- ElementRef,
448
- Renderer2])
449
- ], DraggableDirective);
450
-
451
- //TODO: RENAME FILE AND UPDATE EXPORTS AND MODULES
452
- /**
453
- * @hidden
454
- */
455
- let ItemTemplateDirective = class ItemTemplateDirective {
456
- constructor(templateRef) {
457
- this.templateRef = templateRef;
458
- }
459
- };
460
- ItemTemplateDirective = __decorate([
461
- Directive({
462
- selector: '[kendoSortableItemTemplate]'
463
- }),
464
- __metadata("design:paramtypes", [TemplateRef])
465
- ], ItemTemplateDirective);
466
- /**
467
- * @hidden
468
- */
469
- let PlaceholderTemplateDirective = class PlaceholderTemplateDirective {
470
- constructor(templateRef) {
471
- this.templateRef = templateRef;
472
- }
473
- };
474
- PlaceholderTemplateDirective = __decorate([
475
- Directive({
476
- selector: '[kendoSortablePlaceholderTemplate]'
477
- }),
478
- __metadata("design:paramtypes", [TemplateRef])
479
- ], PlaceholderTemplateDirective);
480
-
481
- /**
482
- * Defines an event whose default action can be prevented
483
- * by calling the `preventDefault` method.
484
- *
485
- * @hidden
486
- */
487
- class PreventableEvent {
488
- constructor() {
489
- this.prevented = false;
490
- }
491
- /**
492
- * Prevents the default action for a specified event.
493
- * In this way, the source component suppresses
494
- * the built-in behavior that follows the event.
495
- */
496
- preventDefault() {
497
- this.prevented = true;
498
- }
499
- /**
500
- * If the event was prevented
501
- * by any of its subscribers, returns `true`.
502
- *
503
- * @returns `true` if the default action was prevented. Otherwise, returns `false`.
504
- */
505
- isDefaultPrevented() {
506
- return this.prevented;
507
- }
508
- }
509
-
510
- /**
511
- * The `navigate` event is emitted when using the keyboard arrows.
512
- */
513
- class NavigateEvent extends PreventableEvent {
514
- /**
515
- * @hidden
516
- */
517
- constructor(options) {
518
- super();
519
- Object.assign(this, options);
520
- }
521
- }
522
-
523
- /**
524
- * The arguments for the `DraggableDirective` events.
525
- * @hidden
526
- */
527
- class DraggableEvent extends PreventableEvent {
528
- /**
529
- * @hidden
530
- */
531
- constructor(options) {
532
- super();
533
- Object.assign(this, options);
534
- }
535
573
  }
574
+ SortableService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
575
+ SortableService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableService });
576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableService, decorators: [{
577
+ type: Injectable
578
+ }], ctorParameters: function () { return [{ type: i0.NgZone }]; } });
536
579
 
537
- /**
538
- * Arguments for the `dragStart` event.
539
- */
540
- class DragStartEvent extends PreventableEvent {
541
- /**
542
- * @hidden
543
- */
544
- constructor(options) {
545
- super();
546
- Object.assign(this, options);
547
- }
548
- }
549
- /**
550
- * Arguments for the `dragOver` event.
551
- */
552
- class DragOverEvent extends DragStartEvent {
553
- /**
554
- * @hidden
555
- */
556
- constructor(options) {
557
- super(options);
558
- Object.assign(this, options);
559
- }
560
- }
561
- /**
562
- * Arguments for the `dragEnd` event.
563
- */
564
- class DragEndEvent extends DragOverEvent {
565
- /**
566
- * @hidden
567
- */
568
- constructor(options) {
569
- super(options);
570
- Object.assign(this, options);
571
- }
572
- }
573
-
574
- var SortableComponent_1;
575
580
  /**
576
581
  * Represents the [Kendo UI Sortable component for Angular]({% slug overview_sortable %}).
577
582
  *
@@ -579,7 +584,6 @@ var SortableComponent_1;
579
584
  * {% embed_file shared/app.module.ts preview %}
580
585
  * {% embed_file shared/main.ts hidden %}
581
586
  */
582
- let SortableComponent = SortableComponent_1 =
583
587
  /**
584
588
  * Represents the Kendo UI Sortable component for Angular.
585
589
  */
@@ -1419,167 +1423,80 @@ class SortableComponent {
1419
1423
  }
1420
1424
  }
1421
1425
  }
1422
- };
1423
- __decorate([
1424
- Input(),
1425
- __metadata("design:type", Number)
1426
- ], SortableComponent.prototype, "tabIndex", void 0);
1427
- __decorate([
1428
- Input(),
1429
- __metadata("design:type", Array),
1430
- __metadata("design:paramtypes", [Array])
1431
- ], SortableComponent.prototype, "data", null);
1432
- __decorate([
1433
- Input(),
1434
- __metadata("design:type", Boolean)
1435
- ], SortableComponent.prototype, "navigable", void 0);
1436
- __decorate([
1437
- Input(),
1438
- __metadata("design:type", Boolean),
1439
- __metadata("design:paramtypes", [Boolean])
1440
- ], SortableComponent.prototype, "navigatable", null);
1441
- __decorate([
1442
- Input(),
1443
- __metadata("design:type", Boolean)
1444
- ], SortableComponent.prototype, "animation", void 0);
1445
- __decorate([
1446
- Input(),
1447
- __metadata("design:type", Array)
1448
- ], SortableComponent.prototype, "disabledIndexes", void 0);
1449
- __decorate([
1450
- Input(),
1451
- __metadata("design:type", String)
1452
- ], SortableComponent.prototype, "zone", void 0);
1453
- __decorate([
1454
- Input(),
1455
- __metadata("design:type", Array)
1456
- ], SortableComponent.prototype, "acceptZones", void 0);
1457
- __decorate([
1458
- Input(),
1459
- __metadata("design:type", Object)
1460
- ], SortableComponent.prototype, "itemStyle", void 0);
1461
- __decorate([
1462
- Input(),
1463
- __metadata("design:type", Object)
1464
- ], SortableComponent.prototype, "emptyItemStyle", void 0);
1465
- __decorate([
1466
- Input(),
1467
- __metadata("design:type", Object)
1468
- ], SortableComponent.prototype, "activeItemStyle", void 0);
1469
- __decorate([
1470
- Input(),
1471
- __metadata("design:type", Object)
1472
- ], SortableComponent.prototype, "disabledItemStyle", void 0);
1473
- __decorate([
1474
- Input(),
1475
- __metadata("design:type", Object)
1476
- ], SortableComponent.prototype, "itemClass", void 0);
1477
- __decorate([
1478
- Input(),
1479
- __metadata("design:type", Object)
1480
- ], SortableComponent.prototype, "activeItemClass", void 0);
1481
- __decorate([
1482
- Input(),
1483
- __metadata("design:type", Object)
1484
- ], SortableComponent.prototype, "emptyItemClass", void 0);
1485
- __decorate([
1486
- Input(),
1487
- __metadata("design:type", Object)
1488
- ], SortableComponent.prototype, "disabledItemClass", void 0);
1489
- __decorate([
1490
- Input(),
1491
- __metadata("design:type", String)
1492
- ], SortableComponent.prototype, "emptyText", void 0);
1493
- __decorate([
1494
- ContentChildren(TemplateRef, { descendants: false }),
1495
- __metadata("design:type", QueryList)
1496
- ], SortableComponent.prototype, "defaultTemplateRef", void 0);
1497
- __decorate([
1498
- ContentChildren(ItemTemplateDirective, { read: TemplateRef, descendants: false }),
1499
- __metadata("design:type", QueryList)
1500
- ], SortableComponent.prototype, "itemTemplateDirectiveRef", void 0);
1501
- __decorate([
1502
- ContentChildren(PlaceholderTemplateDirective, { read: TemplateRef, descendants: false }),
1503
- __metadata("design:type", QueryList)
1504
- ], SortableComponent.prototype, "placeholderTemplateDirectiveRef", void 0);
1505
- __decorate([
1506
- ViewChildren('itemWrapper'),
1507
- __metadata("design:type", QueryList)
1508
- ], SortableComponent.prototype, "itemWrappers", void 0);
1509
- __decorate([
1510
- ViewChildren(DraggableDirective),
1511
- __metadata("design:type", QueryList)
1512
- ], SortableComponent.prototype, "draggables", void 0);
1513
- __decorate([
1514
- ViewChild('noDataRef', { static: false }),
1515
- __metadata("design:type", ElementRef)
1516
- ], SortableComponent.prototype, "noDataContainer", void 0);
1517
- __decorate([
1518
- ViewChild('hint', { static: false }),
1519
- __metadata("design:type", ElementRef)
1520
- ], SortableComponent.prototype, "hint", void 0);
1521
- __decorate([
1522
- Output(),
1523
- __metadata("design:type", EventEmitter)
1524
- ], SortableComponent.prototype, "dragStart", void 0);
1525
- __decorate([
1526
- Output(),
1527
- __metadata("design:type", EventEmitter)
1528
- ], SortableComponent.prototype, "dragEnd", void 0);
1529
- __decorate([
1530
- Output(),
1531
- __metadata("design:type", EventEmitter)
1532
- ], SortableComponent.prototype, "dragOver", void 0);
1533
- __decorate([
1534
- Output(),
1535
- __metadata("design:type", EventEmitter)
1536
- ], SortableComponent.prototype, "dragLeave", void 0);
1537
- __decorate([
1538
- Output(),
1539
- __metadata("design:type", EventEmitter)
1540
- ], SortableComponent.prototype, "dataMove", void 0);
1541
- __decorate([
1542
- Output(),
1543
- __metadata("design:type", EventEmitter)
1544
- ], SortableComponent.prototype, "dataAdd", void 0);
1545
- __decorate([
1546
- Output(),
1547
- __metadata("design:type", EventEmitter)
1548
- ], SortableComponent.prototype, "dataRemove", void 0);
1549
- __decorate([
1550
- Output(),
1551
- __metadata("design:type", EventEmitter)
1552
- ], SortableComponent.prototype, "navigate", void 0);
1553
- __decorate([
1554
- Input(),
1555
- __metadata("design:type", Number)
1556
- ], SortableComponent.prototype, "activeIndex", void 0);
1557
- __decorate([
1558
- HostBinding('style.touch-action'),
1559
- __metadata("design:type", String),
1560
- __metadata("design:paramtypes", [])
1561
- ], SortableComponent.prototype, "touchAction", null);
1562
- __decorate([
1563
- HostBinding('attr.dir'),
1564
- __metadata("design:type", String),
1565
- __metadata("design:paramtypes", [])
1566
- ], SortableComponent.prototype, "dir", null);
1567
- SortableComponent = SortableComponent_1 = __decorate([
1568
- Component({
1569
- exportAs: 'kendoSortable',
1570
- providers: [
1571
- LocalizationService,
1572
- {
1573
- provide: L10N_PREFIX,
1574
- useValue: 'kendo.sortable'
1575
- },
1576
- {
1577
- provide: SortableContainer,
1578
- useExisting: forwardRef(() => SortableComponent_1)
1579
- }
1580
- ],
1581
- selector: 'kendo-sortable',
1582
- template: `
1426
+ }
1427
+ SortableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: SortableService }], target: i0.ɵɵFactoryTarget.Component });
1428
+ SortableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SortableComponent, selector: "kendo-sortable", inputs: { tabIndex: "tabIndex", data: "data", navigable: "navigable", navigatable: "navigatable", animation: "animation", disabledIndexes: "disabledIndexes", zone: "zone", acceptZones: "acceptZones", itemStyle: "itemStyle", emptyItemStyle: "emptyItemStyle", activeItemStyle: "activeItemStyle", disabledItemStyle: "disabledItemStyle", itemClass: "itemClass", activeItemClass: "activeItemClass", emptyItemClass: "emptyItemClass", disabledItemClass: "disabledItemClass", emptyText: "emptyText", activeIndex: "activeIndex" }, outputs: { dragStart: "dragStart", dragEnd: "dragEnd", dragOver: "dragOver", dragLeave: "dragLeave", dataMove: "dataMove", dataAdd: "dataAdd", dataRemove: "dataRemove", navigate: "navigate" }, host: { properties: { "style.touch-action": "this.touchAction", "attr.dir": "this.dir" } }, providers: [
1429
+ LocalizationService,
1430
+ {
1431
+ provide: L10N_PREFIX,
1432
+ useValue: 'kendo.sortable'
1433
+ },
1434
+ {
1435
+ provide: SortableContainer,
1436
+ useExisting: forwardRef(() => SortableComponent)
1437
+ }
1438
+ ], queries: [{ propertyName: "defaultTemplateRef", predicate: TemplateRef }, { propertyName: "itemTemplateDirectiveRef", predicate: ItemTemplateDirective, read: TemplateRef }, { propertyName: "placeholderTemplateDirectiveRef", predicate: PlaceholderTemplateDirective, read: TemplateRef }], viewQueries: [{ propertyName: "noDataContainer", first: true, predicate: ["noDataRef"], descendants: true }, { propertyName: "hint", first: true, predicate: ["hint"], descendants: true }, { propertyName: "itemWrappers", predicate: ["itemWrapper"], descendants: true }, { propertyName: "draggables", predicate: DraggableDirective, descendants: true }], exportAs: ["kendoSortable"], usesOnChanges: true, ngImport: i0, template: `
1439
+ <div #itemWrapper *ngFor="let item of _localData;let i=index"
1440
+ kendoDraggable
1441
+ [attr.tabIndex]="itemEnabled(i)?(navigable?tabIndex||0:tabIndex):null"
1442
+ [attr.aria-grabbed]="i===dragIndex"
1443
+ [attr.aria-dropeffect]="ariaDropEffect(i)"
1444
+ [attr.data-sortable-item] = "true"
1445
+ [attr.data-sortable-index]="i"
1446
+ [attr.data-sortable-id]="id"
1447
+ [index]="i"
1448
+ [hidden]="item.hidden"
1449
+ [disabled]="!itemEnabled(i)"
1450
+ [ngClass]="currentItemClass(i)"
1451
+ [ngStyle]="currentItemStyle(i)"
1452
+
1453
+ (focus)="focusHandler(i)"
1454
+ (blur)="blurHandler()"
1455
+ (keydown)="keydownHandler($event)"
1456
+ >
1457
+ <ng-container *ngIf="itemTemplateRef"
1458
+ [ngTemplateOutlet]="itemTemplate(i)"
1459
+ [ngTemplateOutletContext]="item">
1460
+ </ng-container>
1461
+ <ng-container *ngIf="!itemTemplateRef">{{item.item}}</ng-container>
1462
+ </div>
1463
+
1464
+ <ng-container #noDataRef *ngIf="!_data.length || _localData.length === 1 && _localData[0].hidden">
1465
+ <div
1466
+ kendoDraggable
1467
+ [index]="0"
1468
+ [disabled]="true"
1469
+ [attr.data-sortable-id]="id"
1470
+ [attr.data-sortable-index]="0"
1471
+ [ngStyle]="currentItemStyle(-1)"
1472
+ [ngClass]="currentItemClass(-1)"
1473
+ >{{emptyText}}</div>
1474
+ </ng-container>
1475
+ <div *ngIf="hintVisible()" [ngStyle]="hintStyle()" [ngClass]="currentItemClass(dragIndex)">
1476
+ <ng-container *ngIf="itemTemplateRef"
1477
+ [ngTemplateOutlet]="itemTemplateRef"
1478
+ [ngTemplateOutletContext]="{item: _localData[dragIndex].item}">
1479
+ </ng-container>
1480
+ <ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>
1481
+ </div>
1482
+ `, isInline: true, directives: [{ type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DraggableDirective, selector: "[kendoDraggable]", inputs: ["index", "disabled", "hidden"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1483
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableComponent, decorators: [{
1484
+ type: Component,
1485
+ args: [{
1486
+ exportAs: 'kendoSortable',
1487
+ providers: [
1488
+ LocalizationService,
1489
+ {
1490
+ provide: L10N_PREFIX,
1491
+ useValue: 'kendo.sortable'
1492
+ },
1493
+ {
1494
+ provide: SortableContainer,
1495
+ useExisting: forwardRef(() => SortableComponent)
1496
+ }
1497
+ ],
1498
+ selector: 'kendo-sortable',
1499
+ template: `
1583
1500
  <div #itemWrapper *ngFor="let item of _localData;let i=index"
1584
1501
  kendoDraggable
1585
1502
  [attr.tabIndex]="itemEnabled(i)?(navigable?tabIndex||0:tabIndex):null"
@@ -1624,17 +1541,87 @@ SortableComponent = SortableComponent_1 = __decorate([
1624
1541
  <ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>
1625
1542
  </div>
1626
1543
  `
1627
- })
1628
- /**
1629
- * Represents the Kendo UI Sortable component for Angular.
1630
- */
1631
- ,
1632
- __metadata("design:paramtypes", [NgZone,
1633
- LocalizationService,
1634
- ChangeDetectorRef,
1635
- ElementRef,
1636
- SortableService])
1637
- ], SortableComponent);
1544
+ }]
1545
+ }], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: SortableService }]; }, propDecorators: { tabIndex: [{
1546
+ type: Input
1547
+ }], data: [{
1548
+ type: Input
1549
+ }], navigable: [{
1550
+ type: Input
1551
+ }], navigatable: [{
1552
+ type: Input
1553
+ }], animation: [{
1554
+ type: Input
1555
+ }], disabledIndexes: [{
1556
+ type: Input
1557
+ }], zone: [{
1558
+ type: Input
1559
+ }], acceptZones: [{
1560
+ type: Input
1561
+ }], itemStyle: [{
1562
+ type: Input
1563
+ }], emptyItemStyle: [{
1564
+ type: Input
1565
+ }], activeItemStyle: [{
1566
+ type: Input
1567
+ }], disabledItemStyle: [{
1568
+ type: Input
1569
+ }], itemClass: [{
1570
+ type: Input
1571
+ }], activeItemClass: [{
1572
+ type: Input
1573
+ }], emptyItemClass: [{
1574
+ type: Input
1575
+ }], disabledItemClass: [{
1576
+ type: Input
1577
+ }], emptyText: [{
1578
+ type: Input
1579
+ }], defaultTemplateRef: [{
1580
+ type: ContentChildren,
1581
+ args: [TemplateRef, { descendants: false }]
1582
+ }], itemTemplateDirectiveRef: [{
1583
+ type: ContentChildren,
1584
+ args: [ItemTemplateDirective, { read: TemplateRef, descendants: false }]
1585
+ }], placeholderTemplateDirectiveRef: [{
1586
+ type: ContentChildren,
1587
+ args: [PlaceholderTemplateDirective, { read: TemplateRef, descendants: false }]
1588
+ }], itemWrappers: [{
1589
+ type: ViewChildren,
1590
+ args: ['itemWrapper']
1591
+ }], draggables: [{
1592
+ type: ViewChildren,
1593
+ args: [DraggableDirective]
1594
+ }], noDataContainer: [{
1595
+ type: ViewChild,
1596
+ args: ['noDataRef', { static: false }]
1597
+ }], hint: [{
1598
+ type: ViewChild,
1599
+ args: ['hint', { static: false }]
1600
+ }], dragStart: [{
1601
+ type: Output
1602
+ }], dragEnd: [{
1603
+ type: Output
1604
+ }], dragOver: [{
1605
+ type: Output
1606
+ }], dragLeave: [{
1607
+ type: Output
1608
+ }], dataMove: [{
1609
+ type: Output
1610
+ }], dataAdd: [{
1611
+ type: Output
1612
+ }], dataRemove: [{
1613
+ type: Output
1614
+ }], navigate: [{
1615
+ type: Output
1616
+ }], activeIndex: [{
1617
+ type: Input
1618
+ }], touchAction: [{
1619
+ type: HostBinding,
1620
+ args: ['style.touch-action']
1621
+ }], dir: [{
1622
+ type: HostBinding,
1623
+ args: ['attr.dir']
1624
+ }] } });
1638
1625
 
1639
1626
  /**
1640
1627
  * The arguments for the `SortableComponent` `dataAdd` event.
@@ -1677,7 +1664,7 @@ class DataMoveEvent extends PreventableEvent {
1677
1664
  * A Directive which handles the most common scenarios such reordering and moving items between Sortables, thus minimizng boilerplate code.
1678
1665
  * This is achieved by subscribing to the Sortable's events and handling them using the API methods it provides.
1679
1666
  */
1680
- let SortableBindingDirective = class SortableBindingDirective {
1667
+ class SortableBindingDirective {
1681
1668
  constructor(sortable, sortableService) {
1682
1669
  this.sortable = sortable;
1683
1670
  this.sortableService = sortableService;
@@ -1820,19 +1807,18 @@ let SortableBindingDirective = class SortableBindingDirective {
1820
1807
  this.removeHiddenSubscription.unsubscribe();
1821
1808
  }
1822
1809
  }
1823
- };
1824
- __decorate([
1825
- Input("kendoSortableBinding"),
1826
- __metadata("design:type", Array),
1827
- __metadata("design:paramtypes", [Array])
1828
- ], SortableBindingDirective.prototype, "data", null);
1829
- SortableBindingDirective = __decorate([
1830
- Directive({
1831
- selector: '[kendoSortableBinding]'
1832
- }),
1833
- __metadata("design:paramtypes", [SortableComponent,
1834
- SortableService])
1835
- ], SortableBindingDirective);
1810
+ }
1811
+ SortableBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableBindingDirective, deps: [{ token: SortableComponent }, { token: SortableService }], target: i0.ɵɵFactoryTarget.Directive });
1812
+ SortableBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: SortableBindingDirective, selector: "[kendoSortableBinding]", inputs: { data: ["kendoSortableBinding", "data"] }, ngImport: i0 });
1813
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableBindingDirective, decorators: [{
1814
+ type: Directive,
1815
+ args: [{
1816
+ selector: '[kendoSortableBinding]'
1817
+ }]
1818
+ }], ctorParameters: function () { return [{ type: SortableComponent }, { type: SortableService }]; }, propDecorators: { data: [{
1819
+ type: Input,
1820
+ args: ["kendoSortableBinding"]
1821
+ }] } });
1836
1822
 
1837
1823
  const COMPONENT_DIRECTIVES = [
1838
1824
  SortableComponent,
@@ -1871,19 +1857,32 @@ const COMPONENT_DIRECTIVES = [
1871
1857
  *
1872
1858
  * ```
1873
1859
  */
1874
- let SortableModule = class SortableModule {
1875
- };
1876
- SortableModule = __decorate([
1877
- NgModule({
1878
- declarations: [COMPONENT_DIRECTIVES],
1879
- exports: [COMPONENT_DIRECTIVES],
1880
- imports: [CommonModule],
1881
- providers: [SortableService]
1882
- })
1883
- ], SortableModule);
1860
+ class SortableModule {
1861
+ }
1862
+ SortableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1863
+ SortableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableModule, declarations: [SortableComponent,
1864
+ DraggableDirective,
1865
+ PlaceholderTemplateDirective,
1866
+ ItemTemplateDirective,
1867
+ SortableBindingDirective], imports: [CommonModule], exports: [SortableComponent,
1868
+ DraggableDirective,
1869
+ PlaceholderTemplateDirective,
1870
+ ItemTemplateDirective,
1871
+ SortableBindingDirective] });
1872
+ SortableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableModule, providers: [SortableService], imports: [[CommonModule]] });
1873
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SortableModule, decorators: [{
1874
+ type: NgModule,
1875
+ args: [{
1876
+ declarations: [COMPONENT_DIRECTIVES],
1877
+ exports: [COMPONENT_DIRECTIVES],
1878
+ imports: [CommonModule],
1879
+ providers: [SortableService]
1880
+ }]
1881
+ }] });
1884
1882
 
1885
1883
  /**
1886
1884
  * Generated bundle index. Do not edit.
1887
1885
  */
1888
1886
 
1889
- export { SortableComponent, SortableModule, PreventableEvent, DraggableEvent, DragStartEvent, DragEndEvent, DragOverEvent, NavigateEvent, DataMoveEvent, DraggableDirective, SortableBindingDirective, PlaceholderTemplateDirective, ItemTemplateDirective, SortableService, SortableContainer };
1887
+ export { DataMoveEvent, DragEndEvent, DragOverEvent, DragStartEvent, DraggableDirective, DraggableEvent, ItemTemplateDirective, NavigateEvent, PlaceholderTemplateDirective, PreventableEvent, SortableBindingDirective, SortableComponent, SortableContainer, SortableModule, SortableService };
1888
+