devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 13.7 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/sortable"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/sortable",["exports","@angular/platform-browser","@angular/core","devextreme/ui/sortable","devextreme-angular/core","devextreme-angular/ui/nested"],t):t(((e=e||self)["devextreme-angular"]=e["devextreme-angular"]||{},e["devextreme-angular"].ui=e["devextreme-angular"].ui||{},e["devextreme-angular"].ui.sortable={}),e.ng.platformBrowser,e.ng.core,e.DxSortable,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,r,i){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var p=function(e,t){return(p=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 a(e,t,n,o){var r,i=arguments.length,p=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(p=(i<3?r(p):i>3?r(t,n,p):r(t,n))||p);return i>3&&p&&Object.defineProperty(t,n,p),p}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}
/*!
* devextreme-angular
* Version: 20.2.5
* Build date: Fri Jan 15 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file in the root of the project for details.
*
* https://github.com/DevExpress/devextreme-angular
*/
var s=function(e){function i(t,n,o,r,i,p,a){var u=e.call(this,t,n,o,r,p,a)||this;return u._createEventEmitters([{subscribe:"add",emit:"onAdd"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dragChange",emit:"onDragChange"},{subscribe:"dragEnd",emit:"onDragEnd"},{subscribe:"dragMove",emit:"onDragMove"},{subscribe:"dragStart",emit:"onDragStart"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"remove",emit:"onRemove"},{subscribe:"reorder",emit:"onReorder"},{emit:"allowDropInsideItemChange"},{emit:"allowReorderingChange"},{emit:"autoScrollChange"},{emit:"boundaryChange"},{emit:"containerChange"},{emit:"cursorOffsetChange"},{emit:"dataChange"},{emit:"dragDirectionChange"},{emit:"dragTemplateChange"},{emit:"dropFeedbackModeChange"},{emit:"elementAttrChange"},{emit:"filterChange"},{emit:"groupChange"},{emit:"handleChange"},{emit:"heightChange"},{emit:"itemOrientationChange"},{emit:"moveItemOnDropChange"},{emit:"rtlEnabledChange"},{emit:"scrollSensitivityChange"},{emit:"scrollSpeedChange"},{emit:"widthChange"}]),i.setHost(u),u}var s,d;return function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(i,e),Object.defineProperty(i.prototype,"allowDropInsideItem",{get:function(){return this._getOption("allowDropInsideItem")},set:function(e){this._setOption("allowDropInsideItem",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allowReordering",{get:function(){return this._getOption("allowReordering")},set:function(e){this._setOption("allowReordering",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoScroll",{get:function(){return this._getOption("autoScroll")},set:function(e){this._setOption("autoScroll",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"boundary",{get:function(){return this._getOption("boundary")},set:function(e){this._setOption("boundary",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"container",{get:function(){return this._getOption("container")},set:function(e){this._setOption("container",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOffset",{get:function(){return this._getOption("cursorOffset")},set:function(e){this._setOption("cursorOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this._getOption("data")},set:function(e){this._setOption("data",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragDirection",{get:function(){return this._getOption("dragDirection")},set:function(e){this._setOption("dragDirection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dragTemplate",{get:function(){return this._getOption("dragTemplate")},set:function(e){this._setOption("dragTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFeedbackMode",{get:function(){return this._getOption("dropFeedbackMode")},set:function(e){this._setOption("dropFeedbackMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filter",{get:function(){return this._getOption("filter")},set:function(e){this._setOption("filter",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"group",{get:function(){return this._getOption("group")},set:function(e){this._setOption("group",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"handle",{get:function(){return this._getOption("handle")},set:function(e){this._setOption("handle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemOrientation",{get:function(){return this._getOption("itemOrientation")},set:function(e){this._setOption("itemOrientation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"moveItemOnDrop",{get:function(){return this._getOption("moveItemOnDrop")},set:function(e){this._setOption("moveItemOnDrop",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollSensitivity",{get:function(){return this._getOption("scrollSensitivity")},set:function(e){this._setOption("scrollSensitivity",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollSpeed",{get:function(){return this._getOption("scrollSpeed")},set:function(e){this._setOption("scrollSpeed",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),i.prototype._createInstance=function(e,t){return new o(e,t)},i.prototype.ngOnDestroy=function(){this._destroyWidget()},i.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:r.DxTemplateHost},{type:r.WatcherHelper},{type:r.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],i.prototype,"allowDropInsideItem",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],i.prototype,"allowReordering",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],i.prototype,"autoScroll",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"boundary",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"container",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"cursorOffset",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"data",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"dragDirection",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"dragTemplate",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"dropFeedbackMode",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"elementAttr",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"filter",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"group",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"handle",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"height",null),a([n.Input(),u("design:type",String),u("design:paramtypes",[String])],i.prototype,"itemOrientation",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],i.prototype,"moveItemOnDrop",null),a([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],i.prototype,"rtlEnabled",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],i.prototype,"scrollSensitivity",null),a([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],i.prototype,"scrollSpeed",null),a([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],i.prototype,"width",null),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onAdd",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onDisposing",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onDragChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onDragEnd",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onDragMove",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onDragStart",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onInitialized",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onOptionChanged",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onRemove",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"onReorder",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"allowDropInsideItemChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"allowReorderingChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"autoScrollChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"boundaryChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"containerChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"cursorOffsetChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"dataChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"dragDirectionChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"dragTemplateChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"dropFeedbackModeChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"elementAttrChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"filterChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"groupChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"handleChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"heightChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"itemOrientationChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"moveItemOnDropChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"rtlEnabledChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"scrollSensitivityChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"scrollSpeedChange",void 0),a([n.Output(),u("design:type",n.EventEmitter)],i.prototype,"widthChange",void 0),i=a([n.Component({selector:"dx-sortable",template:"<ng-content></ng-content>",providers:[r.DxTemplateHost,r.WatcherHelper,r.NestedOptionHost]}),(s=6,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,s)}),u("design:paramtypes",[n.ElementRef,n.NgZone,r.DxTemplateHost,r.WatcherHelper,r.NestedOptionHost,t.TransferState,Object])],i)}(r.DxComponent),d=function(){function e(){}return e=a([n.NgModule({imports:[i.DxoCursorOffsetModule,r.DxIntegrationModule,r.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,i.DxoCursorOffsetModule,r.DxTemplateModule]})],e)}();e.DxSortableComponent=s,e.DxSortableModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-sortable.umd.min.js.map