{"version":3,"sources":["kendo.tilelayout.js"],"names":["f","define","$","containsOrEqualTo","parent","child","contains","e","kendo","window","ui","Widget","Draggable","selector","selectorFromClasses","RESIZE","REORDER","NS","DOWNCURSOR","RIGHTCURSOR","DIAGONALCURSOR","RTLDIAGONALCURSOR","GRABCURSOR","GRABBINGCURSOR","MINIMALSPAN","CURSORCLASSES","tileLayoutStyles","wrapper","item","itemHeader","itemHeaderTitle","itemBody","reorderHint","resizeHint","TileLayout","extend","init","element","options","that","this","fn","call","cssNumber","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","addClass","styles","_setWrapperStyles","_initContainers","_resizable","_reorderable","events","name","columns","gap","rows","containers","resizable","reorderable","columnsWidth","rowsHeight","height","width","destroy","_draggableInstance","find","each","data","draggable","resizeHandle","off","remove","setOptions","deepExtend","empty","getOptions","result","items","id","container","header","headerSettings","body","containerSettings","headerContent","i","containerElements","children","hasElements","length","itemsMap","guid","current","attr","_addContainer","template","text","append","appendTo","bodyTemplate","Error","index","order","_setContainerCoordinates","push","css","grid-template-columns","format","grid-auto-rows","column-gap","padding","row-gap","settings","grid-column-end","colSpan","grid-row-end","rowSpan","_updateContainers","_createResizeHandle","side","down","_isresizing","_positionResizeHandle","cursorClass","leftBorderWidth","parseFloat","bottomBorderWidth","containerHeight","containerWidth","top","left","support","isRtl","removeClass","show","_createResizeHint","hint","insertAfter","_removeResizeHint","_positionHint","_removeAbsoluteStyles","_positionAbsolutely","position","outerWidth","outerHeight","fractionWidth","fractionHeight","currentContainer","rowsCount","lastXLocation","lastYLocation","initialWidth","initialHeight","startColSpan","startRowSpan","itemsMaxSpace","on","rectPosition","getBoundingClientRect","rightPosition","Math","abs","right","clientX","downPosition","bottom","clientY","Resizable","handle","start","currentTarget","split","_calculateFractionWidth","_calculateRightEndSide","x","location","parseInt","replace","scrollHeight","y","resize","overflowsLayout","isBeyondMinimum","hintColumns","hintRows","mouseDeltaX","mouseDeltaY","deltaFromStart","resizeRowsCount","resizeColumnsCount","clientRect","scrollX","floor","max","scrollY","resizeend","trigger","first","totalWidth","columnGap","_createDropHint","dropHint","columnEnd","rowEnd","direction","_insertDropHint","insertBefore","_removeDropHint","originalElement","itemSelector","headerSelector","filter","autoScroll","target","closest","clone","dragstart","drag","dropContainer","containerBoundaries","pixelsToLeftBorder","pixelsToRightBorder","newOrder","futureContainer","elementUnderCursor","sender","draggedItem","hide","hasClass","next","prev","dragend","oldOrder","itemId","indexAttr","end","sort","a","b","indexA","indexB","undefined","min","newIndex","oldIndex","kendoDropTarget","dragenter","dropContainerBoundaries","dropTarget","plugin","jQuery","amd","a1","a2","a3"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;CAwBC,SAAUA,EAAGC,QACVA,OAAO,oBACH,aACA,oBACA,mBACDD,IACL,WAilBE,MA1kBC,UAAUE,GAgkBP,QAASC,GAAkBC,EAAQC,GAC/B,IACI,MAAOH,GAAEI,SAASF,EAAQC,IAAUD,GAAUC,EAChD,MAAOE,GACL,OAAO,GApkBlB,GACOC,GAAQC,OAAOD,MAAOE,EAAKF,EAAME,GAAIC,EAASD,EAAGC,OAAQC,EAAYF,EAAGE,UAAWC,EAAWL,EAAMM,oBAAqBC,EAAS,SAAUC,EAAU,UAAWC,EAAK,mBAAoBC,EAAa,qBAAsBC,EAAc,qBAAsBC,EAAiB,uBAAwBC,EAAoB,uBAAwBC,EAAa,gBAAiBC,EAAiB,oBAAqBC,EAAc,EAAGC,EAAgB,kFAC3bC,GACAC,QAAS,wBACTC,KAAM,2BACNC,WAAY,yCACZC,gBAAiB,eACjBC,SAAU,qCACVC,YAAa,gDACbC,WAAY,gDAEZC,EAAavB,EAAOwB,QACpBC,KAAM,SAAUC,EAASC,GACrB,GAAIC,GAAOC,IACX7B,GAAO8B,GAAGL,KAAKM,KAAKH,EAAMF,EAASC,GACnCpC,EAAEyC,UAAUC,iBAAkB,EAC9B1C,EAAEyC,UAAUE,eAAgB,EAC5B3C,EAAEyC,UAAUG,cAAe,EAC3B5C,EAAEyC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zBiG,UAAWW,EAAO5G,IAAI,mBACtBkG,OAAQU,EAAO5G,IAAI,gBACnBmG,UAAWA,IAEfI,EAAgBmB,OAChB/L,EAAKyK,gBAAgBa,EAAed,UAaxDrM,GAAGkP,OAAO1N,GACVhC,EAAEiC,QAAO,EAAMD,GAAce,OAAQvB,KACvCjB,OAAOD,MAAMqP,QACRpP,OAAOD,OACE,kBAAVP,SAAwBA,OAAO6P,IAAM7P,OAAS,SAAU8P,EAAIC,EAAIC,IACrEA,GAAMD","file":"kendo.tilelayout.min.js","sourcesContent":["/*!\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n*/\n(function (f, define) {\n define('kendo.tilelayout', [\n 'kendo.core',\n 'kendo.draganddrop',\n 'kendo.resizable'\n ], f);\n}(function () {\n var __meta__ = {\n id: 'tilelayout',\n name: 'TileLayout',\n category: 'web',\n depends: ['core']\n };\n (function ($) {\n var kendo = window.kendo, ui = kendo.ui, Widget = ui.Widget, Draggable = ui.Draggable, selector = kendo.selectorFromClasses, RESIZE = 'resize', REORDER = 'reorder', NS = '.kendoTileLayout', DOWNCURSOR = 'k-cursor-ns-resize', RIGHTCURSOR = 'k-cursor-ew-resize', DIAGONALCURSOR = 'k-cursor-nwse-resize', RTLDIAGONALCURSOR = 'k-cursor-nesw-resize', GRABCURSOR = 'k-cursor-grab', GRABBINGCURSOR = 'k-cursor-grabbing', MINIMALSPAN = 1, CURSORCLASSES = 'k-cursor-nesw-resize k-cursor-nwse-resize k-cursor-ew-resize k-cursor-ns-resize';\n var tileLayoutStyles = {\n wrapper: 'k-widget k-tilelayout',\n item: 'k-tilelayout-item k-card',\n itemHeader: 'k-tilelayout-item-header k-card-header',\n itemHeaderTitle: 'k-card-title',\n itemBody: 'k-tilelayout-item-body k-card-body',\n reorderHint: 'k-layout-item-hint k-layout-item-hint-reorder',\n resizeHint: 'k-layout-item-hint k-layout-item-hint-resize'\n };\n var TileLayout = Widget.extend({\n init: function (element, options) {\n var that = this;\n Widget.fn.init.call(that, element, options);\n $.cssNumber.gridColumnStart = true;\n $.cssNumber.gridColumnEnd = true;\n $.cssNumber.gridRowStart = true;\n $.cssNumber.gridRowEnd = true;\n that.element = $(element).addClass(TileLayout.styles.wrapper);\n that._setWrapperStyles();\n that._initContainers();\n that._resizable();\n that._reorderable();\n },\n events: [\n RESIZE,\n REORDER\n ],\n options: {\n name: 'TileLayout',\n columns: null,\n gap: {\n columns: 16,\n rows: 16\n },\n containers: [],\n resizable: false,\n reorderable: false,\n columnsWidth: '1fr',\n rowsHeight: '1fr',\n height: '',\n width: ''\n },\n destroy: function () {\n Widget.fn.destroy.call(this);\n if (this._draggableInstance) {\n this.element.find('.k-tilelayout-item').each(function () {\n var item = $(this);\n if (item.data('kendoDropTarget')) {\n item.data('kendoDropTarget').destroy();\n }\n });\n this._draggableInstance.destroy();\n this._draggableInstance.element = this._draggableInstance.draggable = null;\n }\n if (this.resizable) {\n this.resizable.destroy();\n this.resizable = null;\n }\n if (this.resizeHandle) {\n this.resizeHandle.off(NS).remove();\n this.resizeHandle = null;\n }\n this.element.off(NS);\n },\n setOptions: function (options) {\n this.destroy();\n kendo.deepExtend(this.options, options);\n this.element.empty();\n this.init(this.element, this.options);\n },\n getOptions: function () {\n var result = $.extend(true, {}, this.options);\n result.containers = kendo.deepExtend([], this.items);\n return result;\n },\n _initContainers: function () {\n var that = this;\n var containers = that.options.containers;\n var containerElements = that.element.children();\n var hasElements = !!containerElements.length;\n var id;\n var container;\n var header;\n var headerSettings;\n var body;\n var containerSettings;\n var headerContent;\n that.items = [];\n that.itemsMap = {};\n if (hasElements) {\n containerElements.each(function (i, element) {\n id = kendo.guid();\n var current = $(element).addClass(TileLayout.styles.item).attr('id', id);\n that._addContainer(current, containers[i], i, id);\n });\n } else {\n for (var i = 0; i < containers.length; i++) {\n id = kendo.guid();\n containerSettings = containers[i];\n container = $('
').addClass(TileLayout.styles.item).attr('id', id);\n headerSettings = containerSettings.header;\n if (headerSettings && (headerSettings.template || headerSettings.text)) {\n header = $('').addClass(TileLayout.styles.itemHeader);\n if (that.options.reorderable) {\n header.addClass(GRABCURSOR);\n }\n if (headerSettings.text) {\n headerContent = '