@progress/kendo-angular-sortable 4.0.2 → 4.0.4-dev.202110281510

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 (79) hide show
  1. package/dist/cdn/js/kendo-angular-sortable.js +2 -2
  2. package/dist/cdn/main.js +2 -2
  3. package/dist/es/binding.directive.js +2 -2
  4. package/dist/es/data-event-args.interface.js +1 -1
  5. package/dist/es/data-events.js +1 -1
  6. package/dist/es/draggable-event.js +1 -1
  7. package/dist/es/draggable.directive.js +1 -1
  8. package/dist/es/index.js +1 -1
  9. package/dist/es/item-template.directive.js +1 -1
  10. package/dist/es/main.js +1 -1
  11. package/dist/es/navigate-event.js +1 -1
  12. package/dist/es/package-metadata.js +2 -2
  13. package/dist/es/preventable-event.js +1 -1
  14. package/dist/es/sortable-container.js +1 -1
  15. package/dist/es/sortable-event-args.interface.js +1 -1
  16. package/dist/es/sortable-events.js +1 -1
  17. package/dist/es/sortable.component.js +6 -5
  18. package/dist/es/sortable.module.js +1 -1
  19. package/dist/es/sortable.service.js +1 -1
  20. package/dist/es/util.js +1 -1
  21. package/dist/es2015/binding.directive.d.ts +1 -1
  22. package/dist/es2015/binding.directive.js +2 -2
  23. package/dist/es2015/data-event-args.interface.d.ts +1 -1
  24. package/dist/es2015/data-event-args.interface.js +1 -1
  25. package/dist/es2015/data-events.d.ts +1 -1
  26. package/dist/es2015/data-events.js +1 -1
  27. package/dist/es2015/draggable-event.d.ts +1 -1
  28. package/dist/es2015/draggable-event.js +1 -1
  29. package/dist/es2015/draggable.directive.d.ts +1 -1
  30. package/dist/es2015/draggable.directive.js +1 -1
  31. package/dist/es2015/index.d.ts +1 -1
  32. package/dist/es2015/index.js +1 -1
  33. package/dist/es2015/index.metadata.json +1 -1
  34. package/dist/es2015/item-template.directive.d.ts +1 -1
  35. package/dist/es2015/item-template.directive.js +1 -1
  36. package/dist/es2015/main.d.ts +1 -1
  37. package/dist/es2015/main.js +1 -1
  38. package/dist/es2015/navigate-event.d.ts +1 -1
  39. package/dist/es2015/navigate-event.js +1 -1
  40. package/dist/es2015/package-metadata.d.ts +1 -1
  41. package/dist/es2015/package-metadata.js +2 -2
  42. package/dist/es2015/preventable-event.d.ts +1 -1
  43. package/dist/es2015/preventable-event.js +1 -1
  44. package/dist/es2015/sortable-container.d.ts +1 -1
  45. package/dist/es2015/sortable-container.js +1 -1
  46. package/dist/es2015/sortable-event-args.interface.d.ts +1 -1
  47. package/dist/es2015/sortable-event-args.interface.js +1 -1
  48. package/dist/es2015/sortable-events.d.ts +1 -1
  49. package/dist/es2015/sortable-events.js +1 -1
  50. package/dist/es2015/sortable.component.d.ts +2 -1
  51. package/dist/es2015/sortable.component.js +22 -21
  52. package/dist/es2015/sortable.module.d.ts +1 -1
  53. package/dist/es2015/sortable.module.js +1 -1
  54. package/dist/es2015/sortable.service.d.ts +1 -1
  55. package/dist/es2015/sortable.service.js +1 -1
  56. package/dist/es2015/util.d.ts +1 -1
  57. package/dist/es2015/util.js +1 -1
  58. package/dist/fesm2015/index.js +24 -23
  59. package/dist/fesm5/index.js +8 -7
  60. package/dist/npm/binding.directive.js +2 -2
  61. package/dist/npm/data-event-args.interface.js +1 -1
  62. package/dist/npm/data-events.js +1 -1
  63. package/dist/npm/draggable-event.js +1 -1
  64. package/dist/npm/draggable.directive.js +1 -1
  65. package/dist/npm/index.js +1 -1
  66. package/dist/npm/item-template.directive.js +1 -1
  67. package/dist/npm/main.js +1 -1
  68. package/dist/npm/navigate-event.js +1 -1
  69. package/dist/npm/package-metadata.js +2 -2
  70. package/dist/npm/preventable-event.js +1 -1
  71. package/dist/npm/sortable-container.js +1 -1
  72. package/dist/npm/sortable-event-args.interface.js +1 -1
  73. package/dist/npm/sortable-events.js +1 -1
  74. package/dist/npm/sortable.component.js +6 -5
  75. package/dist/npm/sortable.module.js +1 -1
  76. package/dist/npm/sortable.service.js +1 -1
  77. package/dist/npm/util.js +1 -1
  78. package/dist/systemjs/kendo-angular-sortable.js +2 -2
  79. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n")):"function"==typeof define&&define.amd?define(["@angular/core","rxjs","rxjs/operators","@angular/common","@progress/kendo-angular-l10n"],t):"object"==typeof exports?exports.KendoAngularSortable=t(require("@angular/core"),require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@progress/kendo-angular-l10n")):e.KendoAngularSortable=t(e["@angular/core"],e.rxjs,e["rxjs/operators"],e["@angular/common"],e["@progress/kendo-angular-l10n"])}(window,(function(e,t,n,r,i){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=19)}([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 u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return p})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return b})),n.d(t,"__await",(function(){return m})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return _})),n.d(t,"__asyncValues",(function(){return x})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return D})),n.d(t,"__importDefault",(function(){return I})),n.d(t,"__classPrivateFieldGet",(function(){return O})),n.d(t,"__classPrivateFieldSet",(function(){return E}));
@@ -17,4 +17,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
17
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
18
  PERFORMANCE OF THIS SOFTWARE.
19
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 u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function d(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 h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(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 g(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 v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function b(){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 m(e){return this instanceof m?(this.v=e,this):new m(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 m?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(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:m(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(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 S(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 O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(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,n){e.exports=t},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){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(8),o=n(13),s=n(2),u=n(5),c=function(e){var t=e.originalEvent.target;return t.hasAttribute("data-sortable-item")||!(o.isFocusable(t)||o.widgetTarget(t))},l=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(u.filter(c),u.tap((function(e){t.targetSortable=t.getSortableComponentFromTouch(e)})),u.filter((function(e){return Boolean(t.targetSortable)})),u.tap((function(e){t.onReleaseSubject.pipe(u.take(1)).subscribe((function(e){return t.release(e)})),t.pressArgs=e,e.isTouch&&e.originalEvent.preventDefault()})),u.switchMap((function(e){return t.onDragSubject.pipe(u.filter((function(e){return Boolean(t.targetSortable)})),u.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=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(8),s=n(13),u=n(5),c=n(20),l=n(21),d=n(22),p=n(6),h=n(9),f=n(10),g=n(3),v=n(14),b=n(15),m=n(16),y=n(11),_=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,l.validatePackage(d.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 b.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 b.DraggableEvent(e);return this.onDragOverSubject.next(t),t.isDefaultPrevented()},e.prototype.leave=function(e){var t=new b.DraggableEvent(e);return this.onDragLeaveSubject.next(t),t.isDefaultPrevented()},e.prototype.endDrag=function(e){var t=new b.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 u=e.ctrlKey||e.metaKey,c=new v.NavigateEvent({index:s,oldIndex:this.activeIndex,ctrlKey:u});this.navigate.emit(c),c.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 t+1===this.data.length&&this.data.length>1&&t++,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(u.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=[],c=i;i!==t;)i+=a,(this.itemEnabled(i)||i===t)&&(this.animation&&s.push({next:i,prev:c}),r=this._localData[c].index,this._localData[c].index=this._localData[i].index,this._localData[i].index=r,r=this._localData[c],this._localData[c]=this._localData[i],this._localData[i]=r,r=this.data[c],this.data[c]=this.data[i],this.data[i]=r,c=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(u.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,u=i[o],c=r[o],l=n[s].nativeElement;this.applyAnimationStyle(l,"transition","none"),this.applyAnimationStyle(l,"transform","translate3d("+(u.left-c.left).toString()+"px,"+(u.top-c.top).toString()+"px,0)"),this.reflow(l)}var d=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++)d(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 m.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(u.filter((function(e){return e.target&&0===e.target.el.nativeElement.style.transition.length})),u.filter((function(){return e.sortableService.originDraggable&&!e.sortableService.originDraggable.disabled})),u.filter((function(){return e.sortableService&&e.acceptDragFrom(e.sortableService.getSource())})),u.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 m.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 m.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(u.filter((function(t){return!!o.isDocumentAvailable()&&e.wrapper!==document.elementFromPoint(t.originalEvent.pageX,t.originalEvent.pageY)})),u.filter((function(t){return!e.animating})),u.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(u.take(1)).subscribe((function(){t.setItemData(i,e.index)})),c=n.onDragLeaveSubject.pipe(u.take(1)).subscribe((function(){t.setItemData(i,e.index)})),l=a.merge(this.onDragOverSubject.pipe(u.filter((function(){return e.index!==t.dragOverIndex}))),this.onDragLeaveSubject).subscribe((function(){t.setItemData(i,e.index),s.unsubscribe(),l.unsubscribe(),c.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(g.ItemTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),r.__decorate([i.ContentChildren(g.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(h.DraggableDirective),r.__metadata("design:type",i.QueryList)],e.prototype,"draggables",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:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.sortable"},{provide:f.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,c.LocalizationService,i.ChangeDetectorRef,i.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return K})),n.d(t,"PreventableEvent",(function(){return q})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return g})),n.d(t,"closestInScope",(function(){return v})),n.d(t,"closest",(function(){return b})),n.d(t,"contains",(function(){return m})),n.d(t,"findElement",(function(){return y})),n.d(t,"findFocusableChild",(function(){return I})),n.d(t,"findFocusable",(function(){return O})),n.d(t,"hasClasses",(function(){return w})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return x})),n.d(t,"isVisible",(function(){return S})),n.d(t,"matchesClasses",(function(){return j})),n.d(t,"matchesNodeName",(function(){return P})),n.d(t,"rtlScrollPosition",(function(){return A})),n.d(t,"EventsOutsideAngularDirective",(function(){return T})),n.d(t,"EventsModule",(function(){return k})),n.d(t,"ResizeSensorComponent",(function(){return F})),n.d(t,"ResizeBatchService",(function(){return H})),n.d(t,"ResizeCompatService",(function(){return B})),n.d(t,"ResizeObserverService",(function(){return N})),n.d(t,"ResizeSensorModule",(function(){return U})),n.d(t,"KendoInput",(function(){return Y})),n.d(t,"isDocumentAvailable",(function(){return c})),n.d(t,"isChanged",(function(){return l})),n.d(t,"anyChanged",(function(){return d})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return z}));var r=n(0),i=n(1),a=n(11),o=n(12),s=n(5),u=n(2),c=function(){return"undefined"!=typeof document},l=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},d=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return l(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},f=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){l("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;c()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new a.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),g=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[f],exports:[f],imports:[o.CommonModule]})],e)}(),v=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},b=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},m=function(e,t,n){if(void 0===n&&(n=!1),!b(t,(function(t){return t===e})))return!1;var r=b(t,(function(e){return e===t}));return r&&(n||r!==e)},y=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=y(e,t);if(r)return r}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,x=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},S=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!x(e))return!1;var n=e.getAttribute("tabIndex");return(!t||S(e))&&"-1"!==n},I=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return D(e,t)}),!1)},O=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return D(e,t)}))},E=function(e){return String(e).trim().split(" ")},w=function(e,t){var n=E(t);return Boolean(E(e.className).find((function(e){return n.indexOf(e)>=0})))},j=function(e){return function(t){return w(t,e)}},C={},P=function(e){return C[e]||(C[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),C[e]};function A(e,t,n){var r=e;return n<0?r=-e:n>0&&(r=t.scrollWidth-t.offsetWidth-e),r}var z,T=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(r.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(r.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),k=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[T],exports:[T]})],e)}(),K=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){c()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),R=function(e){var t=document.createElement("div");return t.style.cssText=e,t},L="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",B=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=L,e.setAttribute("dir","ltr"),this.expand=R(L),this.expandChild=R("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=R(L);var t=R("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(u.merge)(Object(u.fromEvent)(e.shrink,"scroll"),Object(u.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(K),M="undefined"!=typeof ResizeObserver,N=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.supported=function(){return M},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(K),H=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(u.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__metadata)("design:paramtypes",[i.NgZone])],e)}(),F=function(){function e(e,t,n){var r=this;this.rateLimit=10,this.resize=new i.EventEmitter;var a=N.supported()?N:B;this.resizeService=new a(e,t,n);var o=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(o)).subscribe((function(){r.resizeService.acceptedSize||r.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(r.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(r.__metadata)("design:paramtypes",[H,i.ElementRef,i.NgZone])],e)}(),Z=[F],U=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[Z],exports:[Z],providers:[H]})],e)}(),Y=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(z||(z={}));var q=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(10),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,n){"use strict";n.r(t),n.d(t,"Draggable",(function(){return l}));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()},u=/touch/;function c(e){return e.type.match(u)?{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 l=function(e){var t=this,n=e.press;void 0===n&&(n=o);var u=e.drag;void 0===u&&(u=o);var l=e.release;void 0===l&&(l=o);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=r(c,n),this._dragHandler=r(c,u),this._releaseHandler=r(c,l),this._ignoreMouse=!1,this._mouseOnly=d,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))}},d={document:{configurable:!0}};l.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},l.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},l.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)))},l.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))},l.prototype._usePointers=function(){return!this._mouseOnly&&l.supportPointerEvent()},l.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(c,t),this._dragHandler=r(c,n),this._releaseHandler=r(c,i),this._mouseOnly=a},l.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(l.prototype,d),l.default=l,t.default=l},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),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 u=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var n=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||u(e)}));return n&&!u(n)};var c=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||!c)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(4).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(4).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(4).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(7),o=n(6),s=n(18),u=n(5),c=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&&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(u.take(1),u.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=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(4),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(7);t.SortableComponent=r.SortableComponent;var i=n(23);t.SortableModule=i.SortableModule;var a=n(4);t.PreventableEvent=a.PreventableEvent;var o=n(15);t.DraggableEvent=o.DraggableEvent;var s=n(16);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var u=n(14);t.NavigateEvent=u.NavigateEvent;var c=n(18);t.DataMoveEvent=c.DataMoveEvent;var l=n(9);t.DraggableDirective=l.DraggableDirective;var d=n(17);t.SortableBindingDirective=d.SortableBindingDirective;var p=n(3);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var h=n(3);t.ItemTemplateDirective=h.ItemTemplateDirective;var f=n(6);t.SortableService=f.SortableService;var g=n(10);t.SortableContainer=g.SortableContainer},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"validatePackage",(function(){return c}));var r,i,a=["DhrPzK8=","CgfYC2u=","u2vLia==","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","q2X1D1y=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","zg9JC1vYBa==","zxHWAxj5rgf0zq==","rMrNr2W=","z3jVDxa=","wwPKqvC=","Dg9mB2nHBgvtDhjPBMC=","BMfTzq==","Cwzus0e=","tM8GBgLJzw5ZzsbMB3vUzc4k","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","veTjqvO=","swXxDwm=","D09PC2e=","re5rCfy=","AgfZ","DhLWzq==","D1vfwvu=","sKPkD2e=","A0XWz3i=","DMvYC2LVBG==","y2vzBKi=","C2v0","BgvUz3rO","Eu5Yt2y=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zwfwqLi=","z3jVDxbfBMq=","ChjVzhvJDhm=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","BMnyuLm=","BK1VugS=","zNvUy3rPB24=","s1LMuNe=","zgf0yq==","yK9pqNy=","BfbuEg0=","DgLTzxn0yw1W","D2fYBG==","r1zxqLq=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","B2jQzwn0","uNHkrKi=","CgfJA2fNzu5HBwu=","y29Kzq==","C3z3CMm=","D29NvNG=","uhjVz3jLC3mG","BgLJzw5ZAw5Nrg9JC1vYBa==","v0nkq0q=","ChvIBgLZAerHDgu=","ChjVzhvJDenVzgvZ","z2v0","zMLUza==","wvLpyMG=","A3fbB0C=","ChjVzhvJDe5HBwu="];r=a,i=334,function(e){for(;--e;)r.push(r.shift())}(++i);var o=function(e,t){var n=a[e-=0];if(void 0===o.QMJAKQ){o.PnYrIu=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),i="",a=0,o=0;n=r.charAt(o++);~n&&(t=a%4?64*t+n:n,a++%4)?i+=String.fromCharCode(255&t>>(-2*a&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],r=0,i=t.length;r<i;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},o.TLHuwf={},o.QMJAKQ=!0}var r=o.TLHuwf[e];return void 0===r?(n=o.PnYrIu(n),o.TLHuwf[e]=n):n=r,n},s={data:' {"timestamp":1620193668,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1636570800},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1636570800}],"integrity":"6o9Eceda8u2pJ18VFwLR1BgEfgk="} '},u=new Map;function c(e){if(u[o("0x3a")](e[o("0x32")])){if(o("0x11")==o("0x11"))return u[o("0x21")](e[o("0x32")])}var t,n=e[o("0x1")]?" v"+e[o("0x1")]:"",r=e[o("0x32")]+n,i=JSON[o("0x27")](s[o("0xf")]),a=!i[o("0x12")],c=function(e,t){var n=e[o("0x9")];if(!n||!n[o("0x4")]){if(o("0x1b")==o("0x1b"))return null}var r=new Set(t);return n[o("0x22")]((function(e){if(o("0x2a")!==o("0x1a"))return r[o("0x3a")](e[o("0x19")])}))}(i,e[o("0x20")]);if(a)if(o("0x2")!==o("0xe"))t={type:0,packageName:r,docsUrl:e[o("0x1d")]};else{}else if(o("0x10")===o("0x23")){}else if(c){if(o("0x2e")===o("0xb")){}else if(c[o("0x29")]<e[o("0x1f")])if(o("0x24")!=o("0x24")){}else t={type:2,packageName:r,publishDate:d(e[o("0x1f")]),expiryDate:d(c[o("0x29")]),docsUrl:e[o("0x1d")]}}else if(o("0x39")===o("0x5")){}else t={type:1,packageName:r,docsUrl:e[o("0x1d")]};if(t&&typeof console===o("0x16"))if(o("0x7")===o("0x3d")){}else{var p=o("0x1c")+e[o("0x25")],h=typeof console[o("0x2f")]===o("0xd");if(h)if(o("0x3c")!==o("0x37"))console[o("0x2f")](p);else{}else if(o("0x33")===o("0x26")){}else console[o("0x13")](p);if(console[o("0x13")](l(t)),h)if(o("0x30")!==o("0x1e"))console[o("0x8")]();else{}}var f=!t;return u[o("0x3")](e[o("0x32")],f),f}function l(e){var t=o("0x2b")+e[o("0x18")]+"\n";if(2===e[o("0x3b")])if(o("0x0")===o("0x36")){}else t+=o("0x6")+e[o("0x2d")][o("0x31")]()+o("0xa")+e[o("0x1f")][o("0x31")]()+".\n";else if(0===e[o("0x3b")])if(o("0x14")!==o("0x38"))t+=o("0x34");else{}else if(1===e[o("0x3b")])if(o("0x17")===o("0xc")){}else t+=o("0x15");return t+=o("0x28")+e[o("0x2c")]+o("0x35")}function d(e){return new Date(1e3*e)}},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:1620216298,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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(12),o=n(7),s=n(6),u=n(9),c=n(3),l=n(3),d=n(17),p=[o.SortableComponent,u.DraggableDirective,c.PlaceholderTemplateDirective,l.ItemTemplateDirective,d.SortableBindingDirective],h=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[p],exports:[p],imports:[a.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=h}])}));
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 u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function d(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 h(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function f(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 g(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 v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function b(){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 m(e){return this instanceof m?(this.v=e,this):new m(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 m?Promise.resolve(n.value.v).then(u,c):l(a[0][2],n)}catch(e){l(a[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(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:m(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(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 S(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 O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function E(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,n){e.exports=t},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){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(8),o=n(13),s=n(2),u=n(5),c=function(e){var t=e.originalEvent.target;return t.hasAttribute("data-sortable-item")||!(o.isFocusable(t)||o.widgetTarget(t))},l=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(u.filter(c),u.tap((function(e){t.targetSortable=t.getSortableComponentFromTouch(e)})),u.filter((function(e){return Boolean(t.targetSortable)})),u.tap((function(e){t.onReleaseSubject.pipe(u.take(1)).subscribe((function(e){return t.release(e)})),t.pressArgs=e,e.isTouch&&e.originalEvent.preventDefault()})),u.switchMap((function(e){return t.onDragSubject.pipe(u.filter((function(e){return Boolean(t.targetSortable)})),u.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=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(8),s=n(13),u=n(5),c=n(20),l=n(21),d=n(22),p=n(6),h=n(9),f=n(10),g=n(3),v=n(14),b=n(15),m=n(16),y=n(11),_=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,l.validatePackage(d.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 b.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 b.DraggableEvent(e);return this.onDragOverSubject.next(t),t.isDefaultPrevented()},e.prototype.leave=function(e){var t=new b.DraggableEvent(e);return this.onDragLeaveSubject.next(t),t.isDefaultPrevented()},e.prototype.endDrag=function(e){var t=new b.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 u=e.ctrlKey||e.metaKey,c=new v.NavigateEvent({index:s,oldIndex:this.activeIndex,ctrlKey:u});this.navigate.emit(c),c.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(u.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=[],c=i;i!==t;)i+=a,(this.itemEnabled(i)||i===t)&&(this.animation&&s.push({next:i,prev:c}),r=this._localData[c].index,this._localData[c].index=this._localData[i].index,this._localData[i].index=r,r=this._localData[c],this._localData[c]=this._localData[i],this._localData[i]=r,r=this.data[c],this.data[c]=this.data[i],this.data[i]=r,c=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(u.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,u=i[o],c=r[o],l=n[s].nativeElement;this.applyAnimationStyle(l,"transition","none"),this.applyAnimationStyle(l,"transform","translate3d("+(u.left-c.left).toString()+"px,"+(u.top-c.top).toString()+"px,0)"),this.reflow(l)}var d=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++)d(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 m.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(u.filter((function(e){return e.target&&0===e.target.el.nativeElement.style.transition.length})),u.filter((function(){return e.sortableService.originDraggable&&!e.sortableService.originDraggable.disabled})),u.filter((function(){return e.sortableService&&e.acceptDragFrom(e.sortableService.getSource())})),u.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 m.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 m.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(u.filter((function(t){return!!o.isDocumentAvailable()&&e.wrapper!==document.elementFromPoint(t.originalEvent.pageX,t.originalEvent.pageY)})),u.filter((function(t){return!e.animating})),u.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(u.take(1)).subscribe((function(){t.setItemData(i,e.index)})),c=n.onDragLeaveSubject.pipe(u.take(1)).subscribe((function(){t.setItemData(i,e.index)})),l=a.merge(this.onDragOverSubject.pipe(u.filter((function(){return e.index!==t.dragOverIndex}))),this.onDragLeaveSubject).subscribe((function(){t.setItemData(i,e.index),s.unsubscribe(),l.unsubscribe(),c.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(g.ItemTemplateDirective,{read:i.TemplateRef,descendants:!1}),r.__metadata("design:type",i.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),r.__decorate([i.ContentChildren(g.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(h.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:[c.LocalizationService,{provide:c.L10N_PREFIX,useValue:"kendo.sortable"},{provide:f.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,c.LocalizationService,i.ChangeDetectorRef,i.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,t,n){"use strict";n.r(t),n.d(t,"ResizeService",(function(){return K})),n.d(t,"PreventableEvent",(function(){return V})),n.d(t,"DraggableDirective",(function(){return f})),n.d(t,"DraggableModule",(function(){return g})),n.d(t,"closestInScope",(function(){return v})),n.d(t,"closest",(function(){return b})),n.d(t,"contains",(function(){return m})),n.d(t,"findElement",(function(){return y})),n.d(t,"findFocusableChild",(function(){return I})),n.d(t,"findFocusable",(function(){return O})),n.d(t,"hasClasses",(function(){return w})),n.d(t,"isFocusableWithTabKey",(function(){return D})),n.d(t,"isFocusable",(function(){return x})),n.d(t,"isVisible",(function(){return S})),n.d(t,"matchesClasses",(function(){return j})),n.d(t,"matchesNodeName",(function(){return P})),n.d(t,"rtlScrollPosition",(function(){return A})),n.d(t,"EventsOutsideAngularDirective",(function(){return T})),n.d(t,"EventsModule",(function(){return k})),n.d(t,"ResizeSensorComponent",(function(){return F})),n.d(t,"ResizeBatchService",(function(){return H})),n.d(t,"ResizeCompatService",(function(){return L})),n.d(t,"ResizeObserverService",(function(){return N})),n.d(t,"ResizeSensorModule",(function(){return U})),n.d(t,"KendoInput",(function(){return q})),n.d(t,"isDocumentAvailable",(function(){return c})),n.d(t,"isChanged",(function(){return l})),n.d(t,"anyChanged",(function(){return d})),n.d(t,"hasObservers",(function(){return p})),n.d(t,"guid",(function(){return h})),n.d(t,"Keys",(function(){return z}));var r=n(0),i=n(1),a=n(11),o=n(12),s=n(5),u=n(2),c=function(){return"undefined"!=typeof document},l=function(e,t,n){return void 0===n&&(n=!0),!(void 0===t[e]||t[e].isFirstChange()&&n||t[e].previousValue===t[e].currentValue)},d=function(e,t,n){return void 0===n&&(n=!0),e.some((function(e){return l(e,t,n)}))},p=function(e){return e&&e.observers.length>0},h=function(){for(var e="",t=0;t<32;t++){var n=16*Math.random()|0;8!==t&&12!==t&&16!==t&&20!==t||(e+="-"),e+=(12===t?4:16===t?3&n|8:n).toString(16)}return e},f=function(){function e(e,t){this.element=e,this.ngZone=t,this.enableDrag=!0,this.kendoPress=new i.EventEmitter,this.kendoDrag=new i.EventEmitter,this.kendoRelease=new i.EventEmitter}return e.prototype.ngOnInit=function(){this.toggleDraggable()},e.prototype.ngOnChanges=function(e){l("enableDrag",e)&&this.toggleDraggable()},e.prototype.ngOnDestroy=function(){this.destroyDraggable()},e.prototype.toggleDraggable=function(){var e=this;c()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new a.default({drag:function(t){return e.kendoDrag.next(t)},press:function(t){return e.kendoPress.next(t)},release:function(t){return e.kendoRelease.next(t)}}),this.ngZone.runOutsideAngular((function(){return e.draggable.bindTo(e.element.nativeElement)}))))},e.prototype.destroyDraggable=function(){this.draggable&&(this.draggable.destroy(),this.draggable=null)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Boolean)],e.prototype,"enableDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoPress",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoDrag",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"kendoRelease",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoDraggable]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone])],e)}(),g=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[f],exports:[f],imports:[o.CommonModule]})],e)}(),v=function(e,t,n){for(;e&&e!==n&&!t(e);)e=e.parentNode;if(e!==n)return e},b=function(e,t){for(;e&&!t(e);)e=e.parentNode;return e},m=function(e,t,n){if(void 0===n&&(n=!1),!b(t,(function(t){return t===e})))return!1;var r=b(t,(function(e){return e===t}));return r&&(n||r!==e)},y=function(e,t,n){if(void 0===n&&(n=!0),e){if(n&&t(e))return e;for(e=e.firstChild;e;){if(1===e.nodeType){var r=y(e,t);if(r)return r}e=e.nextSibling}}},_=/^(?:a|input|select|option|textarea|button|object)$/i,x=function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase(),n=Boolean(e.getAttribute("tabIndex"));return!e.disabled&&_.test(t)||n},S=function(e){var t=e.getBoundingClientRect(),n=t.width>0&&t.height>0,r=0!==t.x&&0!==t.y;return(n||r)&&"hidden"!==window.getComputedStyle(e).visibility},D=function(e,t){if(void 0===t&&(t=!0),!x(e))return!1;var n=e.getAttribute("tabIndex");return(!t||S(e))&&"-1"!==n},I=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return D(e,t)}),!1)},O=function(e,t){return void 0===t&&(t=!0),y(e,(function(e){return D(e,t)}))},E=function(e){return String(e).trim().split(" ")},w=function(e,t){var n=E(t);return Boolean(E(e.className).find((function(e){return n.indexOf(e)>=0})))},j=function(e){return function(t){return w(t,e)}},C={},P=function(e){return C[e]||(C[e]=function(t){return String(t.nodeName).toLowerCase()===e.toLowerCase()}),C[e]};function A(e,t,n){var r=e;return n<0?r=-e:n>0&&(r=t.scrollWidth-t.offsetWidth-e),r}var z,T=function(){function e(e,t,n){this.element=e,this.ngZone=t,this.renderer=n,this.events={}}return e.prototype.ngOnInit=function(){var e=this;if(this.element&&this.element.nativeElement){var t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular((function(){for(var n in t)t.hasOwnProperty(n)&&e.subscriptions.push(e.renderer.listen(e.element.nativeElement,n,e.scope?t[n].bind(e.scope):t[n]))}))}},e.prototype.ngOnDestroy=function(){if(this.subscriptions){for(var e=0;e<this.subscriptions.length;e++)this.subscriptions[e]();this.subscriptions=null}},Object(r.__decorate)([Object(i.Input)("kendoEventsOutsideAngular"),Object(r.__metadata)("design:type",Object)],e.prototype,"events",void 0),Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Object)],e.prototype,"scope",void 0),e=Object(r.__decorate)([Object(i.Directive)({selector:"[kendoEventsOutsideAngular]"}),Object(r.__metadata)("design:paramtypes",[i.ElementRef,i.NgZone,i.Renderer2])],e)}(),k=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[T],exports:[T]})],e)}(),K=function(){function e(e){this.resizeBatchService=e,this.resize=new i.EventEmitter,this.acceptedSize=!1,this.state=0}return e.prototype.acceptSize=function(e){void 0===e&&(e=this.measure()),this.lastWidth=e.width,this.lastHeight=e.height,this.acceptedSize=!0},e.prototype.checkChanges=function(){c()&&0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))},e.prototype.destroy=function(){this.resizeBatchService.cancel(this)},e.prototype.checkSize=function(){if(this.parentElement){var e=this.measure(),t=e.width,n=e.height;if(!(t===this.lastWidth&&n===this.lastHeight))return this.lastWidth=t,this.lastHeight=n,this.acceptedSize=!1,this.resize.emit(),!0}},e.prototype.initSize=function(){var e=this.measure();this.lastWidth=e.width,this.lastHeight=e.height},e.prototype.measure=function(){var e=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,e=this.parentElement.offsetWidth),{height:t,width:e}},e}(),R=function(e){var t=document.createElement("div");return t.style.cssText=e,t},B="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;",L=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.prototype.checkChanges=function(){2!==this.state?e.prototype.checkChanges.call(this):this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)},t.prototype.destroy=function(){if(e.prototype.destroy.call(this),this.subscription&&this.subscription.unsubscribe(),this.expand){var t=this.element.nativeElement;t.removeChild(this.expand),t.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}},t.prototype.checkSize=function(){if(e.prototype.checkSize.call(this))return this.reset(),!0},t.prototype.init=function(){var e,t=this.parentElement=this.element.nativeElement.parentElement;"static"===(e="position",getComputedStyle(t,null).getPropertyValue(e))&&(t.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()},t.prototype.render=function(){var e=this.element.nativeElement;e.style.cssText=B,e.setAttribute("dir","ltr"),this.expand=R(B),this.expandChild=R("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),e.appendChild(this.expand),this.shrink=R(B);var t=R("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),e.appendChild(this.shrink)},t.prototype.reset=function(){var e=this.expandChild;e.style.width="100000px",e.style.height="100000px";var t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;var n=this.shrink;n.scrollLeft=1e5,n.scrollTop=1e5},t.prototype.subscribe=function(){var e=this;this.ngZone.runOutsideAngular((function(){e.subscription=Object(u.merge)(Object(u.fromEvent)(e.shrink,"scroll"),Object(u.fromEvent)(e.expand,"scroll")).subscribe((function(){e.checkSize()}))}))},t}(K),M="undefined"!=typeof ResizeObserver,N=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.element=n,i.ngZone=r,i}return Object(r.__extends)(t,e),t.supported=function(){return M},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null},t.prototype.init=function(){var e=this;this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular((function(){e.resizeObserver=new ResizeObserver((function(){e.checkSize()})),e.resizeObserver.observe(e.parentElement)}))},t}(K),H=function(){function e(e){this.ngZone=e,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}return e.prototype.schedule=function(e,t){var n=this;this.scheduled.push({instance:e,method:t}),this.subscription||this.ngZone.runOutsideAngular((function(){n.subscription=Object(u.from)(n.resolvedPromise).subscribe(n.flush)}))},e.prototype.isScheduled=function(e){return Boolean(this.scheduled.find((function(t){return t.instance===e})))},e.prototype.cancel=function(e){for(var t=this.scheduled,n=t.length,r=0;r<n;r++)if(t[r].instance===e)return t.splice(r,1),void(t.length||this.unsubscribe())},e.prototype.ngOnDestroy=function(){this.unsubscribe()},e.prototype.unsubscribe=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)},e.prototype.flush=function(){this.scheduled.forEach((function(e){e.method.call(e.instance)})),this.scheduled=[],this.unsubscribe()},e=Object(r.__decorate)([Object(i.Injectable)(),Object(r.__metadata)("design:paramtypes",[i.NgZone])],e)}(),F=function(){function e(e,t,n){var r=this;this.rateLimit=10,this.resize=new i.EventEmitter;var a=N.supported()?N:L;this.resizeService=new a(e,t,n);var o=1e3/(this.rateLimit||10);this.subscription=this.resizeService.resize.pipe(Object(s.auditTime)(o)).subscribe((function(){r.resizeService.acceptedSize||r.resize.emit()}))}return e.prototype.ngAfterViewChecked=function(){this.resizeService.checkChanges()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe(),this.resizeService.destroy()},e.prototype.acceptSize=function(e){this.resizeService.acceptSize(e)},Object(r.__decorate)([Object(i.Input)(),Object(r.__metadata)("design:type",Number)],e.prototype,"rateLimit",void 0),Object(r.__decorate)([Object(i.Output)(),Object(r.__metadata)("design:type",i.EventEmitter)],e.prototype,"resize",void 0),e=Object(r.__decorate)([Object(i.Component)({selector:"kendo-resize-sensor",template:""}),Object(r.__metadata)("design:paramtypes",[H,i.ElementRef,i.NgZone])],e)}(),Z=[F],U=function(){function e(){}return e=Object(r.__decorate)([Object(i.NgModule)({declarations:[Z],exports:[Z],providers:[H]})],e)}(),q=function(){};!function(e){e[e.Alt=18]="Alt",e[e.ArrowDown=40]="ArrowDown",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.Backspace=8]="Backspace",e[e.Control=17]="Control",e[e.Delete=46]="Delete",e[e.Digit0=48]="Digit0",e[e.Digit1=49]="Digit1",e[e.Digit2=50]="Digit2",e[e.Digit3=51]="Digit3",e[e.Digit4=52]="Digit4",e[e.Digit5=53]="Digit5",e[e.Digit6=54]="Digit6",e[e.Digit7=55]="Digit7",e[e.Digit8=56]="Digit8",e[e.Digit9=57]="Digit9",e[e.End=35]="End",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.F1=112]="F1",e[e.F2=113]="F2",e[e.F10=121]="F10",e[e.Home=36]="Home",e[e.Insert=45]="Insert",e[e.KeyA=65]="KeyA",e[e.KeyB=66]="KeyB",e[e.KeyC=67]="KeyC",e[e.KeyD=68]="KeyD",e[e.KeyE=69]="KeyE",e[e.KeyF=70]="KeyF",e[e.KeyG=71]="KeyG",e[e.KeyH=72]="KeyH",e[e.KeyI=73]="KeyI",e[e.KeyJ=74]="KeyJ",e[e.KeyK=75]="KeyK",e[e.KeyL=76]="KeyL",e[e.KeyM=77]="KeyM",e[e.KeyN=78]="KeyN",e[e.KeyO=79]="KeyO",e[e.KeyP=80]="KeyP",e[e.KeyQ=81]="KeyQ",e[e.KeyR=82]="KeyR",e[e.KeyS=83]="KeyS",e[e.KeyT=84]="KeyT",e[e.KeyU=85]="KeyU",e[e.KeyV=86]="KeyV",e[e.KeyW=87]="KeyW",e[e.KeyX=88]="KeyX",e[e.KeyY=89]="KeyY",e[e.KeyZ=90]="KeyZ",e[e.NumpadDecimal=110]="NumpadDecimal",e[e.PageDown=34]="PageDown",e[e.PageUp=33]="PageUp",e[e.Shift=16]="Shift",e[e.Space=32]="Space",e[e.Tab=9]="Tab"}(z||(z={}));var V=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(10),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,n){"use strict";n.r(t),n.d(t,"Draggable",(function(){return l}));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()},u=/touch/;function c(e){return e.type.match(u)?{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 l=function(e){var t=this,n=e.press;void 0===n&&(n=o);var u=e.drag;void 0===u&&(u=o);var l=e.release;void 0===l&&(l=o);var d=e.mouseOnly;void 0===d&&(d=!1),this._pressHandler=r(c,n),this._dragHandler=r(c,u),this._releaseHandler=r(c,l),this._ignoreMouse=!1,this._mouseOnly=d,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))}},d={document:{configurable:!0}};l.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},d.document.get=function(){return this._element?this._element.ownerDocument:document},l.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},l.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)))},l.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))},l.prototype._usePointers=function(){return!this._mouseOnly&&l.supportPointerEvent()},l.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(c,t),this._dragHandler=r(c,n),this._releaseHandler=r(c,i),this._mouseOnly=a},l.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(l.prototype,d),l.default=l,t.default=l},function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),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 u=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var n=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||u(e)}));return n&&!u(n)};var c=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||!c)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(4).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(4).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(4).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(7),o=n(6),s=n(18),u=n(5),c=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(u.take(1),u.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=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(4),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(7);t.SortableComponent=r.SortableComponent;var i=n(23);t.SortableModule=i.SortableModule;var a=n(4);t.PreventableEvent=a.PreventableEvent;var o=n(15);t.DraggableEvent=o.DraggableEvent;var s=n(16);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var u=n(14);t.NavigateEvent=u.NavigateEvent;var c=n(18);t.DataMoveEvent=c.DataMoveEvent;var l=n(9);t.DraggableDirective=l.DraggableDirective;var d=n(17);t.SortableBindingDirective=d.SortableBindingDirective;var p=n(3);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var h=n(3);t.ItemTemplateDirective=h.ItemTemplateDirective;var f=n(6);t.SortableService=f.SortableService;var g=n(10);t.SortableContainer=g.SortableContainer},function(e,t){e.exports=i},function(e,t,n){"use strict";n.r(t),n.d(t,"setScriptKey",(function(){return c})),n.d(t,"validatePackage",(function(){return l}));var r,i,a=["EMfOwhq=","z3jVDxbfBMq=","B2jQzwn0","u2vLia==","BKDQzKK=","zNvUy3rPB24=","zgf0yq==","D1rPsKq=","z2v0","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DgLTzxn0yw1W","y29Kzq==","DhLWzq==","C2v0","DMvYC2LVBG==","ChjVzhvJDenVzgvZ","u3PgAeu=","BMfTzq==","sg94tgG=","zun0Beq=","z3jVDxa=","ChjVzhvJDhm=","CgfYC2u=","BfP2zKS=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","Cfj6wKC=","tM8GBgLJzw5ZzsbMB3vUzc4k","ChjVzhvJDe5HBwu=","uwrAy0q=","BefHr0m=","t3jquwq=","s1Ldrvi=","CNvlCgC=","AgfZ","zxHWAxj5rgf0zq==","CgfJA2fNzu5HBwu=","y3LqC08=","CMr1Aui=","CNvHzve=","zg9JC1vYBa==","uhjVz3jLC3mG","ChvIBgLZAerHDgu=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","D2fYBG==","B3nTvxa=","swTrwfO=","CLfMrLm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","whv2wMO=","rLbJyLa=","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","C2nYAxb0s2v5","BgLJzw5ZAw5Nrg9JC1vYBa==","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","EfbArNi=","zMLUza==","Dw5KzwzPBMvK","Dg9mB2nHBgvtDhjPBMC=","BgvUz3rO"];r=a,i=131,function(e){for(;--e;)r.push(r.shift())}(++i);var o=function(e,t){var n=a[e-=0];if(void 0===o.eVebMg){o.JsjtEd=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),i="",a=0,o=0;n=r.charAt(o++);~n&&(t=a%4?64*t+n:n,a++%4)?i+=String.fromCharCode(255&t>>(-2*a&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return i}(e),n=[],r=0,i=t.length;r<i;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},o.rqrXoU={},o.eVebMg=!0}var r=o.rqrXoU[e];return void 0===r?(n=o.JsjtEd(n),o.rqrXoU[e]=n):n=r,n},s={data:' {"timestamp":1635163540,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1642770000},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1642770000}],"integrity":"Iq+/hmrfWBiuOSBY/c3zb/zGgBg="} '},u=new Map;function c(e){}function l(e){if(u[o("0x14")](e[o("0x4")])){if(o("0x35")==o("0x35"))return u[o("0x36")](e[o("0x4")])}var t,n=e[o("0x1")]?" v"+e[o("0x1")]:"",r=e[o("0x4")]+n,i=JSON[o("0x9")](s[o("0x34")]),a=!i[o("0x26")]&&!i[o("0x38")],c=i[o("0x26")]&&typeof KendoLicensing===o("0x2b"),l=function(e,t){var n=e[o("0x8")];if(!n||!n[o("0x2d")]){if(o("0x11")==o("0x11"))return null}var r=new Set(t);return n[o("0x2a")]((function(e){if(o("0xa")!==o("0x18"))return r[o("0x14")](e[o("0x39")])}))}(i,e[o("0x2")]);if(a||c)if(o("0x29")!=o("0x29")){}else t={type:0,packageName:r,docsUrl:e[o("0x27")]};else if(o("0xf")===o("0x24")){}else if(l){if(o("0x12")!=o("0x12")){}else if(l[o("0x37")]<e[o("0x1c")])if(o("0x21")===o("0x32")){}else t={type:2,packageName:r,publishDate:d(e[o("0x1c")]),expiryDate:d(l[o("0x37")]),docsUrl:e[o("0x27")]}}else if(o("0x6")!=o("0x6")){}else t={type:1,packageName:r,docsUrl:e[o("0x27")]};if(t&&typeof console===o("0x30"))if(o("0x5")===o("0x3")){}else{var p=o("0x1b")+e[o("0xe")],h=typeof console[o("0x7")]===o("0x33");if(h)if(o("0xc")!=o("0xc")){}else console[o("0x7")](p);else if(o("0x17")!=o("0x17")){}else console[o("0x1e")](p);if(console[o("0x1e")](function(e){var t=o("0x28")+e[o("0x16")]+"\n";if(2===e[o("0x3a")])if(o("0x20")!=o("0x20")){}else t+=o("0x25")+e[o("0x15")][o("0x2c")]()+o("0xb")+e[o("0x1c")][o("0x2c")]()+".\n";else if(0===e[o("0x3a")])if(o("0x13")!==o("0x10"))t+=o("0xd");else{}else if(1===e[o("0x3a")])if(o("0x2e")===o("0x23")){}else t+=o("0x1d");return t+=o("0x31")+e[o("0x1a")]+o("0x22")}(t)),h)if(o("0x1f")!==o("0x19"))console[o("0x2f")]();else{}}var f=!t;return u[o("0x0")](e[o("0x4")],f),f}function d(e){return new Date(1e3*e)}},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:1635433806,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";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(12),o=n(7),s=n(6),u=n(9),c=n(3),l=n(3),d=n(17),p=[o.SortableComponent,u.DraggableDirective,c.PlaceholderTemplateDirective,l.ItemTemplateDirective,d.SortableBindingDirective],h=function(){function e(){}return e=r.__decorate([i.NgModule({declarations:[p],exports:[p],imports:[a.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=h}])}));
package/dist/cdn/main.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
- !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(["tslib","@angular/core","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-angular-l10n","@progress/kendo-licensing","@telerik/kendo-draggable","@angular/common"],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.tslib,e["@angular/core"],e["@progress/kendo-angular-common"],e["rxjs/operators"],e.rxjs,e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@telerik/kendo-draggable"],e["@angular/common"])}(window,(function(e,t,r,n,a,i,o,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=17)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoSortableItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ItemTemplateDirective=i;var o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoSortablePlaceholderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.PlaceholderTemplateDirective=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(6),o=r(11),s=r(10),l=r(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 r=t.getAttribute("data-sortable-id"),n=t.getAttribute("data-sortable-index");if(r){var a=this.sortableRegister[r];if(a)return{component:a,index:parseInt(n,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 r=o.draggableFromEvent(e,t.targetSortable.component);t.source.endDrag({target:r,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 r=t.getSortableComponentFromTouch(e);if((!r||r&&r.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})),r&&r.component){var n=o.draggableFromEvent(e,r.component);r.component.drag({target:n,originalEvent:e})}t.source.markForCheck()}}))},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[a.NgZone])],e)}();t.SortableService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(10),o=r(6),s=r(11),l=r(7),d=r(18),c=r(19),u=r(20),p=r(4),g=r(8),v=r(9),b=r(2),m=r(12),h=r(13),f=r(14),y=r(21),_=function(){function e(e,t,r,n,o){this.ngZone=e,this.localization=t,this.changeDetector=r,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=n.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,r){e._localData.push({item:t,active:!1,disabled:!e.itemEnabled(r),index:r,hidden:!1})}))},e.prototype.startDrag=function(e){var t=new h.DraggableEvent(e);this.onDragStartSubject.next(t);var r=t.isDefaultPrevented();return r||(this.offsetParent=s.relativeContextElement(this.wrapper)),r},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,r=this.navigable&&t>=37&&t<=40,n=-1!==this.activeIndex;if(r&&n){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(r){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 r=this,n=this.sortableService.originDraggable;if(n&&n.parent===this){var a=this.animation;this.hideItem(n.index,!1),this.animation=!1,this.moveItem(n.index,t),this.animation=a}else t+1===this.data.length&&this.data.length>1&&t++,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(){r.sortableService.target=r,r.sortableService.setSource(r),r.sortableService.activeDraggable=r.draggables.toArray()[t],r.sortableService.lastDraggable=null}))},e.prototype.moveItem=function(e,t){var r=this;if(t!==e){for(var n,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}),n=this._localData[d].index,this._localData[d].index=this._localData[a].index,this._localData[a].index=n,n=this._localData[d],this._localData[d]=this._localData[a],this._localData[a]=n,n=this.data[d],this.data[d]=this.data[a],this.data[a]=n,d=a);this.dragIndex=a,this.dragOverIndex=a,this.activeIndex=a,this.animation&&setTimeout((function(){s.push({next:o,prev:a}),r.animating=!0,r.animate(s)})),this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){r.sortableService.activeDraggable=r.draggables.toArray()[a],r.sortableService.lastDraggable=null}))}},e.prototype.animate=function(e){var t=this,r=this.itemWrappers.toArray(),n=[],a=[],i=this;clearTimeout(this._animating);for(var o=0;o<e.length;o++)n.push(r[e[o].prev].nativeElement.getBoundingClientRect()),a.push(r[e[o].next].nativeElement.getBoundingClientRect());for(o=0;o<e.length;o++){var s=e[o].prev,l=a[o],d=n[o],c=r[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 n=e[t].prev,a=r[n].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,r){var n=e&&e.style;n&&(t in n||(t="-webkit-"+t),n[t]=r)},e.prototype.subscribeEvents=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var r=t.rtl;return e.direction=r?"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 r=new f.DragStartEvent({index:t.target.index});e.dragStart.emit(r),r.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 r=e.sortableService.originDraggable,n=t.target.index;r.hidden&&r.parent===e&&r.index<t.target.index&&(n=t.target.index-1),e.sortableService.target=e;var a=e.sortableService.activeDraggable?e.sortableService.activeDraggable.index:0,i=new f.DragOverEvent({index:n,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 r=e.sortableService.getSource();if(r){var n=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()||(r.dragIndex=-1,r.dragOverIndex=-1,r.activeIndex=-1,n&&n!==r&&(n.dragIndex=-1,n.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 r=this.sortableService.target,n=this.sortableService.getSource(),a=Object.assign({},this._localData[e.index]),o=n._localData[n.dragIndex];this.setItemData(o,e.index);var s=n.onDragEndSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(a,e.index)})),d=r.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)}},n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"navigatable",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"animation",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"disabledIndexes",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"zone",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"acceptZones",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"itemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"emptyItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"activeItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"disabledItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"itemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"activeItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"emptyItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"disabledItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"emptyText",void 0),n.__decorate([a.ContentChildren(a.TemplateRef,{descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"defaultTemplateRef",void 0),n.__decorate([a.ContentChildren(b.ItemTemplateDirective,{read:a.TemplateRef,descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),n.__decorate([a.ContentChildren(b.PlaceholderTemplateDirective,{read:a.TemplateRef,descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"placeholderTemplateDirectiveRef",void 0),n.__decorate([a.ViewChildren("itemWrapper"),n.__metadata("design:type",a.QueryList)],e.prototype,"itemWrappers",void 0),n.__decorate([a.ViewChildren(g.DraggableDirective),n.__metadata("design:type",a.QueryList)],e.prototype,"draggables",void 0),n.__decorate([a.ViewChild("hint",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"hint",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragStart",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragEnd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragOver",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragLeave",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataMove",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataAdd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataRemove",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"activeIndex",void 0),n.__decorate([a.HostBinding("style.touch-action"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=t=n.__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 '}),n.__metadata("design:paramtypes",[a.NgZone,d.LocalizationService,a.ChangeDetectorRef,a.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(9),o=function(){function e(e,t,r){this.parent=e,this.el=t,this.renderer=r}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"))},n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"_focused",null),n.__decorate([a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"_disabled",null),n.__decorate([a.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"display",null),e=n.__decorate([a.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[i.SortableContainer,a.ElementRef,a.Renderer2])],e)}();t.DraggableDirective=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=function(){function e(){}return e=n.__decorate([a.Injectable()],e)}();t.SortableContainer=i},function(e,t){e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(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,r){if(n.isDocumentAvailable()){var a=document.elementFromPoint(e,r);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,r){var n;if(e.changedTouches){var a=e.changedTouches[0];n=t.draggableFromPoint(a.clientX,a.clientY)}else n=t.draggableFromPoint(e.clientX,e.clientY);return r.draggables.toArray()[n?n.index:-1]},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),r=e.getAttribute("tabIndex"),n="-1"===r,a=null!==r&&!n;return o.test(t)&&(a=!e.disabled&&!n),a}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var r=s(t);return Boolean(s(e.className).find((function(e){return r.indexOf(e)>=0})))};var l=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var r=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||l(e)}));return r&&!l(r)};var d=function(){if(!n.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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.NavigateEvent=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.DraggableEvent=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.DragStartEvent=a;var i=function(e){function t(t){var r=e.call(this,t)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a);t.DragOverEvent=i;var o=function(e){function t(t){var r=e.call(this,t)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(i);t.DragEndEvent=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(5),o=r(4),s=r(16),l=r(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 r=e;r<=t.data.length;r++)if(t.itemEnabled(r))return r},e.prototype.addItem=function(e,t){var r=e.index,n=this.sortableService.getSource().data[e.oldIndex],a=new s.DataAddEvent({index:r,dataItem:n});return t.dataAdd.emit(a),a.isDefaultPrevented()||(r===t.itemWrappers.length-1&&r++,t.addDataItem(n,r)),!a.isDefaultPrevented()},e.prototype.removeItem=function(e,t){var r=this.sortableService.originDraggable,n=new s.DataRemoveEvent({index:e.oldIndex,dataItem:t.data[e.oldIndex]});return t.dataRemove.emit(n),n.isDefaultPrevented()||(r&&r.parent===t?t.hideItem(e.oldIndex,!0):t.removeDataItem(e.oldIndex)),!n.isDefaultPrevented()},e.prototype.moveItem=function(e,t){if(e.index===e.oldIndex)return!1;var r=new s.DataMoveEvent({dataItem:t.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});return t.dataMove.emit(r),r.isDefaultPrevented()||t.moveItem(e.oldIndex,e.index),!r.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 r=e.sortableService.originDraggable,n=e.sortableService.getSource();r.parent!==e.sortableService.target&&((!!t.target&&(t.target.isDraggable||t.target.isDraggableChild)||r.parent!==n)&&r.parent!==e.sortableService.target&&r.parent.removeDataItem(r.index),e.sortableService.originDraggable=null)}))},e.prototype.onDragOver=function(e){var t=this.sortableService.getSource(),r=this.sortableService.target,n=r.draggables.toArray();e.isDefaultPrevented()||(e.preventDefault(),r===t?(n[e.index]!==this.lastTarget&&this.moveItem(e,r),this.lastTarget=void 0):(r.itemEnabled(e.index)||(e.index=this.nextEnabledIndex(e.index,r)),this.addItem(e,r)&&this.removeItem(e,t)&&(this.lastTarget=r.draggables.toArray()[e.index],this.removeOriginDraggable(),r.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()},n.__decorate([a.Input("kendoSortableBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=n.__decorate([a.Directive({selector:"[kendoSortableBinding]"}),n.__metadata("design:paramtypes",[i.SortableComponent,o.SortableService])],e)}();t.SortableBindingDirective=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(3),i=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataAddEvent=i;var o=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataRemoveEvent=o;var s=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataMoveEvent=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5);t.SortableComponent=n.SortableComponent;var a=r(22);t.SortableModule=a.SortableModule;var i=r(3);t.PreventableEvent=i.PreventableEvent;var o=r(13);t.DraggableEvent=o.DraggableEvent;var s=r(14);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var l=r(12);t.NavigateEvent=l.NavigateEvent;var d=r(16);t.DataMoveEvent=d.DataMoveEvent;var c=r(8);t.DraggableDirective=c.DraggableDirective;var u=r(15);t.SortableBindingDirective=u.SortableBindingDirective;var p=r(2);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var g=r(2);t.ItemTemplateDirective=g.ItemTemplateDirective;var v=r(4);t.SortableService=v.SortableService;var b=r(9);t.SortableContainer=b.SortableContainer},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1620216298,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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(23),o=r(5),s=r(4),l=r(8),d=r(2),c=r(2),u=r(15),p=[o.SortableComponent,l.DraggableDirective,d.PlaceholderTemplateDirective,c.ItemTemplateDirective,u.SortableBindingDirective],g=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[p],exports:[p],imports:[i.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=g},function(e,t){e.exports=l}])}));
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(["tslib","@angular/core","@progress/kendo-angular-common","rxjs/operators","rxjs","@progress/kendo-angular-l10n","@progress/kendo-licensing","@telerik/kendo-draggable","@angular/common"],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.tslib,e["@angular/core"],e["@progress/kendo-angular-common"],e["rxjs/operators"],e.rxjs,e["@progress/kendo-angular-l10n"],e["@progress/kendo-licensing"],e["@telerik/kendo-draggable"],e["@angular/common"])}(window,(function(e,t,r,n,a,i,o,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=17)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoSortableItemTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.ItemTemplateDirective=i;var o=function(){function e(e){this.templateRef=e}return e=n.__decorate([a.Directive({selector:"[kendoSortablePlaceholderTemplate]"}),n.__metadata("design:paramtypes",[a.TemplateRef])],e)}();t.PlaceholderTemplateDirective=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.prevented=!1}return e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}();t.PreventableEvent=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(6),o=r(11),s=r(10),l=r(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 r=t.getAttribute("data-sortable-id"),n=t.getAttribute("data-sortable-index");if(r){var a=this.sortableRegister[r];if(a)return{component:a,index:parseInt(n,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 r=o.draggableFromEvent(e,t.targetSortable.component);t.source.endDrag({target:r,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 r=t.getSortableComponentFromTouch(e);if((!r||r&&r.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})),r&&r.component){var n=o.draggableFromEvent(e,r.component);r.component.drag({target:n,originalEvent:e})}t.source.markForCheck()}}))},e=n.__decorate([a.Injectable(),n.__metadata("design:paramtypes",[a.NgZone])],e)}();t.SortableService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(10),o=r(6),s=r(11),l=r(7),d=r(18),c=r(19),u=r(20),p=r(4),g=r(8),v=r(9),b=r(2),m=r(12),h=r(13),f=r(14),y=r(21),_=function(){function e(e,t,r,n,o){this.ngZone=e,this.localization=t,this.changeDetector=r,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=n.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,r){e._localData.push({item:t,active:!1,disabled:!e.itemEnabled(r),index:r,hidden:!1})}))},e.prototype.startDrag=function(e){var t=new h.DraggableEvent(e);this.onDragStartSubject.next(t);var r=t.isDefaultPrevented();return r||(this.offsetParent=s.relativeContextElement(this.wrapper)),r},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,r=this.navigable&&t>=37&&t<=40,n=-1!==this.activeIndex;if(r&&n){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(r){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 r=this,n=this.sortableService.originDraggable;if(n&&n.parent===this){var a=this.animation;this.hideItem(n.index,!1),this.animation=!1,this.moveItem(n.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(){r.sortableService.target=r,r.sortableService.setSource(r),r.sortableService.activeDraggable=r.draggables.toArray()[t],r.sortableService.lastDraggable=null}))},e.prototype.moveItem=function(e,t){var r=this;if(t!==e){for(var n,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}),n=this._localData[d].index,this._localData[d].index=this._localData[a].index,this._localData[a].index=n,n=this._localData[d],this._localData[d]=this._localData[a],this._localData[a]=n,n=this.data[d],this.data[d]=this.data[a],this.data[a]=n,d=a);this.dragIndex=a,this.dragOverIndex=a,this.activeIndex=a,this.animation&&setTimeout((function(){s.push({next:o,prev:a}),r.animating=!0,r.animate(s)})),this.ngZone.onStable.pipe(l.take(1)).subscribe((function(){r.sortableService.activeDraggable=r.draggables.toArray()[a],r.sortableService.lastDraggable=null}))}},e.prototype.animate=function(e){var t=this,r=this.itemWrappers.toArray(),n=[],a=[],i=this;clearTimeout(this._animating);for(var o=0;o<e.length;o++)n.push(r[e[o].prev].nativeElement.getBoundingClientRect()),a.push(r[e[o].next].nativeElement.getBoundingClientRect());for(o=0;o<e.length;o++){var s=e[o].prev,l=a[o],d=n[o],c=r[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 n=e[t].prev,a=r[n].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,r){var n=e&&e.style;n&&(t in n||(t="-webkit-"+t),n[t]=r)},e.prototype.subscribeEvents=function(){var e=this;this.localizationChangeSubscription=this.localization.changes.subscribe((function(t){var r=t.rtl;return e.direction=r?"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 r=new f.DragStartEvent({index:t.target.index});e.dragStart.emit(r),r.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 r=e.sortableService.originDraggable,n=t.target.index;r.hidden&&r.parent===e&&r.index<t.target.index&&(n=t.target.index-1),e.sortableService.target=e;var a=e.sortableService.activeDraggable?e.sortableService.activeDraggable.index:0,i=new f.DragOverEvent({index:n,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 r=e.sortableService.getSource();if(r){var n=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()||(r.dragIndex=-1,r.dragOverIndex=-1,r.activeIndex=-1,n&&n!==r&&(n.dragIndex=-1,n.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 r=this.sortableService.target,n=this.sortableService.getSource(),a=Object.assign({},this._localData[e.index]),o=n._localData[n.dragIndex];this.setItemData(o,e.index);var s=n.onDragEndSubject.pipe(l.take(1)).subscribe((function(){t.setItemData(a,e.index)})),d=r.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)}},n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"tabIndex",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"navigable",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[Boolean])],e.prototype,"navigatable",null),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"animation",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"disabledIndexes",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"zone",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Array)],e.prototype,"acceptZones",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"itemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"emptyItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"activeItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"disabledItemStyle",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"itemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"activeItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"emptyItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Object)],e.prototype,"disabledItemClass",void 0),n.__decorate([a.Input(),n.__metadata("design:type",String)],e.prototype,"emptyText",void 0),n.__decorate([a.ContentChildren(a.TemplateRef,{descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"defaultTemplateRef",void 0),n.__decorate([a.ContentChildren(b.ItemTemplateDirective,{read:a.TemplateRef,descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"itemTemplateDirectiveRef",void 0),n.__decorate([a.ContentChildren(b.PlaceholderTemplateDirective,{read:a.TemplateRef,descendants:!1}),n.__metadata("design:type",a.QueryList)],e.prototype,"placeholderTemplateDirectiveRef",void 0),n.__decorate([a.ViewChildren("itemWrapper"),n.__metadata("design:type",a.QueryList)],e.prototype,"itemWrappers",void 0),n.__decorate([a.ViewChildren(g.DraggableDirective),n.__metadata("design:type",a.QueryList)],e.prototype,"draggables",void 0),n.__decorate([a.ViewChild("noDataRef",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"noDataContainer",void 0),n.__decorate([a.ViewChild("hint",{static:!1}),n.__metadata("design:type",a.ElementRef)],e.prototype,"hint",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragStart",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragEnd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragOver",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dragLeave",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataMove",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataAdd",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"dataRemove",void 0),n.__decorate([a.Output(),n.__metadata("design:type",a.EventEmitter)],e.prototype,"navigate",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"activeIndex",void 0),n.__decorate([a.HostBinding("style.touch-action"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"touchAction",null),n.__decorate([a.HostBinding("attr.dir"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[])],e.prototype,"dir",null),e=t=n.__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 '}),n.__metadata("design:paramtypes",[a.NgZone,d.LocalizationService,a.ChangeDetectorRef,a.ElementRef,p.SortableService])],e)}();t.SortableComponent=_},function(e,t){e.exports=r},function(e,t){e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(9),o=function(){function e(e,t,r){this.parent=e,this.el=t,this.renderer=r}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"))},n.__decorate([a.Input(),n.__metadata("design:type",Number)],e.prototype,"index",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"hidden",void 0),n.__decorate([a.Input(),n.__metadata("design:type",Boolean)],e.prototype,"disabled",void 0),n.__decorate([a.HostBinding("class.k-state-focused"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"_focused",null),n.__decorate([a.HostBinding("attr.aria-disabled"),n.__metadata("design:type",Boolean),n.__metadata("design:paramtypes",[])],e.prototype,"_disabled",null),n.__decorate([a.HostBinding("style.display"),n.__metadata("design:type",String),n.__metadata("design:paramtypes",[String])],e.prototype,"display",null),e=n.__decorate([a.Directive({selector:"[kendoDraggable]"}),n.__metadata("design:paramtypes",[i.SortableContainer,a.ElementRef,a.Renderer2])],e)}();t.DraggableDirective=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=function(){function e(){}return e=n.__decorate([a.Injectable()],e)}();t.SortableContainer=i},function(e,t){e.exports=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(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,r){if(n.isDocumentAvailable()){var a=document.elementFromPoint(e,r);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,r){var n;if(e.changedTouches){var a=e.changedTouches[0];n=t.draggableFromPoint(a.clientX,a.clientY)}else n=t.draggableFromPoint(e.clientX,e.clientY);return r.draggables.toArray()[n?n.index:-1]},t.isFocusable=function(e){if(e.tagName){var t=e.tagName.toLowerCase(),r=e.getAttribute("tabIndex"),n="-1"===r,a=null!==r&&!n;return o.test(t)&&(a=!e.disabled&&!n),a}return!1};var s=function(e){return String(e).trim().split(" ")};t.hasClasses=function(e,t){var r=s(t);return Boolean(s(e.className).find((function(e){return r.indexOf(e)>=0})))};var l=t.matchesNodeName("kendo-sortable");t.widgetTarget=function(e){var r=t.closest(e,(function(e){return t.hasClasses(e,"k-widget")||l(e)}));return r&&!l(r)};var d=function(){if(!n.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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.NavigateEvent=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.DraggableEvent=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(r(3).PreventableEvent);t.DragStartEvent=a;var i=function(e){function t(t){var r=e.call(this,t)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a);t.DragOverEvent=i;var o=function(e){function t(t){var r=e.call(this,t)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(i);t.DragEndEvent=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(5),o=r(4),s=r(16),l=r(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 r=e;r<=t.data.length;r++)if(t.itemEnabled(r))return r},e.prototype.addItem=function(e,t){var r=e.index,n=this.sortableService.getSource().data[e.oldIndex],a=new s.DataAddEvent({index:r,dataItem:n});return t.dataAdd.emit(a),a.isDefaultPrevented()||(r!==t.itemWrappers.length-1||t.noDataContainer||r++,t.addDataItem(n,r)),!a.isDefaultPrevented()},e.prototype.removeItem=function(e,t){var r=this.sortableService.originDraggable,n=new s.DataRemoveEvent({index:e.oldIndex,dataItem:t.data[e.oldIndex]});return t.dataRemove.emit(n),n.isDefaultPrevented()||(r&&r.parent===t?t.hideItem(e.oldIndex,!0):t.removeDataItem(e.oldIndex)),!n.isDefaultPrevented()},e.prototype.moveItem=function(e,t){if(e.index===e.oldIndex)return!1;var r=new s.DataMoveEvent({dataItem:t.data[e.oldIndex],index:e.index,oldIndex:e.oldIndex});return t.dataMove.emit(r),r.isDefaultPrevented()||t.moveItem(e.oldIndex,e.index),!r.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 r=e.sortableService.originDraggable,n=e.sortableService.getSource();r.parent!==e.sortableService.target&&((!!t.target&&(t.target.isDraggable||t.target.isDraggableChild)||r.parent!==n)&&r.parent!==e.sortableService.target&&r.parent.removeDataItem(r.index),e.sortableService.originDraggable=null)}))},e.prototype.onDragOver=function(e){var t=this.sortableService.getSource(),r=this.sortableService.target,n=r.draggables.toArray();e.isDefaultPrevented()||(e.preventDefault(),r===t?(n[e.index]!==this.lastTarget&&this.moveItem(e,r),this.lastTarget=void 0):(r.itemEnabled(e.index)||(e.index=this.nextEnabledIndex(e.index,r)),this.addItem(e,r)&&this.removeItem(e,t)&&(this.lastTarget=r.draggables.toArray()[e.index],this.removeOriginDraggable(),r.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()},n.__decorate([a.Input("kendoSortableBinding"),n.__metadata("design:type",Array),n.__metadata("design:paramtypes",[Array])],e.prototype,"data",null),e=n.__decorate([a.Directive({selector:"[kendoSortableBinding]"}),n.__metadata("design:paramtypes",[i.SortableComponent,o.SortableService])],e)}();t.SortableBindingDirective=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(3),i=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataAddEvent=i;var o=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataRemoveEvent=o;var s=function(e){function t(t){var r=e.call(this)||this;return Object.assign(r,t),r}return n.__extends(t,e),t}(a.PreventableEvent);t.DataMoveEvent=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(5);t.SortableComponent=n.SortableComponent;var a=r(22);t.SortableModule=a.SortableModule;var i=r(3);t.PreventableEvent=i.PreventableEvent;var o=r(13);t.DraggableEvent=o.DraggableEvent;var s=r(14);t.DragStartEvent=s.DragStartEvent,t.DragEndEvent=s.DragEndEvent,t.DragOverEvent=s.DragOverEvent;var l=r(12);t.NavigateEvent=l.NavigateEvent;var d=r(16);t.DataMoveEvent=d.DataMoveEvent;var c=r(8);t.DraggableDirective=c.DraggableDirective;var u=r(15);t.SortableBindingDirective=u.SortableBindingDirective;var p=r(2);t.PlaceholderTemplateDirective=p.PlaceholderTemplateDirective;var g=r(2);t.ItemTemplateDirective=g.ItemTemplateDirective;var v=r(4);t.SortableService=v.SortableService;var b=r(9);t.SortableContainer=b.SortableContainer},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-angular-sortable",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635433806,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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),a=r(1),i=r(23),o=r(5),s=r(4),l=r(8),d=r(2),c=r(2),u=r(15),p=[o.SortableComponent,l.DraggableDirective,d.PlaceholderTemplateDirective,c.ItemTemplateDirective,u.SortableBindingDirective],g=function(){function e(){}return e=n.__decorate([a.NgModule({declarations:[p],exports:[p],imports:[i.CommonModule],providers:[s.SortableService]})],e)}();t.SortableModule=g},function(e,t){e.exports=l}])}));
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  import * as tslib_1 from "tslib";
@@ -45,7 +45,7 @@ var SortableBindingDirective = /** @class */ (function () {
45
45
  var addEvent = new DataAddEvent({ index: index, dataItem: dataItem });
46
46
  sortable.dataAdd.emit(addEvent);
47
47
  if (!addEvent.isDefaultPrevented()) {
48
- if (index === sortable.itemWrappers.length - 1) {
48
+ if (index === sortable.itemWrappers.length - 1 && !sortable.noDataContainer) {
49
49
  index++;
50
50
  }
51
51
  sortable.addDataItem(dataItem, index);
@@ -1,4 +1,4 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
  *-------------------------------------------------------------------------------------------*/
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  import * as tslib_1 from "tslib";
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  import * as tslib_1 from "tslib";
package/dist/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2020 Progress Software Corporation. All rights reserved.
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
5
  /**