{"version":3,"sources":["webpack:///webpack/universalModuleDefinition?5ca6***","webpack:///webpack/bootstrap e3bd17c0d0c15192fc59?223a***","webpack:///js/gridview.js","webpack:///./src/components/browser.js","webpack:///./src/components/shim_math.js?f16c*","webpack:///./src/components/datagrid/gridview.js","webpack:///external \"$\"?57aa"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_4__","__webpack_require__","moduleId","installedModules","i","l","modules","call","m","c","value","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","11","userAgent","navigator","toLowerCase","isMobile","test","isChrome","2","math","trunc","val","Math","floor","ceil","ui","getClientX","e","originalEvent","cx","touches","clientX","undefined","getOffsetLeft","el","left","offsetLeft","offsetParent","func","debounce","method","args","delay","context","window","clearTimeout","tiid","setTimeout","apply","throttle","current","Date","tdate","24","GridView","columns","_source","source","lang","all","ok","reset","virtualCount","VIRTUAL_COUNT","rowHeight","filterRowHeight","total","height","virtual","startIndex","sortIndex","sortDirection","selectedColumnIndex","selectedIndexes","canMultiSelect","allowHtml","oddStyle","$parent","$el","$refs","$elems","$window","willselect","selectedrowchanged","celldblclick","cellclick","rowdblclick","columnchanged","indexOfColumn","target","Array","slice","parentNode","children","indexOf","headerClick","force","_innerwidth","_isdragging","_istouchdown","sortable","tagName","className","classList","contains","sortColumn","data","getDefault","obj","prop","v","getSpecialDefault","def","isArray","join","distinct","key","ckey","dict","length","item","Values","values","k","push","str","String","onFilterChecked","holder","cball","$","__checked","cbs","find","doFillFilterItem","array","onchecked","itemdiv","wrapper","checkbox","displayValue","filterCustom","filter","on","append","label","text","fillFilterItem","grid","items","remove","__filterHeight","sizeHolder","css","itemsHolder","filterValues","filterOnScroll","top","bottomTop","__filterTop","__filterStartIndex","__itemHolder","empty","__checkboxAll","style","filterClick","parent","document","body","closePanel","e1","removeClass","off","divpanel","stopPropagation","th","currentTarget","offset","width","itemHolder","onFillItems","hasSearch","onFillSearch","search","searchHolder","searchbox","allowSearch","searchiconClick","e2","focus","searchicon","addEventListener","REFRESH_INTERVAL","scrollTop","passive","itemdivall","checkboxall","filterSource","innerSource","sort","a","b","citems","Value","DisplayValue","column","boxes","checked","filterFunctions","functionBar","buttonReset","onFilterReset","refreshGrid","afterFilter","addClass","buttonOk","onFilterOK","filters","map","dragStart","orderable","isfixed","_cx","_index","dragmove","isdragging","MINI_DRAG_OFFSET","_offset","columnDragging","dragend","columnDragstop","bindDragmove","bind","resizeStart","preventDefault","_width","baseWidth","fixedColumns","visible","_baseWidth","resizemove","MINI_COLUMN_WIDTH","widthChanging","resizeend","autoResize","widthChanged","bindResizemove","changeColumnWidth","index","isFixed","oldWidth","w","element","header","maxWidth","minWidth","header_fixed","$el_fixed","rows","gridbodyContent","gridbodyContainer","offsetWidth","gridbodyContent_fixed","gridbodyContainer_fixed","gridtotalbody","gridtotalbody_fixed","resize","columnchanging","COLUMN_CHANGED_TYPE","RESIZE","col","dragger","show","draggerCursor","idx","count","_orderIndex","hide","targetIndex","headers","totals","tmp","insertAfter","j","insertBefore","hd","REORDER","keyid","MAX_COLUMN_BIT","_overflows","auto","reload","fixedHeaders","fixedHd","comparer","sortFilter","ta","tb","refresh","SORT","checkAllColumn","check","itemEnabled","enabled","onchanged","checkall","__internal_changed","checkRow","scrollToTop","flag","ROW_HEIGHT","REDUN_NUM","_containerHeight","_bodyRowCount","_scrollTop","gridonscroll","resetScroll","getColumnIndex","istotal","max","rowOnClick","colindex","selectedIndex","selected","ctrlKey","splice","shiftKey","start","end","isEditable","__selected","changes","__changed","fixedRows","colIndex","allowFullrowClick","buttons","TouchEvent","rowOnDblClick","columnIndex","parents","adjustRows","gridcontent","cols","cnt","jGridContent","childrencount","onrowdblclick","onrowclick","row","cell","isurl","type","COLUMN_TYPE","checkit","box","checkinner","lastRow","last","hasClass","gridbodyMouseMove","nowKeyid","display","oldkeyid","overflow","targetContent","scrollWidth","innerText","offsetTop","holderWidth","_bodyClientWidth","maxleft","_scrollLeft","offsetHeight","cssText","tableHeaderMouseEnter","gridbody","gridbody_fixed","createHeader","prefix","table","sortclick","attr","isShrink","_needAutoResize","caption","headerWidth","align","click","drag","allcheck","textStyle","headerTitle","allowFilter","filterclick","isFiltered","split","resizable","tooltip","createBody","delta","wheelDelta","detail","evt","isNaN","position","tbody","MAX_COLUMN_MASK","noHoverHolder","hoverHolder","createTotals","gridtotal","totalbody","html","totalWidth","fillRows","els","maxWidths","vals","editFilter","div","span","chkbox","querySelector","disabled","innerHTML","href","removeAttribute","classFilter","cls","styleFilter","bgFilter","bgColor","backgroundColor","events","attrs","setAttribute","_require","browser","_network","common","input","dropdown","init","_rendering","Error","datagrid","dataCount","scrollToIndex","fixedCount","fixedDatagrid","fixedHeader","fixedTotals","fixedWidth","forEach","loading","hasFixed","ecol","eq","it","scrollLeft","headerTable","marginLeft","hscrolling","fixedGridbody","fixedHeaderTable","headerTable_fixed","fixedHeight","clientHeight","clientWidth","totalheight","gridtotal_fixed","right","bottom","setData","resetFilter","afterResetFilter","t","toppx","deleteRow","moveRow","step","toIndex","closeFilterPanel","visibility","opacity","clearGridWidth","objectid","next","query","applyGridWidth","management","tmpColumns","Result","gridwidth","tmpcol","ColumnKey","Width","Sort","saveColumnInfo","columnWidths","columnwidth","$type","OrderIndex","$values","4","5"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,MACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,QAAQ,KAAMJ,GACY,gBAAZC,SACdA,QAAQ,eAAiBD,EAAQG,QAAQ,MAEzCJ,EAAK,eAAiBC,EAAQD,EAAQ,IACrCO,KAAM,SAASC,GAClB,M,aCNE,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUR,OAGnC,IAAIC,GAASQ,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHX,WAUD,OANAY,GAAQJ,GAAUK,K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UM,GJuzEX2gB,EACA,SAAUhhB,EAAQD","file":"js/gridview.js?ab92a4cdb00c256beafb","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"$\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"$\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"g5-gridview\"] = factory(require(\"$\"));\n\telse\n\t\troot[\"g5-gridview\"] = factory(root[\"$\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// identity function for calling harmony imports with the correct context\n \t__webpack_require__.i = function(value) { return value; };\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/dist/\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 24);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap e3bd17c0d0c15192fc59","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"$\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"$\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"g5-gridview\"] = factory(require(\"$\"));\n\telse\n\t\troot[\"g5-gridview\"] = factory(root[\"$\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_4__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// identity function for calling harmony imports with the correct context\n/******/ \t__webpack_require__.i = function(value) { return value; };\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"/dist/\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 24);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ 11:\n/***/ (function(module, exports) {\n\nmodule.exports = {\n userAgent: navigator.userAgent.toLowerCase(),\n isMobile: function isMobile() {\n return (/mobile/.test(this.userAgent)\n );\n },\n isChrome: function isChrome() {\n return (/chrom(e|ium)/.test(this.userAgent)\n );\n }\n};\n\n/***/ }),\n\n/***/ 2:\n/***/ (function(module, exports) {\n\nmodule.exports = {\n math: {\n trunc: function trunc(val) {\n return (val > 0 ? Math.floor : Math.ceil)(val);\n }\n },\n ui: {\n getClientX: function getClientX(e) {\n if (e == null) {\n return null;\n }\n if (e.originalEvent != null) {\n e = e.originalEvent;\n }\n var cx = e.touches && e.touches[0] && e.touches[0].clientX;\n if (cx === undefined) {\n return e.clientX;\n }\n return cx;\n },\n getOffsetLeft: function getOffsetLeft(el) {\n var left = 0;\n while (el) {\n left += el.offsetLeft;\n el = el.offsetParent;\n }\n return left;\n }\n },\n func: {\n debounce: function debounce(method) {\n for (var _len = arguments.length, args = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window;\n\n clearTimeout(method.tiid);\n method.tiid = setTimeout(function () {\n return method.apply(context, args);\n }, delay);\n },\n throttle: function throttle(method) {\n for (var _len2 = arguments.length, args = Array(_len2 > 3 ? _len2 - 3 : 0), _key2 = 3; _key2 < _len2; _key2++) {\n args[_key2 - 3] = arguments[_key2];\n }\n\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;\n var context = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : window;\n\n clearTimeout(method.tiid);\n var current = new Date();\n if (method.tdate === void 0 || current - method.tdate > delay) {\n method.apply(context, args);\n method.tdate = current;\n } else {\n method.tiid = setTimeout(function () {\n return method.apply(context, args);\n }, delay);\n }\n }\n }\n};\n\n/***/ }),\n\n/***/ 24:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $ = __webpack_require__(4);\n\nvar _require = __webpack_require__(2),\n math = _require.math,\n ui = _require.ui,\n func = _require.func;\n\nvar browser = __webpack_require__(11);\n__webpack_require__(5);\n\nvar _network = window._network;\n\nvar COLUMN_CHANGED_TYPE = {\n REORDER: 'reorder',\n RESIZE: 'resize',\n SORT: 'sort'\n};\nvar COLUMN_TYPE = {\n common: 0,\n input: 1,\n dropdown: 2,\n checkbox: 3\n};\n\nvar REFRESH_INTERVAL = !browser.isMobile() && browser.isChrome() ? 0 : 32;\n\nvar MAX_COLUMN_BIT = 10;\nvar MAX_COLUMN_MASK = 0x3ff;\nvar VIRTUAL_COUNT = 100;\nvar REDUN_NUM = 4;\nvar MINI_DRAG_OFFSET = 4;\nvar MINI_COLUMN_WIDTH = 50;\n\nfunction GridView(p) {\n this.columns = [];\n this._source = [];\n this.source = this._source;\n this.lang = {\n all: '( All )',\n ok: 'OK',\n reset: 'Reset'\n };\n this.virtualCount = VIRTUAL_COUNT;\n this.rowHeight = 27;\n this.filterRowHeight = 26;\n this.total = null;\n this.height = null;\n this.virtual = false;\n this.startIndex = 0;\n this.sortIndex = -1;\n this.sortDirection = 1;\n this.selectedColumnIndex = -1;\n this.selectedIndexes = [];\n this.canMultiSelect = false;\n this.allowHtml = false;\n this.oddStyle = false;\n\n this.$parent = p;\n this.$el = null;\n this.$refs = {};\n this.$elems = {};\n this.$window = window;\n\n this.willselect = null;\n this.selectedrowchanged = null;\n this.celldblclick = null;\n this.cellclick = null;\n this.rowdblclick = null;\n this.columnchanged = null;\n}\nGridView.prototype = {\n get sortKey() {\n var c = this.columns && this.columns[this.sortIndex];\n return c && c.key;\n },\n get selectedIndex() {\n if (this.selectedIndexes != null && this.selectedIndexes.length > 0) {\n return this.selectedIndexes[0];\n }\n return -1;\n },\n get innerSource() {\n return this._source;\n },\n set innerSource(val) {\n this._source = val;\n this.source = val;\n }\n};\nGridView.COLUMN_TYPE = COLUMN_TYPE;\n\nfunction indexOfColumn(target) {\n return Array.prototype.slice.call(target.parentNode.children).indexOf(target);\n}\n\nfunction headerClick(e, force) {\n if (!force && (this._innerwidth || this._isdragging || !this._istouchdown)) {\n return;\n }\n delete this._istouchdown;\n if (this.sortable && e.target.tagName !== 'INPUT' && e.target.className !== 'data-column-header-filter' && !e.target.classList.contains('arrow') && e.target.tagName.toLowerCase() !== 'use') {\n sortColumn.call(e.data, this);\n }\n}\n\nfunction getDefault(obj, prop) {\n if (obj == null) {\n return '';\n }\n var v = obj[prop];\n if (v === void 0) {\n v = obj;\n }\n return v;\n}\n\nfunction getSpecialDefault(obj, prop) {\n var def = getDefault(obj, prop);\n if (Array.isArray(def)) {\n return def.join(',');\n }\n return def;\n}\n\nfunction distinct(key, ckey) {\n var dict = {};\n for (var i = 0; i < this.length; i += 1) {\n var item = this[i];\n var v = item.Values || item;\n var val = key == null ? v : v[key];\n var prop = getSpecialDefault(val, ckey);\n if (dict[prop] == null) {\n dict[prop] = val;\n }\n }\n if (Object.values == null) {\n Object.values = function (obj) {\n var val = [];\n\n for (var k in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, k)) {\n val.push(obj[k]);\n }\n }\n return val;\n };\n }\n return Object.values(dict);\n}\n\nfunction toLowerCase(str) {\n if (str == null) {\n return String(null);\n }\n return String(str).toLowerCase();\n}\n\nfunction onFilterChecked(holder, cball) {\n return function onchecked(e) {\n if (e != null) {\n var target = $(e.target);\n target.data('item').__checked = target.prop('checked');\n }\n var cbs = holder.find('.data-filter-items-item input');\n for (var i = 0; i < cbs.length; i += 1) {\n if (!$(cbs[i]).prop('checked')) {\n cball.prop('checked', false);\n return;\n }\n }\n cball.prop('checked', true);\n };\n}\n\nfunction doFillFilterItem(holder, array, cball) {\n var onchecked = onFilterChecked(holder, cball);\n for (var i = 0; i < array.length; i += 1) {\n var item = array[i];\n var itemdiv = $('
');\n var wrapper = $('');\n var checkbox = $('').data('item', item);\n var displayValue = void 0;\n if (!this.filterCustom && typeof this.filter === 'function') {\n var o = {};\n o[this.key] = item;\n displayValue = this.filter(o);\n } else {\n displayValue = getDefault(item, 'DisplayValue');\n }\n\n checkbox.data('text', displayValue).prop('checked', item.__checked).on('change', onchecked);\n wrapper.append(checkbox);\n wrapper.append($('