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

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 +31 -91
  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
@@ -3,12 +3,15 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { TemplateRef } from '@angular/core';
6
+ import * as i0 from "@angular/core";
6
7
  /**
7
8
  * @hidden
8
9
  */
9
10
  export declare class ItemTemplateDirective {
10
11
  templateRef: TemplateRef<any>;
11
12
  constructor(templateRef: TemplateRef<any>);
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemTemplateDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ItemTemplateDirective, "[kendoSortableItemTemplate]", never, {}, {}, never>;
12
15
  }
13
16
  /**
14
17
  * @hidden
@@ -16,4 +19,6 @@ export declare class ItemTemplateDirective {
16
19
  export declare class PlaceholderTemplateDirective {
17
20
  templateRef: TemplateRef<any>;
18
21
  constructor(templateRef: TemplateRef<any>);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlaceholderTemplateDirective, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PlaceholderTemplateDirective, "[kendoSortablePlaceholderTemplate]", never, {}, {}, never>;
19
24
  }
@@ -5,4 +5,5 @@
5
5
  /**
6
6
  * Generated bundle index. Do not edit.
7
7
  */
8
+ /// <amd-module name="@progress/kendo-angular-sortable" />
8
9
  export * from './main';
File without changes
package/package.json CHANGED
@@ -1,93 +1,38 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-sortable",
3
+ "version": "5.0.0-next.202204010905",
3
4
  "description": "A Sortable Component for Angular",
5
+ "license": "SEE LICENSE IN LICENSE.md",
4
6
  "author": "Progress",
5
- "@progress": {
6
- "friendlyName": "Sortable"
7
- },
8
7
  "homepage": "https://www.telerik.com/kendo-angular-ui/components/",
9
- "license": "SEE LICENSE IN LICENSE.md",
10
- "version": "4.0.7-dev.202203091022",
11
- "main": "dist/npm/index.js",
12
- "module": "dist/fesm5/index.js",
13
- "es2015": "dist/fesm2015/index.js",
14
- "esm5": "dist/es/index.js",
15
- "esm2015": "dist/es2015/index.js",
16
- "jsnext:main": "dist/es/index.js",
17
- "typings": "dist/es2015/index.d.ts",
18
- "jsdelivr": "dist/cdn/main.js",
19
- "unpkg": "dist/cdn/main.js",
20
- "sideEffects": false,
21
- "scripts": {
22
- "test": "jest",
23
- "test:watch": "jest --watch",
24
- "test:ci": "ci-angular-test",
25
- "start": "gulp start",
26
- "e2e:ci": "ci-angular-e2e",
27
- "lint": "gulp lint && gulp lint-docs",
28
- "api-check": "gulp api-check",
29
- "build-package": "gulp build-package",
30
- "semantic-release": "semantic-release pre && semantic-prerelease publish && semantic-release post"
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/telerik/kendo-angular-sortable.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/telerik/kendo-angular"
31
14
  },
32
15
  "keywords": [
16
+ "Angular ",
33
17
  "Kendo UI",
34
18
  "Progress",
35
- "Sortable",
36
- "Angular "
19
+ "Sortable"
37
20
  ],
38
- "peerDependencies": {
39
- "@angular/common": "8 - 13",
40
- "@angular/core": "8 - 13",
41
- "@progress/kendo-angular-common": "^2.0.0",
42
- "@progress/kendo-angular-l10n": "^3.0.0",
43
- "@progress/kendo-licensing": "^1.0.2",
44
- "rxjs": "^6.4.0 || ^7.0.0"
21
+ "@progress": {
22
+ "friendlyName": "Sortable"
45
23
  },
46
24
  "dependencies": {
47
- "@progress/kendo-schematics": "^2.0.0",
25
+ "@progress/kendo-schematics": "next",
48
26
  "@telerik/kendo-draggable": "^2.0.0",
49
- "tslib": "^1.9.0"
27
+ "tslib": "^2.3.1"
50
28
  },
51
- "devDependencies": {
52
- "@angular-devkit/core": "^8.2.0",
53
- "@angular-devkit/schematics": "^8.2.0",
54
- "@angular/animations": "^8.2.0",
55
- "@angular/common": "^8.2.0",
56
- "@angular/compiler": "^8.2.0",
57
- "@angular/compiler-cli": "^8.2.0",
58
- "@angular/core": "^8.2.0",
59
- "@angular/forms": "^8.2.0",
60
- "@angular/platform-browser": "^8.2.0",
61
- "@angular/platform-browser-dynamic": "^8.2.0",
62
- "@angular/platform-server": "^8.2.0",
63
- "@angular/router": "^8.2.0",
29
+ "peerDependencies": {
30
+ "@angular/common": "^12.0.0 || ^13.0.0",
31
+ "@angular/core": "^12.0.0 || ^13.0.0",
64
32
  "@progress/kendo-angular-common": "^2.0.0",
65
- "@progress/kendo-angular-e2e": "^2.2.0",
66
- "@progress/kendo-angular-jest-preset": "^2.0.0",
67
- "@progress/kendo-angular-l10n": "^3.0.0",
68
- "@progress/kendo-angular-tasks": "18.1.2-cdn-bundle-v18.10",
33
+ "@progress/kendo-angular-l10n": "next",
69
34
  "@progress/kendo-licensing": "^1.0.2",
70
- "@progress/kendo-theme-bootstrap": "^5.0.0",
71
- "@progress/kendo-theme-default": "^5.0.0",
72
- "@progress/kendo-theme-material": "^5.0.0",
73
- "@telerik/semantic-prerelease": "^1.1.5",
74
- "@types/jest": "^21.1.8",
75
- "@types/node": "ts3.4",
76
- "@types/zone.js": "0.0.27",
77
- "codelyzer": "^5.0.0",
78
- "core-js": "^2.2.2",
79
- "cz-conventional-changelog": "^1.1.5",
80
- "ghooks": "^1.0.3",
81
- "gulp": "^4.0.0",
82
- "jest-cli": "^21.2.1",
83
- "jest-junit": "^8.0.0",
84
- "rxjs": "~6.4.0",
85
- "rxjs-tslint-rules": "^4.23.1",
86
- "semantic-release": "^6.3.6",
87
- "tslint": "^5.20.1",
88
- "typescript": "~3.4.5",
89
- "validate-commit-msg": "^1.1.1",
90
- "zone.js": "~0.9.1"
35
+ "rxjs": "^6.5.3 || ^7.0.0"
91
36
  },
92
37
  "config": {
93
38
  "commitizen": {
@@ -112,23 +57,16 @@
112
57
  "maxSubjectLength": 100
113
58
  }
114
59
  },
115
- "jest": {
116
- "preset": "@progress/kendo-angular-jest-preset"
117
- },
118
- "repository": {
119
- "type": "git",
120
- "url": "https://github.com/telerik/kendo-angular-sortable.git"
121
- },
122
- "bugs": {
123
- "url": "https://github.com/telerik/kendo-angular"
124
- },
60
+ "schematics": "./schematics/collection.json",
125
61
  "release": {
126
62
  "debug": false,
127
63
  "branchTags": {
128
- "develop": "dev"
64
+ "develop": "dev",
65
+ "ng12-update": "next"
129
66
  },
130
67
  "fallbackTags": {
131
- "dev": "latest"
68
+ "dev": "latest",
69
+ "next": "latest"
132
70
  },
133
71
  "analyzeCommits": "@telerik/semantic-prerelease/analyzeCommits",
134
72
  "generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
@@ -136,9 +74,11 @@
136
74
  "verifyConditions": "@telerik/semantic-prerelease/verifyConditions",
137
75
  "verifyRelease": "@telerik/semantic-prerelease/verifyRelease"
138
76
  },
139
- "schematics": "./schematics/collection.json",
140
- "files": [
141
- "dist",
142
- "schematics"
143
- ]
77
+ "main": "bundles/kendo-angular-sortable.umd.js",
78
+ "module": "fesm2015/kendo-angular-sortable.js",
79
+ "es2015": "fesm2015/kendo-angular-sortable.js",
80
+ "esm2015": "esm2015/kendo-angular-sortable.js",
81
+ "fesm2015": "fesm2015/kendo-angular-sortable.js",
82
+ "typings": "kendo-angular-sortable.d.ts",
83
+ "sideEffects": false
144
84
  }
@@ -1,10 +1,13 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
1
5
  "use strict";
2
6
  Object.defineProperty(exports, "__esModule", { value: true });
3
7
  const schematics_1 = require("@angular-devkit/schematics");
4
8
  function default_1(options) {
5
- const finalOptions = Object.assign({}, options, { mainNgModule: 'SortableModule', package: 'sortable' //package name, e.g grid
9
+ const finalOptions = Object.assign(Object.assign({}, options), { mainNgModule: 'SortableModule', package: 'sortable' //package name, e.g grid
6
10
  });
7
11
  return schematics_1.externalSchematic('@progress/kendo-schematics', 'ng-add', finalOptions);
8
12
  }
9
13
  exports.default = default_1;
10
- //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,qBACX,OAAO,IACV,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,UAAU,CAAC,wBAAwB;OAC/C,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../tooling/schematics/ngAdd/index.ts"],"names":[],"mappings":";;AAAA,2DAKqC;AAErC,mBAAyB,OAAY;IACjC,MAAM,YAAY,mCACX,OAAO,KACV,YAAY,EAAE,gBAAgB,EAC9B,OAAO,EAAE,UAAU,CAAC,wBAAwB;OAC/C,CAAC;IAEF,OAAO,8BAAiB,CAAC,4BAA4B,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;AACnF,CAAC;AARD,4BAQC"}
@@ -2,10 +2,13 @@
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 * as i0 from "@angular/core";
5
6
  /**
6
7
  * @hidden
7
8
  */
8
9
  export declare abstract class SortableContainer {
9
10
  abstract activeIndex: number;
10
11
  abstract removeDataItem(index: number): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableContainer, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<SortableContainer>;
11
14
  }
@@ -9,6 +9,7 @@ import { SortableService } from './sortable.service';
9
9
  import { DraggableDirective } from './draggable.directive';
10
10
  import { SortableContainer } from './sortable-container';
11
11
  import { DataAddEvent, DataMoveEvent, DataRemoveEvent } from './data-events';
12
+ import * as i0 from "@angular/core";
12
13
  /**
13
14
  * Represents the [Kendo UI Sortable component for Angular]({% slug overview_sortable %}).
14
15
  *
@@ -31,7 +32,8 @@ export declare class SortableComponent implements OnInit, OnDestroy, OnChanges,
31
32
  * {% embed_file shared/app.module.ts %}
32
33
  * {% embed_file shared/main.ts hidden %}
33
34
  */
34
- data: Array<any>;
35
+ set data(data: Array<any>);
36
+ get data(): Array<any>;
35
37
  /**
36
38
  * Enables or disables the [keyboard navigation]({% slug keyboard_navigation_sortable %}).
37
39
  * The default value is `false`.
@@ -42,7 +44,7 @@ export declare class SortableComponent implements OnInit, OnDestroy, OnChanges,
42
44
  *
43
45
  * A misspelled alias for `navigable`.
44
46
  */
45
- navigatable: boolean;
47
+ set navigatable(value: boolean);
46
48
  /**
47
49
  * Enables or disables the built-in animations.
48
50
  * The default value is `false`.
@@ -208,8 +210,8 @@ export declare class SortableComponent implements OnInit, OnDestroy, OnChanges,
208
210
  * If no item is focused, set to `-1`.
209
211
  */
210
212
  activeIndex: number;
211
- readonly touchAction: string;
212
- readonly dir: string;
213
+ get touchAction(): string;
214
+ get dir(): string;
213
215
  /**
214
216
  * Flag indicating if the component is currently playing animations.
215
217
  * @hidden
@@ -347,11 +349,12 @@ export declare class SortableComponent implements OnInit, OnDestroy, OnChanges,
347
349
  /**
348
350
  * Sets a Boolean value that indicates whether the currently dragged item will be hidden.
349
351
  */
352
+ set hideActiveItem(value: boolean);
350
353
  /**
351
- * If the currently dragged item is hidden, returns `true`.
352
- * If the currently dragged item is visible, returns `false`.
353
- */
354
- hideActiveItem: boolean;
354
+ * If the currently dragged item is hidden, returns `true`.
355
+ * If the currently dragged item is visible, returns `false`.
356
+ */
357
+ get hideActiveItem(): boolean;
355
358
  /**
356
359
  * Clears the active item.
357
360
  * An active item is the item which becomes focused when the user navigates with the keyboard.
@@ -402,4 +405,6 @@ export declare class SortableComponent implements OnInit, OnDestroy, OnChanges,
402
405
  private unsubscribeEvents;
403
406
  private placeHolderItemData;
404
407
  private fixFocus;
408
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableComponent, never>;
409
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortableComponent, "kendo-sortable", ["kendoSortable"], { "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"; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "dragOver": "dragOver"; "dragLeave": "dragLeave"; "dataMove": "dataMove"; "dataAdd": "dataAdd"; "dataRemove": "dataRemove"; "navigate": "navigate"; }, ["defaultTemplateRef", "itemTemplateDirectiveRef", "placeholderTemplateDirectiveRef"], never>;
405
410
  }
@@ -2,6 +2,12 @@
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 * as i0 from "@angular/core";
6
+ import * as i1 from "./sortable.component";
7
+ import * as i2 from "./draggable.directive";
8
+ import * as i3 from "./item-template.directive";
9
+ import * as i4 from "./binding.directive";
10
+ import * as i5 from "@angular/common";
5
11
  /**
6
12
  *
7
13
  * Represents the [`NgModule`]({{ site.data.urls.angular['ngmoduleapi'] }})
@@ -33,4 +39,7 @@
33
39
  * ```
34
40
  */
35
41
  export declare class SortableModule {
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableModule, never>;
43
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SortableModule, [typeof i1.SortableComponent, typeof i2.DraggableDirective, typeof i3.PlaceholderTemplateDirective, typeof i3.ItemTemplateDirective, typeof i4.SortableBindingDirective], [typeof i5.CommonModule], [typeof i1.SortableComponent, typeof i2.DraggableDirective, typeof i3.PlaceholderTemplateDirective, typeof i3.ItemTemplateDirective, typeof i4.SortableBindingDirective]>;
44
+ static ɵinj: i0.ɵɵInjectorDeclaration<SortableModule>;
36
45
  }
@@ -6,6 +6,7 @@ import { NgZone, OnDestroy } from '@angular/core';
6
6
  import { SortableComponent } from './sortable.component';
7
7
  import { DraggableDirective } from './draggable.directive';
8
8
  import { Subject } from 'rxjs';
9
+ import * as i0 from "@angular/core";
9
10
  /**
10
11
  * The service that provides the drag-and-drop functionality for
11
12
  * transferring items between Sortable components within the same page.
@@ -57,7 +58,8 @@ export declare class SortableService implements OnDestroy {
57
58
  /**
58
59
  * Specifies the `SortableComponent` instance under the currently dragged item.
59
60
  */
60
- target: SortableComponent;
61
+ set target(target: SortableComponent);
62
+ get target(): SortableComponent;
61
63
  constructor(ngZone: NgZone);
62
64
  /**
63
65
  * @hidden
@@ -122,4 +124,6 @@ export declare class SortableService implements OnDestroy {
122
124
  private start;
123
125
  private release;
124
126
  private drag;
127
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableService, never>;
128
+ static ɵprov: i0.ɵɵInjectableDeclaration<SortableService>;
125
129
  }
File without changes
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,],t):"object"==typeof exports?exports.KendoAngularSortable=t(require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@angular/common")):e.KendoAngularSortable=t(e.ng.core,e.KendoAngularCommon,e.rxjs.operators,e.rxjs,e.KendoAngularL10N,e.KendoLicensing,e.ng.common)}(window,(function(e,t,n,r,i,a,o){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return d})),n.d(t,"__generator",(function(){return c})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return g})),n.d(t,"__values",(function(){return v})),n.d(t,"__read",(function(){return f})),n.d(t,"__spread",(function(){return h})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return S})),n.d(t,"__makeTemplateObject",(function(){return x})),n.d(t,"__importStar",(function(){return D})),n.d(t,"__importDefault",(function(){return I})),n.d(t,"__classPrivateFieldGet",(function(){return E})),n.d(t,"__classPrivateFieldSet",(function(){return O}));
6
- /*! *****************************************************************************
7
- Copyright (c) Microsoft Corporation.
8
-
9
- Permission to use, copy, modify, and/or distribute this software for any
10
- purpose with or without fee is hereby granted.
11
-
12
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
- PERFORMANCE OF THIS SOFTWARE.
19
- ***************************************************************************** */
20
- var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function p(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function g(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(l,u):d(a[0][2],n)}catch(e){d(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function d(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function _(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function D(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function I(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function O(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSortableItemTemplate]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.ItemTemplateDirective=a;var o=function(){function e(e){this.templateRef=e}return e=r.__decorate([i.Directive({selector:"[kendoSortablePlaceholderTemplate]"}),r.__metadata("design:paramtypes",[i.TemplateRef])],e)}();t.PlaceholderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(6),o=n(11),s=n(10),l=n(7),u=function(e){var t=e.originalEvent.target;return t.hasAttribute("data-sortable-item")||!(o.isFocusable(t)||o.widgetTarget(t))},d=function(){function e(e){var t=this;this.ngZone=e,this.activeDraggable=null,this.originDraggable=null,this.targetSortable=null,this.lastDraggable=null,this.onPressSubject=new s.Subject,this.onDragSubject=new s.Subject,this.onReleaseSubject=new s.Subject,this.source=null,this._target=null,this.sortableCounter=0,this.sortableRegister={},a.isDocumentAvailable()&&(this.subscriptions=this.onPressSubject.pipe(l.filter(u),l.tap((function(e){t.targetSortable=t.getSortableComponentFromTouch(e)})),l.filter((function(e){return Boolean(t.targetSortable)})),l.tap((function(e){t.onReleaseSubject.pipe(l.take(1)).subscribe((function(e){return t.release(e)})),t.pressArgs=e,e.isTouch&&e.originalEvent.preventDefault()})),l.switchMap((function(e){return t.onDragSubject.pipe(l.filter((function(e){return Boolean(t.targetSortable)})),l.tap((function(e){return t.drag(e)})))}))).subscribe())}return Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(e){this._target=e},enumerable:!0,configurable:!0}),e.prototype.onPress=function(e){this.onPressSubject.next(e)},e.prototype.onDrag=function(e){this.onDragSubject.next(e)},e.prototype.onRelease=function(e){this.onReleaseSubject.next(e)},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.registerComponent=function(e){var t=this.sortableCounter.toString();return this.sortableRegister[t]=e,this.sortableCounter++,t},e.prototype.unregisterComponent=function(e){this.sortableRegister[e]=null},e.prototype.setSource=function(e){this.source=e},e.prototype.getSource=function(){return this.source},e.prototype.getSortableComponentFromTouch=function(e){if(!a.isDocumentAvailable())return{component:void 0,index:void 0};for(var t=document.elementFromPoint(e.clientX,e.clientY);t;){var n=t.getAttribute("data-sortable-id"),r=t.getAttribute("data-sortable-index");if(n){var i=this.sortableRegister[n];if(i)return{component:i,index:parseInt(r,10)}}t=t.parentElement}},e.prototype.start=function(){var e=this.pressArgs;if(e){this.pressArgs=null;var t=o.draggableFromEvent(e,this.targetSortable.component);if(this.targetSortable.component.startDrag({target:t,originalEvent:e}))return this.targetSortable=null,!0}},e.prototype.release=function(e){var t=this;this.source&&this.ngZone.run((function(){if(t.targetSortable){var n=o.draggableFromEvent(e,t.targetSortable.component);t.source.endDrag({target:n,originalEvent:e})}t.source.positionHintFromEvent(null),t.source.markForCheck()})),this.targetSortable=null,this.pressArgs=null},e.prototype.drag=function(e){var t=this;this.ngZone.run((function(){if(!t.start()){t.source.positionHintFromEvent(e);var n=t.getSortableComponentFromTouch(e);if((!n||n&&n.component!==t.target)&&(t.target?t.target.leave({target:void 0,originalEvent:e}):t.source!==t.target&&t.source.leave({target:void 0,originalEvent:e})),n&&n.component){var r=o.draggableFromEvent(e,n.component);n.component.drag({target:r,originalEvent:e})}t.source.markForCheck()}}))},e=r.__decorate([i.Injectable(),r.__metadata("design:paramtypes",[i.NgZone])],e)}();t.SortableService=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(10),o=n(6),s=n(11),l=n(7),u=n(18),d=n(19),c=n(20),p=n(4),g=n(8),v=n(9),f=n(2),h=n(12),m=n(13),b=n(14),y=n(21),_=function(){function e(e,t,n,r,o){this.ngZone=e,this.localization=t,this.changeDetector=n,this.tabIndex=null,this.navigable=!1,this.animation=!1,this.disabledIndexes=[],this.zone=void 0,this.acceptZones=void 0,this.itemStyle={},this.emptyItemStyle=void 0,this.activeItemStyle=void 0,this.disabledItemStyle=void 0,this.itemClass="",this.activeItemClass=null,this.emptyItemClass=null,this.disabledItemClass=null,this.emptyText="Empty",this.defaultTemplateRef=null,this.itemTemplateDirectiveRef=null,this.placeholderTemplateDirectiveRef=null,this.itemWrappers=null,this.dragStart=new i.EventEmitter,this.dragEnd=new i.EventEmitter,this.dragOver=new i.EventEmitter,this.dragLeave=new i.EventEmitter,this.dataMove=new i.EventEmitter,this.dataAdd=new i.EventEmitter,this.dataRemove=new i.EventEmitter,this.navigate=new i.EventEmitter,this.activeIndex=-1,this.animating=!1,this.dragIndex=-1,this.dragOverIndex=-1,this.onDragStartSubject=new a.Subject,this.onDragOverSubject=new a.Subject,this.onDragLeaveSubject=new a.Subject,this.onDragEndSubject=new a.Subject,this.hintLocation=null,this._localData=[],this.animationDuration=300,this.afterKeyPress=!1,this.sortableService=null,this._hideActiveItem=!1,d.validatePackage(c.packageMetadata),this.wrapper=r.nativeElement,this.direction=t.rtl?"rtl":"ltr",this.sortableService=o,this.subscribeEvents()}var t;return t=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.cacheData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigatable",{set:function(e){this.navigable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touchAction",{get:function(){return"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.setItemData=function(e,t){this._localData[t].item=e.item,this._localData[t].index=e.index,this._localData[t].hidden=e.hidden},e.prototype.itemTemplate=function(e){var t=this.itemTemplateRef;return e===this.dragOverIndex?t=this.placeholderTemplateRef:e===this.dragIndex&&(t=this.itemTemplateRef),t},e.prototype.ngOnInit=function(){var e=this;this.data||(this.data=[]),this.id=this.sortableService.registerComponent(this),this.dragIndex=-1;this.activeItemStyle&&!this.activeItemStyle.display&&(this.activeItemStyle.display=""),this.itemStyle.display||(this.itemStyle.display=""),this.wrapper&&(this.draggable=new y.default({press:function(t){return e.sortableService.onPress(t)},drag:function(t){return e.sortableService.onDrag(t)},release:function(t){return e.sortableService.onRelease(t)}}),this.ngZone.runOutsideAngular((function(){e.draggable.bindTo(e.wrapper)})))},e.prototype.ngOnChanges=function(e){this.data&&o.isChanged("disabledIndexes",e,!1)&&this.cacheData()},e.prototype.ngOnDestroy=function(){this.unsubscribeEvents(),this.sortableService.unregisterComponent(this.id),this.draggable&&this.draggable.destroy()},e.prototype.ngAfterContentInit=function(){this.itemTemplateRef=this.itemTemplateDirectiveRef.first||this.defaultTemplateRef.first,this.placeholderTemplateRef=this.placeholderTemplateDirectiveRef.first||this.defaultTemplateRef.first},e.prototype.ngAfterViewChecked=function(){if(this.afterKeyPress){if(this.itemWrappers){var e=this.itemWrappers.toArray();e&&e.length>0&&this.activeIndex>-1&&e[this.activeIndex].nativeElement.focus()}this.afterKeyPress=!1}},e.prototype.updateCacheIndices=function(){this._localData.forEach((function(e,t){e.index=t}))},e.prototype.cacheData=function(){var e=this;this._localData=[],this._data.forEach((function(t,n){e._localData.push({item:t,active:!1,disabled:!e.itemEnabled(n),index:n,hidden:!1})}))},e.prototype.startDrag=function(e){var t=new m.DraggableEvent(e);this.onDragStartSubject.next(t);var n=t.isDefaultPrevented();return n||(this.offsetParent=s.relativeContextElement(this.wrapper)),n},e.prototype.drag=function(e){var t=new m.DraggableEvent(e);return this.onDragOverSubject.next(t),t.isDefaultPrevented()},e.prototype.leave=function(e){var t=new m.DraggableEvent(e);return this.onDragLeaveSubject.next(t),t.isDefaultPrevented()},e.prototype.endDrag=function(e){var t=new m.DraggableEvent(e);return this.onDragEndSubject.next(t),t.isDefaultPrevented()},e.prototype.hintVisible=function(){return this.dragIndex>=0&&this.hintLocation&&this===this.sortableService.getSource()},e.prototype.currentItemStyle=function(e){if(-1===e)return this.emptyItemStyle?this.emptyItemStyle:this.itemStyle;if(!this.itemEnabled(e)&&this.disabledItemStyle)return this.disabledItemStyle;if(e===this.dragIndex||-1===this.dragIndex&&e===this.activeIndex){if(this.hideActiveItem)return{display:"none"};if(this.activeItemStyle)return this.activeItemStyle}return this.itemStyle},e.prototype.currentItemClass=function(e){return-1===e?this.emptyItemClass?this.emptyItemClass:this.itemClass:!this.itemEnabled(e)&&this.disabledItemClass?this.disabledItemClass:(e===this.dragIndex||-1===this.dragIndex&&e===this.activeIndex)&&this.activeItemClass?this.activeItemClass:this.itemClass},e.prototype.hintStyle=function(){var e={left:this.hintLocation.x+10+"px",position:"fixed",top:this.hintLocation.y+10+"px"},t={};return Object.assign(t,this.currentItemStyle(this.dragIndex),e),t},e.prototype.itemEnabled=function(e){return-1===this.disabledIndexes.indexOf(e)},e.prototype.acceptDragFrom=function(e){return void 0===this.acceptZones?this.zone===e.zone:void 0!==e.zone&&-1!==this.acceptZones.indexOf(e.zone)},e.prototype.ariaDropEffect=function(e){return this.itemEnabled(e)?"move":"none"},e.prototype.focusHandler=function(e){this.navigable&&(this.activeIndex=e)},e.prototype.blurHandler=function(){this.navigable&&!this.afterKeyPress&&(this.activeIndex=-1)},e.prototype.keydownHandler=function(e){var t=e.keyCode,n=this.navigable&&t>=37&&t<=40,r=-1!==this.activeIndex;if(n&&r){for(var i="rtl"===this.direction?39:37,a=38===t||t===i?-1:1,o=this.data.length-1,s=this.activeIndex+a;!this.itemEnabled(s)&&s<=o;)s+=a;if(s=Math.min(Math.max(s,0),o),this.itemEnabled(s)){if(n){var l=e.ctrlKey||e.metaKey,u=new h.NavigateEvent({index:s,oldIndex:this.activeIndex,ctrlKey:l});this.navigate.emit(u),u.isDefaultPrevented()||(this.activeIndex=s),this.dragIndex=-1,this.dragOverIndex=-1}e.stopPropagation(),e.preventDefault(),this.afterKeyPress=!0}}},e.prototype.removeDataItem=function(e){this.dragIndex=-1,this.dragOverIndex=-1,this._localData.splice(e,1),this.data.splice(e,1),this.updateCacheIndices()},e.prototype.hideItem=function(e,t){void 0===t&&(t=!0),this._localData[e].hidden=t},Object.defineProperty(e.prototype,"hideActiveItem",{get:function(){return this._hideActiveItem},set:function(e){this.activeIndex=-1,this._hideActiveItem=e},enumerable:!0,configurable:!0}),e.prototype.clearActiveItem=function(){this.navigable?this.fixFocus():this.activeIndex=-1,this.dragIndex=-1},e.prototype.getActiveItem=function(){if(this.data&&this.dragIndex>=0&&this.dragIndex<this.data.length)return this.data[this.dragIndex]},e.prototype.addDataItem=function(e,t){var n=this,r=this.sortableService.originDraggable;if(r&&r.parent===this){var i=this.animation;this.hideItem(r.index,!1),this.animation=!1,this.moveItem(r.index,t),this.animation=i}else this.data.splice(t,0,e),this._localData.splice(t,0,{item:e,active:!1,disabled:!this.itemEnabled(t),index:t,hidden:!1}),this.updateCacheIndices();this.dragIndex=t,this.dragOverIndex=t,this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){n.sortableService.target=n,n.sortableService.setSource(n),n.sortableService.activeDraggable=n.draggables.toArray()[t],n.sortableService.lastDraggable=null}))},e.prototype.moveItem=function(e,t){var n=this;if(t!==e){for(var r,i=e,a=t>i?1:-1,o=i,s=[],u=i;i!==t;)i+=a,(this.itemEnabled(i)||i===t)&&(this.animation&&s.push({next:i,prev:u}),r=this._localData[u].index,this._localData[u].index=this._localData[i].index,this._localData[i].index=r,r=this._localData[u],this._localData[u]=this._localData[i],this._localData[i]=r,r=this.data[u],this.data[u]=this.data[i],this.data[i]=r,u=i);this.dragIndex=i,this.dragOverIndex=i,this.activeIndex=i,this.animation&&setTimeout((function(){s.push({next:o,prev:i}),n.animating=!0,n.animate(s)})),this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){n.sortableService.activeDraggable=n.draggables.toArray()[i],n.sortableService.lastDraggable=null}))}},e.prototype.animate=function(e){var t=this,n=this.itemWrappers.toArray(),r=[],i=[],a=this;clearTimeout(this._animating);for(var o=0;o<e.length;o++)r.push(n[e[o].prev].nativeElement.getBoundingClientRect()),i.push(n[e[o].next].nativeElement.getBoundingClientRect());for(o=0;o<e.length;o++){var s=e[o].prev,l=i[o],u=r[o],d=n[s].nativeElement;this.applyAnimationStyle(d,"transition","none"),this.applyAnimationStyle(d,"transform","translate3d("+(l.left-u.left).toString()+"px,"+(l.top-u.top).toString()+"px,0)"),this.reflow(d)}var c=function(t){var r=e[t].prev,i=n[r].nativeElement;p.applyAnimationStyle(i,"transition","all "+p.animationDuration+"ms"),p.applyAnimationStyle(i,"transform","translate3d(0,0,0)"),clearTimeout(i.animated),i.animated=setTimeout((function(){a.applyAnimationStyle(i,"transition",""),a.applyAnimationStyle(i,"transform",""),i.animated=!1}),p.animationDuration)},p=this;for(o=0;o<e.length;o++)c(o);this._animating=setTimeout((function(){t.animating=!1}),this.animationDuration)},e.prototype.positionHintFromEvent=function(e){var t=this.parentOffset();this.hintLocation=e?{x:e.clientX-t.left,y:e.clientY-t.top}:null},e.prototype.parentOffset=function(){var e=this.offsetParent;if(e){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},e.prototype.markForCheck=function(){this.changeDetector.markForCheck()},e.prototype.reflow=function(e){return e.offsetWidth},e.prototype.applyAnimationStyle=function(e,t,n){var r=e&&e.style;r&&(t in r||(t="-webkit-"+t),r[t]=n)},e.prototype.subscribeEvents=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"})),this.dragStartSubscription=this.onDragStartSubject.subscribe((function(t){e.sortableService.originDraggable=t.target,e.sortableService.originIndex=t.target.index,e.sortableService.activeDraggable=t.target,e.sortableService.lastDraggable=t.target,e.sortableService.target=e,e.sortableService.setSource(e);var n=new b.DragStartEvent({index:t.target.index});e.dragStart.emit(n),n.isDefaultPrevented()?t.preventDefault():t.target.disabled||(e.sortableService.target&&(e.sortableService.target.dragOverIndex=-1,e.sortableService.target.dragIndex=-1),e.dragOverIndex=t.target.index,e.dragIndex=t.target.index)})),this.dragOverSubscription=this.onDragOverSubject.pipe(l.filter((function(e){return e.target&&0===e.target.el.nativeElement.style.transition.length})),l.filter((function(){return e.sortableService.originDraggable&&!e.sortableService.originDraggable.disabled})),l.filter((function(){return e.sortableService&&e.acceptDragFrom(e.sortableService.getSource())})),l.filter((function(t){return t.target!==e.sortableService.lastDraggable}))).subscribe((function(t){e.sortableService.lastDraggable=t.target;var n=e.sortableService.originDraggable,r=t.target.index;n.hidden&&n.parent===e&&n.index<t.target.index&&(r=t.target.index-1),e.sortableService.target=e;var i=e.sortableService.activeDraggable?e.sortableService.activeDraggable.index:0,a=new b.DragOverEvent({index:r,oldIndex:i});e.dragOver.emit(a),!a.isDefaultPrevented()&&t.target&&t.target.index>=0&&(e.dragOverIndex=t.target.index,e.placeHolderItemData(t.target))})),this.dragEndSubscription=this.onDragEndSubject.subscribe((function(t){var n=e.sortableService.getSource();if(n){var r=e.sortableService.target,i=t.target?t.target.index:-1,a=e.sortableService.originDraggable?e.sortableService.originIndex:-1;e.hintLocation=null;var o=new b.DragEndEvent({index:i,oldIndex:a});e.dragEnd.emit(o),o.isDefaultPrevented()||(n.dragIndex=-1,n.dragOverIndex=-1,n.activeIndex=-1,r&&r!==n&&(r.dragIndex=-1,r.dragOverIndex=-1),setTimeout((function(){e.sortableService.activeDraggable=null,e.sortableService.lastDraggable=null,e.sortableService.originDraggable=null,e.sortableService.target=null,e.sortableService.setSource(null)})))}})),this.dragLeaveSubscription=this.onDragLeaveSubject.pipe(l.filter((function(t){return!!o.isDocumentAvailable()&&e.wrapper!==document.elementFromPoint(t.originalEvent.pageX,t.originalEvent.pageY)})),l.filter((function(t){return!e.animating})),l.filter((function(t){return e.sortableService.target&&e.sortableService.target.dragOverIndex>-1}))).subscribe((function(){e.dragLeave.emit({index:e.sortableService.originDraggable.index}),e.sortableService.lastDraggable=null,e.dragOverIndex=-1,e.sortableService.target=null}))},e.prototype.unsubscribeEvents=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.dragStartSubscription.unsubscribe(),this.dragOverSubscription.unsubscribe(),this.dragEndSubscription.unsubscribe(),this.dragLeaveSubscription.unsubscribe()},e.prototype.placeHolderItemData=function(e){var t=this;if(!e.disabled){var n=this.sortableService.target,r=this.sortableService.getSource(),i=Object.assign({},this._localData[e.index]),o=r._localData[r.dragIndex];this.setItemData(o,e.index);var s=r.onDragEndSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(i,e.index)})),u=n.onDragLeaveSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(i,e.index)})),d=a.merge(this.onDragOverSubject.pipe(l.filter((function(){return e.index!==t.dragOverIndex}))),this.onDragLeaveSubject).subscribe((function(){t.setItemData(i,e.index),s.unsubscribe(),d.unsubscribe(),u.unsubscribe()}))}},e.prototype.fixFocus=function(){if(this.itemWrappers){var e=this.itemWrappers.toArray();this.dragIndex>-1&&e&&e.length>0&&(e[this.dragIndex].nativeElement.focus(),this.activeIndex=this.dragIndex)}},r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[Boolean])],e.prototype,"navigatable",null),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"animation",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"disabledIndexes",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"zone",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Array)],e.prototype,"acceptZones",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"itemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"emptyItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"activeItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"disabledItemStyle",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"itemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"activeItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"emptyItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Object)],e.prototype,"disabledItemClass",void 0),r.__decorate([i.Input(),r.__metadata("design:type",String)],e.prototype,"emptyText",void 0),r.__decorate([i.ContentChildren(i.TemplateRef,{descendants:!1}),r.__metadata("design:type",i.QueryList)],e.prototype,"defaultTemplateRef",void 0),r.__decorate([i.ContentChildren(f.ItemTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),r.__decorate([i.ContentChildren(f.PlaceholderTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],e.prototype,"placeholderTemplateDirectiveRef",void 0),r.__decorate([i.ViewChildren("itemWrapper"),r.__metadata("design:type",i.QueryList)],e.prototype,"itemWrappers",void 0),r.__decorate([i.ViewChildren(g.DraggableDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"draggables",void 0),r.__decorate([i.ViewChild("noDataRef",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"noDataContainer",void 0),r.__decorate([i.ViewChild("hint",{static:!1}),r.__metadata("design:type",i.ElementRef)],e.prototype,"hint",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragStart",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragEnd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragOver",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dragLeave",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dataMove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dataAdd",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"dataRemove",void 0),r.__decorate([i.Output(),r.__metadata("design:type",i.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"activeIndex",void 0),r.__decorate([i.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),r.__decorate([i.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=t=r.__decorate([i.Component({exportAs:"kendoSortable",providers:[u.LocalizationService,{provide:u.L10N_PREFIX,useValue:"kendo.sortable"},{provide:v.SortableContainer,useExisting:i.forwardRef((function(){return t}))}],selector:"kendo-sortable",template:'\n <div #itemWrapper *ngFor="let item of _localData;let i=index"\n kendoDraggable\n [attr.tabIndex]="itemEnabled(i)?(navigable?tabIndex||0:tabIndex):null"\n [attr.aria-grabbed]="i===dragIndex"\n [attr.aria-dropeffect]="ariaDropEffect(i)"\n [attr.data-sortable-item] = "true"\n [attr.data-sortable-index]="i"\n [attr.data-sortable-id]="id"\n [index]="i"\n [hidden]="item.hidden"\n [disabled]="!itemEnabled(i)"\n [ngClass]="currentItemClass(i)"\n [ngStyle]="currentItemStyle(i)"\n\n (focus)="focusHandler(i)"\n (blur)="blurHandler()"\n (keydown)="keydownHandler($event)"\n >\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplate(i)"\n [ngTemplateOutletContext]="item">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{item.item}}</ng-container>\n </div>\n\n <ng-container #noDataRef *ngIf="!_data.length || _localData.length === 1 && _localData[0].hidden">\n <div\n kendoDraggable\n [index]="0"\n [disabled]="true"\n [attr.data-sortable-id]="id"\n [attr.data-sortable-index]="0"\n [ngStyle]="currentItemStyle(-1)"\n [ngClass]="currentItemClass(-1)"\n >{{emptyText}}</div>\n </ng-container>\n <div *ngIf="hintVisible()" [ngStyle]="hintStyle()" [ngClass]="currentItemClass(dragIndex)">\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplateRef"\n [ngTemplateOutletContext]="{item: _localData[dragIndex].item}">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>\n </div>\n '}),r.__metadata("design:paramtypes",[i.NgZone,u.LocalizationService,i.ChangeDetectorRef,i.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(9),o=function(){function e(e,t,n){this.parent=e,this.el=t,this.renderer=n}return Object.defineProperty(e.prototype,"_focused",{get:function(){return!this.disabled&&this.index===this.parent.activeIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_disabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this.hidden?"none":this._display},set:function(e){this._display=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this.el.nativeElement;this.display=e.style.display,e&&(this.renderer.setStyle(e,"user-select","none"),this.renderer.setStyle(e,"-ms-user-select","none"),this.renderer.setStyle(e,"-moz-user-select","none"),this.renderer.setStyle(e,"-webkit-user-select","none"))},r.__decorate([i.Input(),r.__metadata("design:type",Number)],e.prototype,"index",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),r.__decorate([i.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([i.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"_focused",null),r.__decorate([i.HostBinding("attr.aria-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"_disabled",null),r.__decorate([i.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"display",null),e=r.__decorate([i.Directive({selector:"[kendoDraggable]"}),r.__metadata("design:paramtypes",[a.SortableContainer,i.ElementRef,i.Renderer2])],e)}();t.DraggableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(){function e(){}return e=r.__decorate([i.Injectable()],e)}();t.SortableContainer=a},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i={},a={},o=/^(?:a|input|select|option|textarea|button|object)$/i;t.matchesNodeName=function(e){return i[e]||(i[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),i[e]},t.matchesNodeAttr=function(e){return a[e]||(a[e]=function(t){return!!t.hasAttribute&&t.hasAttribute(e)}),a[e]},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.draggableFromPoint=function(e,n){if(r.isDocumentAvailable()){var i=document.elementFromPoint(e,n);if(i){var a=i.hasAttribute("kendoDraggable"),o=null!==t.closest(i,t.matchesNodeAttr("kendoDraggable")),s=t.closest(i,t.matchesNodeAttr("kendoDraggable"));return{element:i,index:s?parseInt(s.getAttribute("data-sortable-index"),10):-1,isDraggable:a,isDraggableChild:o,parentDraggable:s,rect:i.getBoundingClientRect()}}}},t.draggableFromEvent=function(e,n){var r;if(e.changedTouches){var i=e.changedTouches[0];r=t.draggableFromPoint(i.clientX,i.clientY)}else r=t.draggableFromPoint(e.clientX,e.clientY);return n.draggables.toArray()[r?r.index:-1]},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,i=null!==n&&!r;return o.test(t)&&(i=!e.disabled&&!r),i}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var n=s(t);return Boolean(s(e.className).find((function(e){return n.indexOf(e)>=0})))};var l=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var n=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||l(e)}));return n&&!l(n)};var u=function(){if(!r.isDocumentAvailable())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!u)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.NavigateEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.DraggableEvent=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.DragStartEvent=i;var a=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(i);t.DragOverEvent=a;var o=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(a);t.DragEndEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(5),o=n(4),s=n(16),l=n(7),u=function(){function e(e,t){this.sortable=e,this.sortableService=t,this.sortableService=t}return Object.defineProperty(e.prototype,"data",{set:function(e){this.sortable.data=e},enumerable:!0,configurable:!0}),e.prototype.nextEnabledIndex=function(e,t){for(var n=e;n<=t.data.length;n++)if(t.itemEnabled(n))return n},e.prototype.addItem=function(e,t){var n=e.index,r=this.sortableService.getSource().data[e.oldIndex],i=new s.DataAddEvent({index:n,dataItem:r});return t.dataAdd.emit(i),i.isDefaultPrevented()||(n!==t.itemWrappers.length-1||t.noDataContainer||n++,t.addDataItem(r,n)),!i.isDefaultPrevented()},e.prototype.removeItem=function(e,t){var n=this.sortableService.originDraggable,r=new s.DataRemoveEvent({index:e.oldIndex,dataItem:t.data[e.oldIndex]});return t.dataRemove.emit(r),r.isDefaultPrevented()||(n&&n.parent===t?t.hideItem(e.oldIndex,!0):t.removeDataItem(e.oldIndex)),!r.isDefaultPrevented()},e.prototype.moveItem=function(e,t){if(e.index===e.oldIndex)return!1;var n=new s.DataMoveEvent({dataItem:t.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});return t.dataMove.emit(n),n.isDefaultPrevented()||t.moveItem(e.oldIndex,e.index),!n.isDefaultPrevented()},e.prototype.removeOriginDraggable=function(){var e=this;this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe(),this.removeHiddenSubscription=this.sortableService.onReleaseSubject.pipe(l.take(1),l.filter((function(t){return null!==e.sortableService.originDraggable&&e.sortableService.originDraggable.hidden}))).subscribe((function(t){var n=e.sortableService.originDraggable,r=e.sortableService.getSource();n.parent!==e.sortableService.target&&((!!t.target&&(t.target.isDraggable||t.target.isDraggableChild)||n.parent!==r)&&n.parent!==e.sortableService.target&&n.parent.removeDataItem(n.index),e.sortableService.originDraggable=null)}))},e.prototype.onDragOver=function(e){var t=this.sortableService.getSource(),n=this.sortableService.target,r=n.draggables.toArray();e.isDefaultPrevented()||(e.preventDefault(),n===t?(r[e.index]!==this.lastTarget&&this.moveItem(e,n),this.lastTarget=void 0):(n.itemEnabled(e.index)||(e.index=this.nextEnabledIndex(e.index,n)),this.addItem(e,n)&&this.removeItem(e,t)&&(this.lastTarget=n.draggables.toArray()[e.index],this.removeOriginDraggable(),n.activeIndex=e.index,t.activeIndex=-1)))},e.prototype.onNavigate=function(e){if(e.ctrlKey){var t=new s.DataMoveEvent({dataItem:this.sortable.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});this.sortable.dataMove.emit(t),t.isDefaultPrevented()||this.sortable.moveItem(e.oldIndex,e.index)}else this.sortable.activeIndex=e.index},e.prototype.ngOnInit=function(){this.dragOverSubscription=this.sortable.dragOver.subscribe(this.onDragOver.bind(this)),this.navigateSubscription=this.sortable.navigate.subscribe(this.onNavigate.bind(this))},e.prototype.ngOnDestroy=function(){this.dragOverSubscription.unsubscribe(),this.navigateSubscription.unsubscribe(),this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe()},r.__decorate([i.Input("kendoSortableBinding"),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=r.__decorate([i.Directive({selector:"[kendoSortableBinding]"}),r.__metadata("design:paramtypes",[a.SortableComponent,o.SortableService])],e)}();t.SortableBindingDirective=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(3),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(i.PreventableEvent);t.DataAddEvent=a;var o=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(i.PreventableEvent);t.DataRemoveEvent=o;var s=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(i.PreventableEvent);t.DataMoveEvent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.SortableComponent=r.SortableComponent;var i=n(22);t.SortableModule=i.SortableModule;var a=n(3);t.PreventableEvent=a.PreventableEvent;var o=n(13);t.DraggableEvent=o.DraggableEvent;var s=n(14);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var l=n(12);t.NavigateEvent=l.NavigateEvent;var u=n(16);t.DataMoveEvent=u.DataMoveEvent;var d=n(8);t.DraggableDirective=d.DraggableDirective;var c=n(15);t.SortableBindingDirective=c.SortableBindingDirective;var p=n(2);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var g=n(2);t.ItemTemplateDirective=g.ItemTemplateDirective;var v=n(4);t.SortableService=v.SortableService;var f=n(9);t.SortableContainer=f.SortableContainer},function(e,t){e.exports=i},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821279,version:"",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"}},function(e,t,n){"use strict";n.r(t),n.d(t,"Draggable",(function(){return d}));var r=function(e,t){return function(n){return t(e(n))}},i=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},a=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},o=function(){},s=function(e){return e.preventDefault()},l=/touch/;function u(e){return e.type.match(l)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var d=function(e){var t=this,n=e.press;void 0===n&&(n=o);var l=e.drag;void 0===l&&(l=o);var d=e.release;void 0===d&&(d=o);var c=e.mouseOnly;void 0===c&&(c=!1),this._pressHandler=r(u,n),this._dragHandler=r(u,l),this._releaseHandler=r(u,d),this._ignoreMouse=!1,this._mouseOnly=c,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(i(t.document,"mousemove",t._mousemove),i(t.document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){a(t.document,"mousemove",t._mousemove),a(t.document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(i(t.document,"pointermove",t._pointermove),i(t.document,"pointerup",t._pointerup),i(t.document,"pointercancel",t._pointerup),i(t.document,"contextmenu",s),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(a(t.document,"pointermove",t._pointermove),a(t.document,"pointerup",t._pointerup),a(t.document,"pointercancel",t._pointerup),a(t.document,"contextmenu",s),t._releaseHandler(e))}},c={document:{configurable:!0}};d.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},c.document.get=function(){return this._element?this._element.ownerDocument:document},d.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},d.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?i(e,"pointerdown",this._pointerdown):(i(e,"mousedown",this._mousedown),this._mouseOnly||(i(e,"touchstart",this._touchstart),i(e,"touchmove",this._touchmove),i(e,"touchend",this._touchend)))},d.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return a(e,"pointerdown",this._pointerdown),a(this.document,"pointermove",this._pointermove),a(this.document,"pointerup",this._pointerup),a(this.document,"contextmenu",s),void a(this.document,"pointercancel",this._pointerup);a(e,"mousedown",this._mousedown),this._mouseOnly||(a(e,"touchstart",this._touchstart),a(e,"touchmove",this._touchmove),a(e,"touchend",this._touchend))},d.prototype._usePointers=function(){return!this._mouseOnly&&d.supportPointerEvent()},d.prototype.update=function(e){var t=e.press;void 0===t&&(t=o);var n=e.drag;void 0===n&&(n=o);var i=e.release;void 0===i&&(i=o);var a=e.mouseOnly;void 0===a&&(a=!1),this._pressHandler=r(u,t),this._dragHandler=r(u,n),this._releaseHandler=r(u,i),this._mouseOnly=a},d.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(d.prototype,c),d.default=d,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(23),o=n(5),s=n(4),l=n(8),u=n(2),d=n(2),c=n(15),p=[o.SortableComponent,l.DraggableDirective,u.PlaceholderTemplateDirective,d.ItemTemplateDirective,c.SortableBindingDirective],g=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[p],exports:[p],imports:[a.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=g},function(e,t){e.exports=o}])}));
package/dist/cdn/main.js DELETED
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@angular/common")):"function"==typeof define&&define.amd?define([,,,,,,,,],t):"object"==typeof exports?exports.KendoAngularSortable=t(require("tslib"),require("@angular/core"),require("@progress/kendo-angular-common"),require("rxjs/operators"),require("rxjs"),require("@progress/kendo-angular-l10n"),require("@progress/kendo-licensing"),require("@telerik/kendo-draggable"),require("@angular/common")):e.KendoAngularSortable=t(e.self,e.ng.core,e.KendoAngularCommon,e.rxjs.operators,e.rxjs,e.KendoAngularL10N,e.KendoLicensing,e.KendoDraggable,e.ng.common)}(window,(function(e,t,n,r,a,i,o,s,l){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=function(){function e(e){this.templateRef=e}return e=r.__decorate([a.Directive({selector:"[kendoSortableItemTemplate]"}),r.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ItemTemplateDirective=i;var o=function(){function e(e){this.templateRef=e}return e=r.__decorate([a.Directive({selector:"[kendoSortablePlaceholderTemplate]"}),r.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.PlaceholderTemplateDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=n(6),o=n(11),s=n(10),l=n(7),d=function(e){var t=e.originalEvent.target;return t.hasAttribute("data-sortable-item")||!(o.isFocusable(t)||o.widgetTarget(t))},c=function(){function e(e){var t=this;this.ngZone=e,this.activeDraggable=null,this.originDraggable=null,this.targetSortable=null,this.lastDraggable=null,this.onPressSubject=new s.Subject,this.onDragSubject=new s.Subject,this.onReleaseSubject=new s.Subject,this.source=null,this._target=null,this.sortableCounter=0,this.sortableRegister={},i.isDocumentAvailable()&&(this.subscriptions=this.onPressSubject.pipe(l.filter(d),l.tap((function(e){t.targetSortable=t.getSortableComponentFromTouch(e)})),l.filter((function(e){return Boolean(t.targetSortable)})),l.tap((function(e){t.onReleaseSubject.pipe(l.take(1)).subscribe((function(e){return t.release(e)})),t.pressArgs=e,e.isTouch&&e.originalEvent.preventDefault()})),l.switchMap((function(e){return t.onDragSubject.pipe(l.filter((function(e){return Boolean(t.targetSortable)})),l.tap((function(e){return t.drag(e)})))}))).subscribe())}return Object.defineProperty(e.prototype,"target",{get:function(){return this._target},set:function(e){this._target=e},enumerable:!0,configurable:!0}),e.prototype.onPress=function(e){this.onPressSubject.next(e)},e.prototype.onDrag=function(e){this.onDragSubject.next(e)},e.prototype.onRelease=function(e){this.onReleaseSubject.next(e)},e.prototype.ngOnDestroy=function(){this.subscriptions&&this.subscriptions.unsubscribe()},e.prototype.registerComponent=function(e){var t=this.sortableCounter.toString();return this.sortableRegister[t]=e,this.sortableCounter++,t},e.prototype.unregisterComponent=function(e){this.sortableRegister[e]=null},e.prototype.setSource=function(e){this.source=e},e.prototype.getSource=function(){return this.source},e.prototype.getSortableComponentFromTouch=function(e){if(!i.isDocumentAvailable())return{component:void 0,index:void 0};for(var t=document.elementFromPoint(e.clientX,e.clientY);t;){var n=t.getAttribute("data-sortable-id"),r=t.getAttribute("data-sortable-index");if(n){var a=this.sortableRegister[n];if(a)return{component:a,index:parseInt(r,10)}}t=t.parentElement}},e.prototype.start=function(){var e=this.pressArgs;if(e){this.pressArgs=null;var t=o.draggableFromEvent(e,this.targetSortable.component);if(this.targetSortable.component.startDrag({target:t,originalEvent:e}))return this.targetSortable=null,!0}},e.prototype.release=function(e){var t=this;this.source&&this.ngZone.run((function(){if(t.targetSortable){var n=o.draggableFromEvent(e,t.targetSortable.component);t.source.endDrag({target:n,originalEvent:e})}t.source.positionHintFromEvent(null),t.source.markForCheck()})),this.targetSortable=null,this.pressArgs=null},e.prototype.drag=function(e){var t=this;this.ngZone.run((function(){if(!t.start()){t.source.positionHintFromEvent(e);var n=t.getSortableComponentFromTouch(e);if((!n||n&&n.component!==t.target)&&(t.target?t.target.leave({target:void 0,originalEvent:e}):t.source!==t.target&&t.source.leave({target:void 0,originalEvent:e})),n&&n.component){var r=o.draggableFromEvent(e,n.component);n.component.drag({target:r,originalEvent:e})}t.source.markForCheck()}}))},e=r.__decorate([a.Injectable(),r.__metadata("design:paramtypes",[a.NgZone])],e)}();t.SortableService=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=n(10),o=n(6),s=n(11),l=n(7),d=n(18),c=n(19),u=n(20),p=n(4),g=n(8),v=n(9),b=n(2),m=n(12),h=n(13),f=n(14),y=n(21),_=function(){function e(e,t,n,r,o){this.ngZone=e,this.localization=t,this.changeDetector=n,this.tabIndex=null,this.navigable=!1,this.animation=!1,this.disabledIndexes=[],this.zone=void 0,this.acceptZones=void 0,this.itemStyle={},this.emptyItemStyle=void 0,this.activeItemStyle=void 0,this.disabledItemStyle=void 0,this.itemClass="",this.activeItemClass=null,this.emptyItemClass=null,this.disabledItemClass=null,this.emptyText="Empty",this.defaultTemplateRef=null,this.itemTemplateDirectiveRef=null,this.placeholderTemplateDirectiveRef=null,this.itemWrappers=null,this.dragStart=new a.EventEmitter,this.dragEnd=new a.EventEmitter,this.dragOver=new a.EventEmitter,this.dragLeave=new a.EventEmitter,this.dataMove=new a.EventEmitter,this.dataAdd=new a.EventEmitter,this.dataRemove=new a.EventEmitter,this.navigate=new a.EventEmitter,this.activeIndex=-1,this.animating=!1,this.dragIndex=-1,this.dragOverIndex=-1,this.onDragStartSubject=new i.Subject,this.onDragOverSubject=new i.Subject,this.onDragLeaveSubject=new i.Subject,this.onDragEndSubject=new i.Subject,this.hintLocation=null,this._localData=[],this.animationDuration=300,this.afterKeyPress=!1,this.sortableService=null,this._hideActiveItem=!1,c.validatePackage(u.packageMetadata),this.wrapper=r.nativeElement,this.direction=t.rtl?"rtl":"ltr",this.sortableService=o,this.subscribeEvents()}var t;return t=e,Object.defineProperty(e.prototype,"data",{get:function(){return this._data},set:function(e){this._data=e,this.cacheData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"navigatable",{set:function(e){this.navigable=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touchAction",{get:function(){return"none"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.direction},enumerable:!0,configurable:!0}),e.prototype.setItemData=function(e,t){this._localData[t].item=e.item,this._localData[t].index=e.index,this._localData[t].hidden=e.hidden},e.prototype.itemTemplate=function(e){var t=this.itemTemplateRef;return e===this.dragOverIndex?t=this.placeholderTemplateRef:e===this.dragIndex&&(t=this.itemTemplateRef),t},e.prototype.ngOnInit=function(){var e=this;this.data||(this.data=[]),this.id=this.sortableService.registerComponent(this),this.dragIndex=-1;this.activeItemStyle&&!this.activeItemStyle.display&&(this.activeItemStyle.display=""),this.itemStyle.display||(this.itemStyle.display=""),this.wrapper&&(this.draggable=new y.default({press:function(t){return e.sortableService.onPress(t)},drag:function(t){return e.sortableService.onDrag(t)},release:function(t){return e.sortableService.onRelease(t)}}),this.ngZone.runOutsideAngular((function(){e.draggable.bindTo(e.wrapper)})))},e.prototype.ngOnChanges=function(e){this.data&&o.isChanged("disabledIndexes",e,!1)&&this.cacheData()},e.prototype.ngOnDestroy=function(){this.unsubscribeEvents(),this.sortableService.unregisterComponent(this.id),this.draggable&&this.draggable.destroy()},e.prototype.ngAfterContentInit=function(){this.itemTemplateRef=this.itemTemplateDirectiveRef.first||this.defaultTemplateRef.first,this.placeholderTemplateRef=this.placeholderTemplateDirectiveRef.first||this.defaultTemplateRef.first},e.prototype.ngAfterViewChecked=function(){if(this.afterKeyPress){if(this.itemWrappers){var e=this.itemWrappers.toArray();e&&e.length>0&&this.activeIndex>-1&&e[this.activeIndex].nativeElement.focus()}this.afterKeyPress=!1}},e.prototype.updateCacheIndices=function(){this._localData.forEach((function(e,t){e.index=t}))},e.prototype.cacheData=function(){var e=this;this._localData=[],this._data.forEach((function(t,n){e._localData.push({item:t,active:!1,disabled:!e.itemEnabled(n),index:n,hidden:!1})}))},e.prototype.startDrag=function(e){var t=new h.DraggableEvent(e);this.onDragStartSubject.next(t);var n=t.isDefaultPrevented();return n||(this.offsetParent=s.relativeContextElement(this.wrapper)),n},e.prototype.drag=function(e){var t=new h.DraggableEvent(e);return this.onDragOverSubject.next(t),t.isDefaultPrevented()},e.prototype.leave=function(e){var t=new h.DraggableEvent(e);return this.onDragLeaveSubject.next(t),t.isDefaultPrevented()},e.prototype.endDrag=function(e){var t=new h.DraggableEvent(e);return this.onDragEndSubject.next(t),t.isDefaultPrevented()},e.prototype.hintVisible=function(){return this.dragIndex>=0&&this.hintLocation&&this===this.sortableService.getSource()},e.prototype.currentItemStyle=function(e){if(-1===e)return this.emptyItemStyle?this.emptyItemStyle:this.itemStyle;if(!this.itemEnabled(e)&&this.disabledItemStyle)return this.disabledItemStyle;if(e===this.dragIndex||-1===this.dragIndex&&e===this.activeIndex){if(this.hideActiveItem)return{display:"none"};if(this.activeItemStyle)return this.activeItemStyle}return this.itemStyle},e.prototype.currentItemClass=function(e){return-1===e?this.emptyItemClass?this.emptyItemClass:this.itemClass:!this.itemEnabled(e)&&this.disabledItemClass?this.disabledItemClass:(e===this.dragIndex||-1===this.dragIndex&&e===this.activeIndex)&&this.activeItemClass?this.activeItemClass:this.itemClass},e.prototype.hintStyle=function(){var e={left:this.hintLocation.x+10+"px",position:"fixed",top:this.hintLocation.y+10+"px"},t={};return Object.assign(t,this.currentItemStyle(this.dragIndex),e),t},e.prototype.itemEnabled=function(e){return-1===this.disabledIndexes.indexOf(e)},e.prototype.acceptDragFrom=function(e){return void 0===this.acceptZones?this.zone===e.zone:void 0!==e.zone&&-1!==this.acceptZones.indexOf(e.zone)},e.prototype.ariaDropEffect=function(e){return this.itemEnabled(e)?"move":"none"},e.prototype.focusHandler=function(e){this.navigable&&(this.activeIndex=e)},e.prototype.blurHandler=function(){this.navigable&&!this.afterKeyPress&&(this.activeIndex=-1)},e.prototype.keydownHandler=function(e){var t=e.keyCode,n=this.navigable&&t>=37&&t<=40,r=-1!==this.activeIndex;if(n&&r){for(var a="rtl"===this.direction?39:37,i=38===t||t===a?-1:1,o=this.data.length-1,s=this.activeIndex+i;!this.itemEnabled(s)&&s<=o;)s+=i;if(s=Math.min(Math.max(s,0),o),this.itemEnabled(s)){if(n){var l=e.ctrlKey||e.metaKey,d=new m.NavigateEvent({index:s,oldIndex:this.activeIndex,ctrlKey:l});this.navigate.emit(d),d.isDefaultPrevented()||(this.activeIndex=s),this.dragIndex=-1,this.dragOverIndex=-1}e.stopPropagation(),e.preventDefault(),this.afterKeyPress=!0}}},e.prototype.removeDataItem=function(e){this.dragIndex=-1,this.dragOverIndex=-1,this._localData.splice(e,1),this.data.splice(e,1),this.updateCacheIndices()},e.prototype.hideItem=function(e,t){void 0===t&&(t=!0),this._localData[e].hidden=t},Object.defineProperty(e.prototype,"hideActiveItem",{get:function(){return this._hideActiveItem},set:function(e){this.activeIndex=-1,this._hideActiveItem=e},enumerable:!0,configurable:!0}),e.prototype.clearActiveItem=function(){this.navigable?this.fixFocus():this.activeIndex=-1,this.dragIndex=-1},e.prototype.getActiveItem=function(){if(this.data&&this.dragIndex>=0&&this.dragIndex<this.data.length)return this.data[this.dragIndex]},e.prototype.addDataItem=function(e,t){var n=this,r=this.sortableService.originDraggable;if(r&&r.parent===this){var a=this.animation;this.hideItem(r.index,!1),this.animation=!1,this.moveItem(r.index,t),this.animation=a}else this.data.splice(t,0,e),this._localData.splice(t,0,{item:e,active:!1,disabled:!this.itemEnabled(t),index:t,hidden:!1}),this.updateCacheIndices();this.dragIndex=t,this.dragOverIndex=t,this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){n.sortableService.target=n,n.sortableService.setSource(n),n.sortableService.activeDraggable=n.draggables.toArray()[t],n.sortableService.lastDraggable=null}))},e.prototype.moveItem=function(e,t){var n=this;if(t!==e){for(var r,a=e,i=t>a?1:-1,o=a,s=[],d=a;a!==t;)a+=i,(this.itemEnabled(a)||a===t)&&(this.animation&&s.push({next:a,prev:d}),r=this._localData[d].index,this._localData[d].index=this._localData[a].index,this._localData[a].index=r,r=this._localData[d],this._localData[d]=this._localData[a],this._localData[a]=r,r=this.data[d],this.data[d]=this.data[a],this.data[a]=r,d=a);this.dragIndex=a,this.dragOverIndex=a,this.activeIndex=a,this.animation&&setTimeout((function(){s.push({next:o,prev:a}),n.animating=!0,n.animate(s)})),this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){n.sortableService.activeDraggable=n.draggables.toArray()[a],n.sortableService.lastDraggable=null}))}},e.prototype.animate=function(e){var t=this,n=this.itemWrappers.toArray(),r=[],a=[],i=this;clearTimeout(this._animating);for(var o=0;o<e.length;o++)r.push(n[e[o].prev].nativeElement.getBoundingClientRect()),a.push(n[e[o].next].nativeElement.getBoundingClientRect());for(o=0;o<e.length;o++){var s=e[o].prev,l=a[o],d=r[o],c=n[s].nativeElement;this.applyAnimationStyle(c,"transition","none"),this.applyAnimationStyle(c,"transform","translate3d("+(l.left-d.left).toString()+"px,"+(l.top-d.top).toString()+"px,0)"),this.reflow(c)}var u=function(t){var r=e[t].prev,a=n[r].nativeElement;p.applyAnimationStyle(a,"transition","all "+p.animationDuration+"ms"),p.applyAnimationStyle(a,"transform","translate3d(0,0,0)"),clearTimeout(a.animated),a.animated=setTimeout((function(){i.applyAnimationStyle(a,"transition",""),i.applyAnimationStyle(a,"transform",""),a.animated=!1}),p.animationDuration)},p=this;for(o=0;o<e.length;o++)u(o);this._animating=setTimeout((function(){t.animating=!1}),this.animationDuration)},e.prototype.positionHintFromEvent=function(e){var t=this.parentOffset();this.hintLocation=e?{x:e.clientX-t.left,y:e.clientY-t.top}:null},e.prototype.parentOffset=function(){var e=this.offsetParent;if(e){var t=e.getBoundingClientRect();return{left:t.left-e.scrollLeft,top:t.top-e.scrollTop}}return{left:0,top:0}},e.prototype.markForCheck=function(){this.changeDetector.markForCheck()},e.prototype.reflow=function(e){return e.offsetWidth},e.prototype.applyAnimationStyle=function(e,t,n){var r=e&&e.style;r&&(t in r||(t="-webkit-"+t),r[t]=n)},e.prototype.subscribeEvents=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var n=t.rtl;return e.direction=n?"rtl":"ltr"})),this.dragStartSubscription=this.onDragStartSubject.subscribe((function(t){e.sortableService.originDraggable=t.target,e.sortableService.originIndex=t.target.index,e.sortableService.activeDraggable=t.target,e.sortableService.lastDraggable=t.target,e.sortableService.target=e,e.sortableService.setSource(e);var n=new f.DragStartEvent({index:t.target.index});e.dragStart.emit(n),n.isDefaultPrevented()?t.preventDefault():t.target.disabled||(e.sortableService.target&&(e.sortableService.target.dragOverIndex=-1,e.sortableService.target.dragIndex=-1),e.dragOverIndex=t.target.index,e.dragIndex=t.target.index)})),this.dragOverSubscription=this.onDragOverSubject.pipe(l.filter((function(e){return e.target&&0===e.target.el.nativeElement.style.transition.length})),l.filter((function(){return e.sortableService.originDraggable&&!e.sortableService.originDraggable.disabled})),l.filter((function(){return e.sortableService&&e.acceptDragFrom(e.sortableService.getSource())})),l.filter((function(t){return t.target!==e.sortableService.lastDraggable}))).subscribe((function(t){e.sortableService.lastDraggable=t.target;var n=e.sortableService.originDraggable,r=t.target.index;n.hidden&&n.parent===e&&n.index<t.target.index&&(r=t.target.index-1),e.sortableService.target=e;var a=e.sortableService.activeDraggable?e.sortableService.activeDraggable.index:0,i=new f.DragOverEvent({index:r,oldIndex:a});e.dragOver.emit(i),!i.isDefaultPrevented()&&t.target&&t.target.index>=0&&(e.dragOverIndex=t.target.index,e.placeHolderItemData(t.target))})),this.dragEndSubscription=this.onDragEndSubject.subscribe((function(t){var n=e.sortableService.getSource();if(n){var r=e.sortableService.target,a=t.target?t.target.index:-1,i=e.sortableService.originDraggable?e.sortableService.originIndex:-1;e.hintLocation=null;var o=new f.DragEndEvent({index:a,oldIndex:i});e.dragEnd.emit(o),o.isDefaultPrevented()||(n.dragIndex=-1,n.dragOverIndex=-1,n.activeIndex=-1,r&&r!==n&&(r.dragIndex=-1,r.dragOverIndex=-1),setTimeout((function(){e.sortableService.activeDraggable=null,e.sortableService.lastDraggable=null,e.sortableService.originDraggable=null,e.sortableService.target=null,e.sortableService.setSource(null)})))}})),this.dragLeaveSubscription=this.onDragLeaveSubject.pipe(l.filter((function(t){return!!o.isDocumentAvailable()&&e.wrapper!==document.elementFromPoint(t.originalEvent.pageX,t.originalEvent.pageY)})),l.filter((function(t){return!e.animating})),l.filter((function(t){return e.sortableService.target&&e.sortableService.target.dragOverIndex>-1}))).subscribe((function(){e.dragLeave.emit({index:e.sortableService.originDraggable.index}),e.sortableService.lastDraggable=null,e.dragOverIndex=-1,e.sortableService.target=null}))},e.prototype.unsubscribeEvents=function(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.dragStartSubscription.unsubscribe(),this.dragOverSubscription.unsubscribe(),this.dragEndSubscription.unsubscribe(),this.dragLeaveSubscription.unsubscribe()},e.prototype.placeHolderItemData=function(e){var t=this;if(!e.disabled){var n=this.sortableService.target,r=this.sortableService.getSource(),a=Object.assign({},this._localData[e.index]),o=r._localData[r.dragIndex];this.setItemData(o,e.index);var s=r.onDragEndSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(a,e.index)})),d=n.onDragLeaveSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(a,e.index)})),c=i.merge(this.onDragOverSubject.pipe(l.filter((function(){return e.index!==t.dragOverIndex}))),this.onDragLeaveSubject).subscribe((function(){t.setItemData(a,e.index),s.unsubscribe(),c.unsubscribe(),d.unsubscribe()}))}},e.prototype.fixFocus=function(){if(this.itemWrappers){var e=this.itemWrappers.toArray();this.dragIndex>-1&&e&&e.length>0&&(e[this.dragIndex].nativeElement.focus(),this.activeIndex=this.dragIndex)}},r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[Boolean])],e.prototype,"navigatable",null),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"animation",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array)],e.prototype,"disabledIndexes",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"zone",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Array)],e.prototype,"acceptZones",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"itemStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"emptyItemStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"activeItemStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"disabledItemStyle",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"itemClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"activeItemClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"emptyItemClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Object)],e.prototype,"disabledItemClass",void 0),r.__decorate([a.Input(),r.__metadata("design:type",String)],e.prototype,"emptyText",void 0),r.__decorate([a.ContentChildren(a.TemplateRef,{descendants:!1}),r.__metadata("design:type",a.QueryList)],e.prototype,"defaultTemplateRef",void 0),r.__decorate([a.ContentChildren(b.ItemTemplateDirective,{read:a.TemplateRef,descendants:!1}),r.__metadata("design:type",a.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),r.__decorate([a.ContentChildren(b.PlaceholderTemplateDirective,{read:a.TemplateRef,descendants:!1}),r.__metadata("design:type",a.QueryList)],e.prototype,"placeholderTemplateDirectiveRef",void 0),r.__decorate([a.ViewChildren("itemWrapper"),r.__metadata("design:type",a.QueryList)],e.prototype,"itemWrappers",void 0),r.__decorate([a.ViewChildren(g.DraggableDirective),r.__metadata("design:type",a.QueryList)],e.prototype,"draggables",void 0),r.__decorate([a.ViewChild("noDataRef",{static:!1}),r.__metadata("design:type",a.ElementRef)],e.prototype,"noDataContainer",void 0),r.__decorate([a.ViewChild("hint",{static:!1}),r.__metadata("design:type",a.ElementRef)],e.prototype,"hint",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dragStart",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dragEnd",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dragOver",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dragLeave",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dataMove",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dataAdd",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"dataRemove",void 0),r.__decorate([a.Output(),r.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"activeIndex",void 0),r.__decorate([a.HostBinding("style.touch-action"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),r.__decorate([a.HostBinding("attr.dir"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=t=r.__decorate([a.Component({exportAs:"kendoSortable",providers:[d.LocalizationService,{provide:d.L10N_PREFIX,useValue:"kendo.sortable"},{provide:v.SortableContainer,useExisting:a.forwardRef((function(){return t}))}],selector:"kendo-sortable",template:'\n <div #itemWrapper *ngFor="let item of _localData;let i=index"\n kendoDraggable\n [attr.tabIndex]="itemEnabled(i)?(navigable?tabIndex||0:tabIndex):null"\n [attr.aria-grabbed]="i===dragIndex"\n [attr.aria-dropeffect]="ariaDropEffect(i)"\n [attr.data-sortable-item] = "true"\n [attr.data-sortable-index]="i"\n [attr.data-sortable-id]="id"\n [index]="i"\n [hidden]="item.hidden"\n [disabled]="!itemEnabled(i)"\n [ngClass]="currentItemClass(i)"\n [ngStyle]="currentItemStyle(i)"\n\n (focus)="focusHandler(i)"\n (blur)="blurHandler()"\n (keydown)="keydownHandler($event)"\n >\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplate(i)"\n [ngTemplateOutletContext]="item">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{item.item}}</ng-container>\n </div>\n\n <ng-container #noDataRef *ngIf="!_data.length || _localData.length === 1 && _localData[0].hidden">\n <div\n kendoDraggable\n [index]="0"\n [disabled]="true"\n [attr.data-sortable-id]="id"\n [attr.data-sortable-index]="0"\n [ngStyle]="currentItemStyle(-1)"\n [ngClass]="currentItemClass(-1)"\n >{{emptyText}}</div>\n </ng-container>\n <div *ngIf="hintVisible()" [ngStyle]="hintStyle()" [ngClass]="currentItemClass(dragIndex)">\n <ng-container *ngIf="itemTemplateRef"\n [ngTemplateOutlet]="itemTemplateRef"\n [ngTemplateOutletContext]="{item: _localData[dragIndex].item}">\n </ng-container>\n <ng-container *ngIf="!itemTemplateRef">{{_localData[dragIndex].item}}</ng-container>\n </div>\n '}),r.__metadata("design:paramtypes",[a.NgZone,d.LocalizationService,a.ChangeDetectorRef,a.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,t){e.exports=n},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=n(9),o=function(){function e(e,t,n){this.parent=e,this.el=t,this.renderer=n}return Object.defineProperty(e.prototype,"_focused",{get:function(){return!this.disabled&&this.index===this.parent.activeIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_disabled",{get:function(){return this.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this.hidden?"none":this._display},set:function(e){this._display=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=this.el.nativeElement;this.display=e.style.display,e&&(this.renderer.setStyle(e,"user-select","none"),this.renderer.setStyle(e,"-ms-user-select","none"),this.renderer.setStyle(e,"-moz-user-select","none"),this.renderer.setStyle(e,"-webkit-user-select","none"))},r.__decorate([a.Input(),r.__metadata("design:type",Number)],e.prototype,"index",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),r.__decorate([a.Input(),r.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),r.__decorate([a.HostBinding("class.k-state-focused"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"_focused",null),r.__decorate([a.HostBinding("attr.aria-disabled"),r.__metadata("design:type",Boolean),r.__metadata("design:paramtypes",[])],e.prototype,"_disabled",null),r.__decorate([a.HostBinding("style.display"),r.__metadata("design:type",String),r.__metadata("design:paramtypes",[String])],e.prototype,"display",null),e=r.__decorate([a.Directive({selector:"[kendoDraggable]"}),r.__metadata("design:paramtypes",[i.SortableContainer,a.ElementRef,a.Renderer2])],e)}();t.DraggableDirective=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=function(){function e(){}return e=r.__decorate([a.Injectable()],e)}();t.SortableContainer=i},function(e,t){e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),a={},i={},o=/^(?:a|input|select|option|textarea|button|object)$/i;t.matchesNodeName=function(e){return a[e]||(a[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),a[e]},t.matchesNodeAttr=function(e){return i[e]||(i[e]=function(t){return!!t.hasAttribute&&t.hasAttribute(e)}),i[e]},t.closest=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},t.draggableFromPoint=function(e,n){if(r.isDocumentAvailable()){var a=document.elementFromPoint(e,n);if(a){var i=a.hasAttribute("kendoDraggable"),o=null!==t.closest(a,t.matchesNodeAttr("kendoDraggable")),s=t.closest(a,t.matchesNodeAttr("kendoDraggable"));return{element:a,index:s?parseInt(s.getAttribute("data-sortable-index"),10):-1,isDraggable:i,isDraggableChild:o,parentDraggable:s,rect:a.getBoundingClientRect()}}}},t.draggableFromEvent=function(e,n){var r;if(e.changedTouches){var a=e.changedTouches[0];r=t.draggableFromPoint(a.clientX,a.clientY)}else r=t.draggableFromPoint(e.clientX,e.clientY);return n.draggables.toArray()[r?r.index:-1]},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),n=e.getAttribute("tabIndex"),r="-1"===n,a=null!==n&&!r;return o.test(t)&&(a=!e.disabled&&!r),a}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var n=s(t);return Boolean(s(e.className).find((function(e){return n.indexOf(e)>=0})))};var l=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var n=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||l(e)}));return n&&!l(n)};var d=function(){if(!r.isDocumentAvailable())return!1;var e=document.createElement("div");e.style.transform="matrix(10, 0, 0, 10, 0, 0)",e.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(e);var t=10!==e.children[0].getBoundingClientRect().top;return document.body.removeChild(e),t}();t.relativeContextElement=function(e){if(!e||!d)return null;for(var t=e.parentElement;t;){if("none"!==window.getComputedStyle(t).transform)return t;t=t.parentElement}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.NavigateEvent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.DraggableEvent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(n(3).PreventableEvent);t.DragStartEvent=a;var i=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(a);t.DragOverEvent=i;var o=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(i);t.DragEndEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=n(5),o=n(4),s=n(16),l=n(7),d=function(){function e(e,t){this.sortable=e,this.sortableService=t,this.sortableService=t}return Object.defineProperty(e.prototype,"data",{set:function(e){this.sortable.data=e},enumerable:!0,configurable:!0}),e.prototype.nextEnabledIndex=function(e,t){for(var n=e;n<=t.data.length;n++)if(t.itemEnabled(n))return n},e.prototype.addItem=function(e,t){var n=e.index,r=this.sortableService.getSource().data[e.oldIndex],a=new s.DataAddEvent({index:n,dataItem:r});return t.dataAdd.emit(a),a.isDefaultPrevented()||(n!==t.itemWrappers.length-1||t.noDataContainer||n++,t.addDataItem(r,n)),!a.isDefaultPrevented()},e.prototype.removeItem=function(e,t){var n=this.sortableService.originDraggable,r=new s.DataRemoveEvent({index:e.oldIndex,dataItem:t.data[e.oldIndex]});return t.dataRemove.emit(r),r.isDefaultPrevented()||(n&&n.parent===t?t.hideItem(e.oldIndex,!0):t.removeDataItem(e.oldIndex)),!r.isDefaultPrevented()},e.prototype.moveItem=function(e,t){if(e.index===e.oldIndex)return!1;var n=new s.DataMoveEvent({dataItem:t.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});return t.dataMove.emit(n),n.isDefaultPrevented()||t.moveItem(e.oldIndex,e.index),!n.isDefaultPrevented()},e.prototype.removeOriginDraggable=function(){var e=this;this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe(),this.removeHiddenSubscription=this.sortableService.onReleaseSubject.pipe(l.take(1),l.filter((function(t){return null!==e.sortableService.originDraggable&&e.sortableService.originDraggable.hidden}))).subscribe((function(t){var n=e.sortableService.originDraggable,r=e.sortableService.getSource();n.parent!==e.sortableService.target&&((!!t.target&&(t.target.isDraggable||t.target.isDraggableChild)||n.parent!==r)&&n.parent!==e.sortableService.target&&n.parent.removeDataItem(n.index),e.sortableService.originDraggable=null)}))},e.prototype.onDragOver=function(e){var t=this.sortableService.getSource(),n=this.sortableService.target,r=n.draggables.toArray();e.isDefaultPrevented()||(e.preventDefault(),n===t?(r[e.index]!==this.lastTarget&&this.moveItem(e,n),this.lastTarget=void 0):(n.itemEnabled(e.index)||(e.index=this.nextEnabledIndex(e.index,n)),this.addItem(e,n)&&this.removeItem(e,t)&&(this.lastTarget=n.draggables.toArray()[e.index],this.removeOriginDraggable(),n.activeIndex=e.index,t.activeIndex=-1)))},e.prototype.onNavigate=function(e){if(e.ctrlKey){var t=new s.DataMoveEvent({dataItem:this.sortable.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});this.sortable.dataMove.emit(t),t.isDefaultPrevented()||this.sortable.moveItem(e.oldIndex,e.index)}else this.sortable.activeIndex=e.index},e.prototype.ngOnInit=function(){this.dragOverSubscription=this.sortable.dragOver.subscribe(this.onDragOver.bind(this)),this.navigateSubscription=this.sortable.navigate.subscribe(this.onNavigate.bind(this))},e.prototype.ngOnDestroy=function(){this.dragOverSubscription.unsubscribe(),this.navigateSubscription.unsubscribe(),this.removeHiddenSubscription&&this.removeHiddenSubscription.unsubscribe()},r.__decorate([a.Input("kendoSortableBinding"),r.__metadata("design:type",Array),r.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=r.__decorate([a.Directive({selector:"[kendoSortableBinding]"}),r.__metadata("design:paramtypes",[i.SortableComponent,o.SortableService])],e)}();t.SortableBindingDirective=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(3),i=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(a.PreventableEvent);t.DataAddEvent=i;var o=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(a.PreventableEvent);t.DataRemoveEvent=o;var s=function(e){function t(t){var n=e.call(this)||this;return Object.assign(n,t),n}return r.__extends(t,e),t}(a.PreventableEvent);t.DataMoveEvent=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.SortableComponent=r.SortableComponent;var a=n(22);t.SortableModule=a.SortableModule;var i=n(3);t.PreventableEvent=i.PreventableEvent;var o=n(13);t.DraggableEvent=o.DraggableEvent;var s=n(14);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var l=n(12);t.NavigateEvent=l.NavigateEvent;var d=n(16);t.DataMoveEvent=d.DataMoveEvent;var c=n(8);t.DraggableDirective=c.DraggableDirective;var u=n(15);t.SortableBindingDirective=u.SortableBindingDirective;var p=n(2);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var g=n(2);t.ItemTemplateDirective=g.ItemTemplateDirective;var v=n(4);t.SortableService=v.SortableService;var b=n(9);t.SortableContainer=b.SortableContainer},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646821279,version:"",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"}},function(e,t){e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=n(1),i=n(23),o=n(5),s=n(4),l=n(8),d=n(2),c=n(2),u=n(15),p=[o.SortableComponent,l.DraggableDirective,d.PlaceholderTemplateDirective,c.ItemTemplateDirective,u.SortableBindingDirective],g=function(){function e(){}return e=r.__decorate([a.NgModule({declarations:[p],exports:[p],imports:[i.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=g},function(e,t){e.exports=l}])}));