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gB;AAChB;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD;AACjD;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,uEAAuE;AACvE,2CAA2C,gEAAyB,GAAG,iEAAiE;AACxI,eAAe,mDAAmD,+DAAwB;AAC1F,cAAc,qDAAU;AACxB,KAAK,iBAAiB,YAAY,UAAU;AAC5C,IAAI,KAAK,EAAE,EAWV;;AAED;AACA;AACA,cAAc,wFAAwF;AACtG;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,uDAAY;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,GAAG;AACtB,oBAAoB;AACpB;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA,mBAAmB,GAAG;AACtB;AACA,mBAAmB,GAAG;AACtB,oBAAoB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,eAAe,GAAG;AAClB,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,eAAe,GAAG;AAClB,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,GAAG;AACtB;AACA;AACA,mBAAmB,GAAG;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,GAAG;AAC1B,uBAAuB,GAAG;AAC1B,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,uBAAuB,GAAG;AAC1B,uBAAuB,GAAG;AAC1B,wBAAwB;AACxB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA,8BAA8B;AAC9B;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iEAAiE,oCAAoC,+DAAwB;AAC7H,uCAAuC,+DAAwB,GAAG,iEAAiE,0VAA0V,aAAa,sBAAsB,wCAAwC,gEAAyB;AACjkB;AACA,yBAAyB,6DAAiB;AAC1C,6BAA6B,yDAAU;AACvC,4BAA4B;AAC5B;AACA;AACA;AACA,4nBAA4nB;AAC5nB,QAAQ,4DAAqB;AAC7B,QAAQ,wDAAiB,mFAAmF,iCAAiC,sFAAsF,iCAAiC,4EAA4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B,maAAma,0BAA0B,iCAAiC;;;;;;;;;;;;;;ACA16B,iEAAe,UAAU,YAAY,qBAAqB,oBAAoB,6EAA6E,sCAAsC,2GAA2G,iDAAiD,KAAK,KAAK;;;;;;;;;;;;;;ACAvW,iEAAe,ybAAyb,yBAAyB,wbAAwb,0BAA0B,iCAAiC;;;;;;;;;;;;;;ACAp9B,iEAAe,UAAU,YAAY,qBAAqB,oBAAoB,qGAAqG,iDAAiD,0CAA0C,0BAA0B,WAAW,yBAAyB,WAAW,wBAAwB,QAAQ,+CAA+C,wBAAwB,WAAW,sBAAsB,WAAW,uBAAuB,QAAQ,KAAK,KAAK;;;;;;;;;;;;;;ACAnhB,iEAAe,0EAA0E,OAAO,IAAI,YAAY,yeAAye,yBAAyB,maAAma,0BAA0B,qCAAqC;;;;;;;;;;;;;;ACAplC,iEAAe,UAAU,YAAY,qBAAqB,oBAAoB,iGAAiG,mDAAmD,kHAAkH,wDAAwD,KAAK,KAAK;;;;;;;;;;;;;;ACAtZ,iEAAe,4BAA4B,iBAAiB,8BAA8B,mFAAmF,iBAAiB,qBAAqB,mBAAmB,kDAAkD,+BAA+B,KAAK","sources":["./node_modules/ngx-bootstrap/__ivy_ngcc__/sortable/fesm2015/ngx-bootstrap-sortable.js","./src/app/views/ui-elements/sortable/demo-sortable.module.ts","./src/app/views/ui-elements/sortable/demo-sortable.routes.ts","./src/app/views/ui-elements/sortable/demos/accessibility/accessibility.ts","./src/app/views/ui-elements/sortable/demos/accessibility/accessibility.html","./src/app/views/ui-elements/sortable/demos/basic/basic.component.ts","./src/app/views/ui-elements/sortable/demos/basic/basic.component.html","./src/app/views/ui-elements/sortable/demos/complex-datamodel/complex-datamodel.component.ts","./src/app/views/ui-elements/sortable/demos/complex-datamodel/complex-datamodel.component.html","./src/app/views/ui-elements/sortable/demos/custom-item-template/custom-item-template.ts","./src/app/views/ui-elements/sortable/demos/custom-item-template/custom-item-template.html","./src/app/views/ui-elements/sortable/sortable-section.component.ts","./src/app/views/ui-elements/sortable/sortable-section.component.html","./src/app/views/ui-elements/sortable/sortable-section.list.ts","webpack:///./src/app/views/ui-elements/sortable/demos/basic/basic.component.html?c8f6","webpack:///./src/app/views/ui-elements/sortable/demos/basic/basic.component.ts?9569","webpack:///./src/app/views/ui-elements/sortable/demos/complex-datamodel/complex-datamodel.component.html?1180","webpack:///./src/app/views/ui-elements/sortable/demos/complex-datamodel/complex-datamodel.component.ts?0a83","webpack:///./src/app/views/ui-elements/sortable/demos/custom-item-template/custom-item-template.html?0fd6","webpack:///./src/app/views/ui-elements/sortable/demos/custom-item-template/custom-item-template.ts?4dea","./src/app/views/ui-elements/sortable/docs/usage.md"],"sourcesContent":["import { Injectable, EventEmitter, Component, forwardRef, Input, Output, NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { Subject } from 'rxjs';\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nimport * as ɵngcc0 from '@angular/core';\nimport * as ɵngcc1 from '@angular/common';\n\nfunction SortableComponent_div_1_Template(rf, ctx) { if (rf & 1) {\n const _r5 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 4);\n ɵngcc0.ɵɵlistener(\"dragover\", function SortableComponent_div_1_Template_div_dragover_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r5); const ctx_r4 = ɵngcc0.ɵɵnextContext(); return ctx_r4.onItemDragover($event, 0); })(\"dragenter\", function SortableComponent_div_1_Template_div_dragenter_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r5); const ctx_r6 = ɵngcc0.ɵɵnextContext(); return ctx_r6.cancelEvent($event); });\n ɵngcc0.ɵɵtext(1);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const ctx_r0 = ɵngcc0.ɵɵnextContext();\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx_r0.placeholderClass)(\"ngStyle\", ctx_r0.placeholderStyle);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵtextInterpolate(ctx_r0.placeholderItem);\n} }\nfunction SortableComponent_div_2_ng_template_1_Template(rf, ctx) { }\nconst _c0 = function (a0, a1) { return [a0, a1]; };\nconst _c1 = function (a0, a1) { return { item: a0, index: a1 }; };\nfunction SortableComponent_div_2_Template(rf, ctx) { if (rf & 1) {\n const _r11 = ɵngcc0.ɵɵgetCurrentView();\n ɵngcc0.ɵɵelementStart(0, \"div\", 5);\n ɵngcc0.ɵɵlistener(\"dragstart\", function SortableComponent_div_2_Template_div_dragstart_0_listener($event) { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r11); const item_r7 = restoredCtx.$implicit; const i_r8 = restoredCtx.index; const ctx_r10 = ɵngcc0.ɵɵnextContext(); return ctx_r10.onItemDragstart($event, item_r7, i_r8); })(\"dragend\", function SortableComponent_div_2_Template_div_dragend_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r11); const ctx_r12 = ɵngcc0.ɵɵnextContext(); return ctx_r12.resetActiveItem($event); })(\"dragover\", function SortableComponent_div_2_Template_div_dragover_0_listener($event) { const restoredCtx = ɵngcc0.ɵɵrestoreView(_r11); const i_r8 = restoredCtx.index; const ctx_r13 = ɵngcc0.ɵɵnextContext(); return ctx_r13.onItemDragover($event, i_r8); })(\"dragenter\", function SortableComponent_div_2_Template_div_dragenter_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r11); const ctx_r14 = ɵngcc0.ɵɵnextContext(); return ctx_r14.cancelEvent($event); });\n ɵngcc0.ɵɵtemplate(1, SortableComponent_div_2_ng_template_1_Template, 0, 0, \"ng-template\", 6);\n ɵngcc0.ɵɵelementEnd();\n} if (rf & 2) {\n const item_r7 = ctx.$implicit;\n const i_r8 = ctx.index;\n const ctx_r1 = ɵngcc0.ɵɵnextContext();\n const _r2 = ɵngcc0.ɵɵreference(4);\n ɵngcc0.ɵɵproperty(\"ngClass\", ɵngcc0.ɵɵpureFunction2(5, _c0, ctx_r1.itemClass, i_r8 === ctx_r1.activeItem ? ctx_r1.itemActiveClass : \"\"))(\"ngStyle\", ctx_r1.getItemStyle(i_r8 === ctx_r1.activeItem));\n ɵngcc0.ɵɵattribute(\"aria-grabbed\", i_r8 === ctx_r1.activeItem);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.itemTemplate || _r2)(\"ngTemplateOutletContext\", ɵngcc0.ɵɵpureFunction2(8, _c1, item_r7, i_r8));\n} }\nfunction SortableComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵtext(0);\n} if (rf & 2) {\n const item_r15 = ctx.item;\n ɵngcc0.ɵɵtextInterpolate(item_r15.value);\n} }\nclass DraggableItemService {\n constructor() {\n this.onCapture = new Subject();\n }\n /**\n * @param {?} item\n * @return {?}\n */\n dragStart(item) {\n this.draggableItem = item;\n }\n /**\n * @return {?}\n */\n getItem() {\n return this.draggableItem;\n }\n /**\n * @param {?} overZoneIndex\n * @param {?} newIndex\n * @return {?}\n */\n captureItem(overZoneIndex, newIndex) {\n if (this.draggableItem.overZoneIndex !== overZoneIndex) {\n this.draggableItem.lastZoneIndex = this.draggableItem.overZoneIndex;\n this.draggableItem.overZoneIndex = overZoneIndex;\n this.onCapture.next(this.draggableItem);\n this.draggableItem = Object.assign({}, this.draggableItem, {\n overZoneIndex,\n i: newIndex\n });\n }\n return this.draggableItem;\n }\n /**\n * @return {?}\n */\n onCaptureItem() {\n return this.onCapture;\n }\n}\nDraggableItemService.ɵfac = function DraggableItemService_Factory(t) { return new (t || DraggableItemService)(); };\nDraggableItemService.ɵprov = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjectable({ token: DraggableItemService, factory: DraggableItemService.ɵfac });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(DraggableItemService, [{\n type: Injectable\n }], function () { return []; }, null); })();\nif (false) {\n /**\n * @type {?}\n * @private\n */\n DraggableItemService.prototype.draggableItem;\n /**\n * @type {?}\n * @private\n */\n DraggableItemService.prototype.onCapture;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n/* tslint:disable */\n/* tslint:enable */\nclass SortableComponent {\n /**\n * @param {?} transfer\n */\n constructor(transfer) {\n /**\n * class name for items wrapper\n */\n this.wrapperClass = '';\n /**\n * style object for items wrapper\n */\n this.wrapperStyle = {};\n /**\n * class name for item\n */\n this.itemClass = '';\n /**\n * style object for item\n */\n this.itemStyle = {};\n /**\n * class name for active item\n */\n this.itemActiveClass = '';\n /**\n * style object for active item\n */\n this.itemActiveStyle = {};\n /**\n * class name for placeholder\n */\n this.placeholderClass = '';\n /**\n * style object for placeholder\n */\n this.placeholderStyle = {};\n /**\n * placeholder item which will be shown if collection is empty\n */\n this.placeholderItem = '';\n /**\n * fired on array change (reordering, insert, remove), same as ngModelChange.\n * Returns new items collection as a payload.\n */\n /* tslint:disable-next-line: no-any */\n this.onChange = new EventEmitter();\n this.showPlaceholder = false;\n this.activeItem = -1;\n /* tslint:disable-next-line: no-any */\n this.onTouched = Function.prototype;\n /* tslint:disable-next-line: no-any */\n this.onChanged = Function.prototype;\n this.transfer = transfer;\n this.currentZoneIndex = SortableComponent.globalZoneIndex++;\n this.transfer\n .onCaptureItem()\n .subscribe((/**\n * @param {?} item\n * @return {?}\n */\n (item) => this.onDrop(item)));\n }\n /**\n * @return {?}\n */\n get items() {\n return this._items;\n }\n /**\n * @param {?} value\n * @return {?}\n */\n set items(value) {\n this._items = value;\n /** @type {?} */\n const out = this.items.map((/**\n * @param {?} x\n * @return {?}\n */\n (x) => x.initData));\n this.onChanged(out);\n this.onChange.emit(out);\n }\n /**\n * @param {?} event\n * @param {?} item\n * @param {?} i\n * @return {?}\n */\n onItemDragstart(event, item, i) {\n this.initDragstartEvent(event);\n this.onTouched();\n this.transfer.dragStart({\n event,\n item,\n i,\n initialIndex: i,\n lastZoneIndex: this.currentZoneIndex,\n overZoneIndex: this.currentZoneIndex\n });\n }\n /**\n * @param {?} event\n * @param {?} i\n * @return {?}\n */\n onItemDragover(event, i) {\n if (!this.transfer.getItem()) {\n return;\n }\n event.preventDefault();\n /** @type {?} */\n const dragItem = this.transfer.captureItem(this.currentZoneIndex, this.items.length);\n /* tslint:disable-next-line: no-any */\n /** @type {?} */\n let newArray = [];\n if (!this.items.length) {\n newArray = [dragItem.item];\n }\n else if (dragItem.i > i) {\n newArray = [\n ...this.items.slice(0, i),\n dragItem.item,\n ...this.items.slice(i, dragItem.i),\n ...this.items.slice(dragItem.i + 1)\n ];\n }\n else {\n // this.draggedItem.i < i\n newArray = [\n ...this.items.slice(0, dragItem.i),\n ...this.items.slice(dragItem.i + 1, i + 1),\n dragItem.item,\n ...this.items.slice(i + 1)\n ];\n }\n this.items = newArray;\n dragItem.i = i;\n this.activeItem = i;\n this.updatePlaceholderState();\n }\n /**\n * @param {?} event\n * @return {?}\n */\n cancelEvent(event) {\n if (!this.transfer.getItem() || !event) {\n return;\n }\n event.preventDefault();\n }\n /**\n * @param {?} item\n * @return {?}\n */\n onDrop(item) {\n if (item &&\n item.overZoneIndex !== this.currentZoneIndex &&\n item.lastZoneIndex === this.currentZoneIndex) {\n this.items = this.items.filter((/**\n * @param {?} x\n * @param {?} i\n * @return {?}\n */\n (x, i) => i !== item.i));\n this.updatePlaceholderState();\n }\n this.resetActiveItem(undefined);\n }\n /**\n * @param {?} event\n * @return {?}\n */\n resetActiveItem(event) {\n this.cancelEvent(event);\n this.activeItem = -1;\n }\n /**\n * @param {?} callback\n * @return {?}\n */\n registerOnChange(callback) {\n this.onChanged = callback;\n }\n /**\n * @param {?} callback\n * @return {?}\n */\n registerOnTouched(callback) {\n this.onTouched = callback;\n }\n /* tslint:disable-next-line: no-any */\n /**\n * @param {?} value\n * @return {?}\n */\n writeValue(value) {\n if (value) {\n /* tslint:disable-next-line: no-any */\n this.items = value.map((/**\n * @param {?} x\n * @param {?} i\n * @return {?}\n */\n (x, i) => ({\n id: i,\n initData: x,\n value: this.fieldName ? x[this.fieldName] : x\n })));\n }\n else {\n this.items = [];\n }\n this.updatePlaceholderState();\n }\n /**\n * @return {?}\n */\n updatePlaceholderState() {\n this.showPlaceholder = !this._items.length;\n }\n /**\n * @param {?} isActive\n * @return {?}\n */\n getItemStyle(isActive) {\n return isActive\n ? Object.assign({}, this.itemStyle, this.itemActiveStyle)\n : this.itemStyle;\n }\n // tslint:disable-next-line\n /**\n * @private\n * @param {?} event\n * @return {?}\n */\n initDragstartEvent(event) {\n // it is necessary for mozilla\n // data type should be 'Text' instead of 'text/plain' to keep compatibility\n // with IE\n event.dataTransfer.setData('Text', 'placeholder');\n }\n}\nSortableComponent.ɵfac = function SortableComponent_Factory(t) { return new (t || SortableComponent)(ɵngcc0.ɵɵdirectiveInject(DraggableItemService)); };\nSortableComponent.ɵcmp = /*@__PURE__*/ ɵngcc0.ɵɵdefineComponent({ type: SortableComponent, selectors: [[\"bs-sortable\"]], inputs: { wrapperClass: \"wrapperClass\", wrapperStyle: \"wrapperStyle\", itemClass: \"itemClass\", itemStyle: \"itemStyle\", itemActiveClass: \"itemActiveClass\", itemActiveStyle: \"itemActiveStyle\", placeholderClass: \"placeholderClass\", placeholderStyle: \"placeholderStyle\", placeholderItem: \"placeholderItem\", fieldName: \"fieldName\", itemTemplate: \"itemTemplate\" }, outputs: { onChange: \"onChange\" }, exportAs: [\"bs-sortable\"], features: [ɵngcc0.ɵɵProvidersFeature([\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(( /**\n * @return {?}\n */() => SortableComponent)),\n multi: true\n }\n ])], decls: 5, vars: 4, consts: [[3, \"ngClass\", \"ngStyle\", \"dragover\", \"dragenter\", \"drop\", \"mouseleave\"], [3, \"ngClass\", \"ngStyle\", \"dragover\", \"dragenter\", 4, \"ngIf\"], [\"draggable\", \"true\", \"aria-dropeffect\", \"move\", 3, \"ngClass\", \"ngStyle\", \"dragstart\", \"dragend\", \"dragover\", \"dragenter\", 4, \"ngFor\", \"ngForOf\"], [\"defItemTemplate\", \"\"], [3, \"ngClass\", \"ngStyle\", \"dragover\", \"dragenter\"], [\"draggable\", \"true\", \"aria-dropeffect\", \"move\", 3, \"ngClass\", \"ngStyle\", \"dragstart\", \"dragend\", \"dragover\", \"dragenter\"], [3, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]], template: function SortableComponent_Template(rf, ctx) { if (rf & 1) {\n ɵngcc0.ɵɵelementStart(0, \"div\", 0);\n ɵngcc0.ɵɵlistener(\"dragover\", function SortableComponent_Template_div_dragover_0_listener($event) { return ctx.cancelEvent($event); })(\"dragenter\", function SortableComponent_Template_div_dragenter_0_listener($event) { return ctx.cancelEvent($event); })(\"drop\", function SortableComponent_Template_div_drop_0_listener($event) { return ctx.resetActiveItem($event); })(\"mouseleave\", function SortableComponent_Template_div_mouseleave_0_listener($event) { return ctx.resetActiveItem($event); });\n ɵngcc0.ɵɵtemplate(1, SortableComponent_div_1_Template, 2, 3, \"div\", 1);\n ɵngcc0.ɵɵtemplate(2, SortableComponent_div_2_Template, 2, 11, \"div\", 2);\n ɵngcc0.ɵɵelementEnd();\n ɵngcc0.ɵɵtemplate(3, SortableComponent_ng_template_3_Template, 1, 1, \"ng-template\", null, 3, ɵngcc0.ɵɵtemplateRefExtractor);\n } if (rf & 2) {\n ɵngcc0.ɵɵproperty(\"ngClass\", ctx.wrapperClass)(\"ngStyle\", ctx.wrapperStyle);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngIf\", ctx.showPlaceholder);\n ɵngcc0.ɵɵadvance(1);\n ɵngcc0.ɵɵproperty(\"ngForOf\", ctx.items);\n } }, directives: [ɵngcc1.NgClass, ɵngcc1.NgStyle, ɵngcc1.NgIf, ɵngcc1.NgForOf, ɵngcc1.NgTemplateOutlet], encapsulation: 2 });\nSortableComponent.globalZoneIndex = 0;\n/** @nocollapse */\nSortableComponent.ctorParameters = () => [\n { type: DraggableItemService }\n];\nSortableComponent.propDecorators = {\n fieldName: [{ type: Input }],\n wrapperClass: [{ type: Input }],\n wrapperStyle: [{ type: Input }],\n itemClass: [{ type: Input }],\n itemStyle: [{ type: Input }],\n itemActiveClass: [{ type: Input }],\n itemActiveStyle: [{ type: Input }],\n placeholderClass: [{ type: Input }],\n placeholderStyle: [{ type: Input }],\n placeholderItem: [{ type: Input }],\n itemTemplate: [{ type: Input }],\n onChange: [{ type: Output }]\n};\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(SortableComponent, [{\n type: Component,\n args: [{\n selector: 'bs-sortable',\n exportAs: 'bs-sortable',\n template: `\n\n {{placeholderItem}}\n \n\n\n{{item.value}} \n`,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(( /**\n * @return {?}\n */() => SortableComponent)),\n multi: true\n }\n ]\n }]\n }], function () { return [{ type: DraggableItemService }]; }, { wrapperClass: [{\n type: Input\n }], wrapperStyle: [{\n type: Input\n }], itemClass: [{\n type: Input\n }], itemStyle: [{\n type: Input\n }], itemActiveClass: [{\n type: Input\n }], itemActiveStyle: [{\n type: Input\n }], placeholderClass: [{\n type: Input\n }], placeholderStyle: [{\n type: Input\n }], placeholderItem: [{\n type: Input\n }], onChange: [{\n type: Output\n }], fieldName: [{\n type: Input\n }], itemTemplate: [{\n type: Input\n }] }); })();\nif (false) {\n /**\n * @type {?}\n * @private\n */\n SortableComponent.globalZoneIndex;\n /**\n * field name if input array consists of objects\n * @type {?}\n */\n SortableComponent.prototype.fieldName;\n /**\n * class name for items wrapper\n * @type {?}\n */\n SortableComponent.prototype.wrapperClass;\n /**\n * style object for items wrapper\n * @type {?}\n */\n SortableComponent.prototype.wrapperStyle;\n /**\n * class name for item\n * @type {?}\n */\n SortableComponent.prototype.itemClass;\n /**\n * style object for item\n * @type {?}\n */\n SortableComponent.prototype.itemStyle;\n /**\n * class name for active item\n * @type {?}\n */\n SortableComponent.prototype.itemActiveClass;\n /**\n * style object for active item\n * @type {?}\n */\n SortableComponent.prototype.itemActiveStyle;\n /**\n * class name for placeholder\n * @type {?}\n */\n SortableComponent.prototype.placeholderClass;\n /**\n * style object for placeholder\n * @type {?}\n */\n SortableComponent.prototype.placeholderStyle;\n /**\n * placeholder item which will be shown if collection is empty\n * @type {?}\n */\n SortableComponent.prototype.placeholderItem;\n /**\n * used to specify a custom item template. Template variables: item and index;\n * @type {?}\n */\n SortableComponent.prototype.itemTemplate;\n /**\n * fired on array change (reordering, insert, remove), same as ngModelChange.\n * Returns new items collection as a payload.\n * @type {?}\n */\n SortableComponent.prototype.onChange;\n /** @type {?} */\n SortableComponent.prototype.showPlaceholder;\n /** @type {?} */\n SortableComponent.prototype.activeItem;\n /** @type {?} */\n SortableComponent.prototype.onTouched;\n /** @type {?} */\n SortableComponent.prototype.onChanged;\n /**\n * @type {?}\n * @private\n */\n SortableComponent.prototype.transfer;\n /**\n * @type {?}\n * @private\n */\n SortableComponent.prototype.currentZoneIndex;\n /**\n * @type {?}\n * @private\n */\n SortableComponent.prototype._items;\n}\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\nclass SortableModule {\n /**\n * @return {?}\n */\n static forRoot() {\n return { ngModule: SortableModule, providers: [DraggableItemService] };\n }\n}\nSortableModule.ɵfac = function SortableModule_Factory(t) { return new (t || SortableModule)(); };\nSortableModule.ɵmod = /*@__PURE__*/ ɵngcc0.ɵɵdefineNgModule({ type: SortableModule });\nSortableModule.ɵinj = /*@__PURE__*/ ɵngcc0.ɵɵdefineInjector({ imports: [[CommonModule]] });\n(function () { (typeof ngDevMode === \"undefined\" || ngDevMode) && ɵngcc0.ɵsetClassMetadata(SortableModule, [{\n type: NgModule,\n args: [{\n declarations: [SortableComponent],\n imports: [CommonModule],\n exports: [SortableComponent]\n }]\n }], null, null); })();\n(function () { (typeof ngJitMode === \"undefined\" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(SortableModule, { declarations: function () { return [SortableComponent]; }, imports: function () { return [CommonModule]; }, exports: function () { return [SortableComponent]; } }); })();\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\n/**\n * @fileoverview added by tsickle\n * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc\n */\n\nexport { DraggableItemService, SortableComponent, SortableModule };\n\n","import { NgModule } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { SortableModule } from 'ngx-bootstrap/sortable';\r\n\r\nimport { DocsModule } from '@app/shared/components/docs';\r\nimport { SortableSectionComponent } from './sortable-section.component';\r\nimport { DEMO_COMPONENTS } from './demos';\r\nimport { routes } from './demo-sortable.routes';\r\n\r\n@NgModule({\r\n declarations: [\r\n SortableSectionComponent,\r\n ...DEMO_COMPONENTS\r\n ],\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n DocsModule,\r\n SortableModule.forRoot(),\r\n RouterModule.forChild(routes)\r\n ],\r\n exports: [SortableSectionComponent],\r\n entryComponents: [...DEMO_COMPONENTS]\r\n})\r\nexport class DemoSortableModule {}\r\n","import { SortableSectionComponent } from './sortable-section.component';\r\n\r\nexport const routes = [{ path: '', component: SortableSectionComponent }];\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'demo-accessibility',\r\n templateUrl: './accessibility.html'\r\n})\r\nexport class DemoAccessibilityComponent {}\r\n","

You can use aria-dropeffect=\"...\" and aria-grabbed for .sortable-item. When you start drag item aria-grabbed must have true state.\r\n aria-dropeffect property is defined depending on the grabbed object.

\r\n

But be careful, these attributes are deprecated.

\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'basic-demo',\r\n templateUrl: './basic.component.html'\r\n})\r\nexport class DemoBasicComponent {\r\n itemStringsLeft = [\r\n 'Windstorm',\r\n 'Bombasto',\r\n 'Magneta',\r\n 'Tornado'\r\n ];\r\n\r\n itemStringsRight = ['Mr. O', 'Tomato'];\r\n}\r\n","
\r\n
\r\n \r\n
model: {{ itemStringsLeft | json }}
\r\n
\r\n
\r\n \r\n
model: {{ itemStringsRight | json }}
\r\n
\r\n
\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'complex-datamodel-demo',\r\n templateUrl: './complex-datamodel.component.html'\r\n})\r\nexport class ComplexDatamodelDemoComponent {\r\n itemObjectsLeft: any[] = [\r\n { id: 1, name: 'Windstorm' },\r\n { id: 2, name: 'Bombasto' },\r\n { id: 3, name: 'Magneta' }\r\n ];\r\n\r\n itemObjectsRight: any[] = [\r\n { id: 4, name: 'Tornado' },\r\n { id: 5, name: 'Mr. O' },\r\n { id: 6, name: 'Tomato' }\r\n ];\r\n}\r\n","
\r\n
\r\n \r\n
{{ itemObjectsLeft | json }}
\r\n
\r\n
\r\n \r\n
{{ itemObjectsRight | json }}
\r\n
\r\n
\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'custom-item-template-demo',\r\n templateUrl: './custom-item-template.html'\r\n})\r\nexport class CustomItemTemplateDemoComponent {\r\n itemStringsLeft: any[] = [\r\n 'Windstorm',\r\n 'Bombasto',\r\n 'Magneta',\r\n 'Tornado'\r\n ];\r\n\r\n itemStringsRight: any[] = ['Mr. O', 'Tomato'];\r\n}\r\n","{{index}}: {{item.value}}\r\n\r\n
\r\n
\r\n \r\n
model: {{ itemStringsLeft | json }}
\r\n
\r\n
\r\n \r\n
model: {{ itemStringsRight | json }}
\r\n
\r\n
\r\n\r\n","/* tslint:disable:use-view-encapsulation */\r\nimport { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\r\n\r\nimport { demoComponentContent } from './sortable-section.list';\r\nimport { ContentSection } from '@app/shared/components/docs/models/content-section.model';\r\n\r\n@Component({\r\n selector: 'sortable-section',\r\n templateUrl: './sortable-section.component.html',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SortableSectionComponent {\r\n name = 'Sortable';\r\n src = 'https://github.com/valor-software/ngx-bootstrap/blob/development/src/sortable';\r\n componentContent: ContentSection[] = demoComponentContent;\r\n}\r\n","\r\n

The sortable component represents a list of items, with ability to sort them or\r\n move to another container via drag&drop. Input collection isn't mutated by the component,\r\n so events ngModelChange, onChange are using new collections.

\r\n

The easiest way to add the sortable component to your app (will be added to the root module)

\r\n
ng add ngx-bootstrap  --component sortable
\r\n\r\n \r\n\r\n \r\n
\r\n","import { DemoBasicComponent } from './demos/basic/basic.component';\r\nimport { ComplexDatamodelDemoComponent } from './demos/complex-datamodel/complex-datamodel.component';\r\nimport { CustomItemTemplateDemoComponent } from './demos/custom-item-template/custom-item-template';\r\n\r\nimport { ContentSection } from '@app/shared/components/docs/models/content-section.model';\r\nimport { DemoTopSectionComponent } from '@app/shared/components/docs/demo-section-components/demo-top-section/index';\r\nimport { ExamplesComponent } from '@app/shared/components/docs/demo-section-components/demo-examples-section/index';\r\nimport { ApiSectionsComponent } from '@app/shared/components/docs/demo-section-components/demo-api-section/index';\r\n\r\nimport { NgApiDocComponent } from '@app/shared/components/docs/api-docs';\r\nimport { DemoAccessibilityComponent } from './demos/accessibility/accessibility';\r\n\r\nexport const demoComponentContent: ContentSection[] = [\r\n {\r\n name: 'Usage',\r\n anchor: 'usage',\r\n outlet: DemoTopSectionComponent,\r\n content: {\r\n doc: require('!!raw-loader!./docs/usage.md')\r\n }\r\n },\r\n {\r\n name: 'Examples',\r\n anchor: 'examples',\r\n outlet: ExamplesComponent,\r\n content: [\r\n {\r\n title: 'Basic',\r\n anchor: 'basic',\r\n component: require('!!raw-loader!./demos/basic/basic.component.ts'),\r\n html: require('!!raw-loader!./demos/basic/basic.component.html'),\r\n outlet: DemoBasicComponent\r\n },\r\n {\r\n title: 'Complex data model',\r\n anchor: 'complexDatamodel',\r\n component: require('!!raw-loader!./demos/complex-datamodel/complex-datamodel.component.ts'),\r\n html: require('!!raw-loader!./demos/complex-datamodel/complex-datamodel.component.html'),\r\n outlet: ComplexDatamodelDemoComponent\r\n },\r\n {\r\n title: 'Custom item template',\r\n anchor: 'itemTemplate',\r\n component: require('!!raw-loader!./demos/custom-item-template/custom-item-template.ts'),\r\n html: require('!!raw-loader!./demos/custom-item-template/custom-item-template.html'),\r\n outlet: CustomItemTemplateDemoComponent\r\n },\r\n {\r\n title: 'Accessibility',\r\n anchor: 'accessibility',\r\n outlet: DemoAccessibilityComponent\r\n }\r\n ]\r\n },\r\n {\r\n name: 'API Reference',\r\n anchor: 'api-reference',\r\n outlet: ApiSectionsComponent,\r\n content: [\r\n {\r\n title: 'SortableComponent',\r\n anchor: 'sortable-component',\r\n outlet: NgApiDocComponent\r\n }\r\n ]\r\n }\r\n];\r\n","export default \"
\\r\\n
\\r\\n \\r\\n
model: {{ itemStringsLeft | json }}
\\r\\n
\\r\\n
\\r\\n \\r\\n
model: {{ itemStringsRight | json }}
\\r\\n
\\r\\n
\\r\\n\";","export default \"import { Component } from '@angular/core';\\r\\n\\r\\n@Component({\\r\\n selector: 'basic-demo',\\r\\n templateUrl: './basic.component.html'\\r\\n})\\r\\nexport class DemoBasicComponent {\\r\\n itemStringsLeft = [\\r\\n 'Windstorm',\\r\\n 'Bombasto',\\r\\n 'Magneta',\\r\\n 'Tornado'\\r\\n ];\\r\\n\\r\\n itemStringsRight = ['Mr. O', 'Tomato'];\\r\\n}\\r\\n\";","export default \"
\\r\\n
\\r\\n \\r\\n
{{ itemObjectsLeft | json }}
\\r\\n
\\r\\n
\\r\\n \\r\\n
{{ itemObjectsRight | json }}
\\r\\n
\\r\\n
\\r\\n\";","export default \"import { Component } from '@angular/core';\\r\\n\\r\\n@Component({\\r\\n selector: 'complex-datamodel-demo',\\r\\n templateUrl: './complex-datamodel.component.html'\\r\\n})\\r\\nexport class ComplexDatamodelDemoComponent {\\r\\n itemObjectsLeft: any[] = [\\r\\n { id: 1, name: 'Windstorm' },\\r\\n { id: 2, name: 'Bombasto' },\\r\\n { id: 3, name: 'Magneta' }\\r\\n ];\\r\\n\\r\\n itemObjectsRight: any[] = [\\r\\n { id: 4, name: 'Tornado' },\\r\\n { id: 5, name: 'Mr. O' },\\r\\n { id: 6, name: 'Tomato' }\\r\\n ];\\r\\n}\\r\\n\";","export default \"{{index}}: {{item.value}}\\r\\n\\r\\n
\\r\\n
\\r\\n \\r\\n
model: {{ itemStringsLeft | json }}
\\r\\n
\\r\\n
\\r\\n \\r\\n
model: {{ itemStringsRight | json }}
\\r\\n
\\r\\n
\\r\\n\\r\\n\";","export default \"import { Component } from '@angular/core';\\r\\n\\r\\n@Component({\\r\\n selector: 'custom-item-template-demo',\\r\\n templateUrl: './custom-item-template.html'\\r\\n})\\r\\nexport class CustomItemTemplateDemoComponent {\\r\\n itemStringsLeft: any[] = [\\r\\n 'Windstorm',\\r\\n 'Bombasto',\\r\\n 'Magneta',\\r\\n 'Tornado'\\r\\n ];\\r\\n\\r\\n itemStringsRight: any[] = ['Mr. O', 'Tomato'];\\r\\n}\\r\\n\";","export default \"// RECOMMENDED\\r\\nimport { SortableModule } from 'ngx-bootstrap/sortable';\\r\\n// NOT RECOMMENDED (Angular 9 doesn't support this kind of import)\\r\\nimport { SortableModule } from 'ngx-bootstrap';\\r\\n\\r\\n@NgModule({\\r\\n imports: [SortableModule.forRoot(),...]\\r\\n})\\r\\nexport class AppModule(){}\\r\\n\";"],"names":[],"sourceRoot":"webpack:///"}