{"version":3,"sources":["webpack:///./node_modules/ag-grid-vue/lib/VueComponentFactory.js","webpack:///./node_modules/ag-grid-vue/lib/VueFrameworkComponentWrapper.js","webpack:///./node_modules/ag-grid-vue/lib/Utils.js","webpack:///./node_modules/ag-grid-vue/lib/AgGridColumn.js","webpack:///./node_modules/ag-grid-vue/lib/AgGridVue.js","webpack:///./node_modules/ag-grid-vue/main.js"],"names":["VueComponentFactory","getComponentType","parent","component","componentInstance","$parent","$options","components","extend","console","error","createAndMountComponent","params","componentType","details","data","Object","freeze","componentDependencies","forEach","dependency","$mount","__extends","extendStatics","d","b","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__","this","constructor","prototype","create","__decorate","decorators","target","key","desc","c","arguments","length","r","getOwnPropertyDescriptor","Reflect","decorate","i","defineProperty","_super","VueFrameworkComponentWrapper","_this","call","createWrapper","that","DynamicComponent","apply","init","hasMethod","name","wrapper","getFrameworkComponentInstance","callMethod","args","frameworkComponentInstance","addMethod","callback","overrideProcessing","methodName","autoParamsRefresh","processMethod","createComponent","VueComponent","createMethodProxy","mandatory","warn","destroy","getGui","$el","$destroy","getAgGridProperties","props","gridOptions","default","rowDataModel","undefined","watch","currentValue","previousValue","processChanges","ALL_PROPERTIES","propertyName","model","prop","event","AgGridColumn","hasChildColumns","slots","mapChildColumnDefs","map","column","toColDef","colDef","createColDefFromGridColumn","children","getChildColDefs","columnChildren","assign","attrs","BOOLEAN_PROPERTIES","property","colDefAsAny","from","reduce","o","keys","k","_a","AgGridVue","gridCreated","isDestroyed","gridReadyFired","emitRowModel","AgGridVue_1","kebabProperty","replace","toLowerCase","render","h","globalEventListener","eventType","updateModelIfUsed","kebabName","$listeners","$emit","skipChange","changes","processOnChange","api","columnApi","mounted","debounce","getRowData","frameworkComponentWrapper","copyAttributesToGridOptions","checkForBindingConflicts","rowData","getRowDataBasedOnBindings","$slots","columnDefs","gridParams","bind","seedBeanInstances","destroyed","thisAsAny","forEachNode","rowNode","push","ROW_DATA_EVENTS","indexOf","currentRowData","previousRowData","func","delay","timeout","later","window","clearTimeout","setTimeout","Boolean","__export","m","exports","value"],"mappings":"uKACI,EAAqC,WACrC,SAASA,KAgCT,OA9BAA,EAAoBC,iBAAmB,SAAUC,EAAQC,GACrD,GAAyB,kBAAdA,EAAwB,CAC/B,IAAIC,EAAoBF,EAAOG,QAAQC,SAASC,WAAWJ,GAC3D,OAAKC,EAIE,aAAII,OAAOJ,IAHdK,QAAQC,MAAM,yCAA2CP,EAAY,8BAC9D,MAMX,OAAOA,GAGfH,EAAoBW,wBAA0B,SAAUC,EAAQC,EAAeX,GAC3E,IAAIY,EAAU,CACVC,KAAM,CACFH,OAAQI,OAAOC,OAAOL,IAE1BV,OAAQA,GAERA,EAAOgB,uBACPhB,EAAOgB,sBAAsBC,SAAQ,SAAUC,GAC3C,OAAON,EAAQM,GAAclB,EAAOkB,MAG5C,IAAIjB,EAAY,IAAIU,EAAcC,GAElC,OADAX,EAAUkB,SACHlB,GAEJH,EAjC6B,GCDpCsB,EAAwC,WACxC,IAAIC,EAAgB,SAAUC,EAAGC,GAI7B,OAHAF,EAAgBP,OAAOU,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUJ,EAAGC,GAAKD,EAAEG,UAAYF,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAII,KAAKJ,EAAOA,EAAEK,eAAeD,KAAIL,EAAEK,GAAKJ,EAAEI,KAClEN,EAAcC,EAAGC,IAE5B,OAAO,SAAUD,EAAGC,GAEhB,SAASM,IAAOC,KAAKC,YAAcT,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEU,UAAkB,OAANT,EAAaT,OAAOmB,OAAOV,IAAMM,EAAGG,UAAYT,EAAES,UAAW,IAAIH,IAV3C,GAaxCK,EAA0C,SAAUC,EAAYC,EAAQC,EAAKC,GAC7E,IAA2HhB,EAAvHiB,EAAIC,UAAUC,OAAQC,EAAIH,EAAI,EAAIH,EAAkB,OAATE,EAAgBA,EAAOxB,OAAO6B,yBAAyBP,E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C,OAAO,EAGf,OAAO,IAInB,OAAO,GAEXuE,EAAUrF,UAAU4G,SAAW,SAAUqB,EAAMC,GAC3C,IAAIC,EACJ,OAAO,WACH,IAAIC,EAAQ,WACRH,KAEJI,OAAOC,aAAaH,GACpBA,EAAUE,OAAOE,WAAWH,EAAOF,KAI3C7C,EAAUwC,gBAAkB,CAAC,iBAAkB,iBAAkB,mBAAoB,mBACrF,EAAW,CACP,eAAKW,UACNnD,EAAUrF,UAAW,yBAAqB,GAC7C,EAAW,CACP,eAAK,CAAEkD,QAAS,WAAc,MAAO,OACtCmC,EAAUrF,UAAW,6BAAyB,GACjDqF,EAAYK,EAAc,EAAW,CACjC,kBAAK,aACL,eAAU,CACN1C,MAAO,EACPK,MAAO,EACPM,MAAO,KAEZ0B,GACIA,EAlKmB,CAmK5B,S,oCC3LF,SAASoD,EAASC,GACd,IAAK,IAAI/I,KAAK+I,EAAQC,EAAQ/I,eAAeD,KAAIgJ,EAAQhJ,GAAK+I,EAAE/I,IAEpEb,OAAOiC,eAAe4H,EAAS,aAAc,CAAEC,OAAO,IACtDH,EAAS,EAAQ","file":"js/chunk-vendors~06966321.00908fa8.js","sourcesContent":["import Vue from 'vue';\nvar VueComponentFactory = /** @class */ (function () {\n function VueComponentFactory() {\n }\n VueComponentFactory.getComponentType = function (parent, component) {\n if (typeof component === 'string') {\n var componentInstance = parent.$parent.$options.components[component];\n if (!componentInstance) {\n console.error(\"Could not find component with name of \" + component + \". Is it in Vue.components?\");\n return null;\n }\n return Vue.extend(componentInstance);\n }\n else {\n // assume a type\n return component;\n }\n };\n VueComponentFactory.createAndMountComponent = function (params, componentType, parent) {\n var details = {\n data: {\n params: Object.freeze(params),\n },\n parent: parent,\n };\n if (parent.componentDependencies) {\n parent.componentDependencies.forEach(function (dependency) {\n return details[dependency] = parent[dependency];\n });\n }\n var component = new componentType(details);\n component.$mount();\n return component;\n };\n return VueComponentFactory;\n}());\nexport { VueComponentFactory };\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { BaseComponentWrapper, Bean } from 'ag-grid-community';\nimport { VueComponentFactory } from './VueComponentFactory';\nvar VueFrameworkComponentWrapper = /** @class */ (function (_super) {\n __extends(VueFrameworkComponentWrapper, _super);\n function VueFrameworkComponentWrapper(parent) {\n var _this = _super.call(this) || this;\n _this.parent = parent;\n return _this;\n }\n VueFrameworkComponentWrapper.prototype.createWrapper = function (component) {\n var that = this;\n var DynamicComponent = /** @class */ (function (_super) {\n __extends(DynamicComponent, _super);\n function DynamicComponent() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n DynamicComponent.prototype.init = function (params) {\n _super.prototype.init.call(this, params);\n };\n DynamicComponent.prototype.hasMethod = function (name) {\n return wrapper.getFrameworkComponentInstance()[name] != null;\n };\n DynamicComponent.prototype.callMethod = function (name, args) {\n var componentInstance = this.getFrameworkComponentInstance();\n var frameworkComponentInstance = wrapper.getFrameworkComponentInstance();\n return frameworkComponentInstance[name].apply(componentInstance, args);\n };\n DynamicComponent.prototype.addMethod = function (name, callback) {\n wrapper[name] = callback;\n };\n DynamicComponent.prototype.overrideProcessing = function (methodName) {\n return that.parent.autoParamsRefresh && methodName === 'refresh';\n };\n DynamicComponent.prototype.processMethod = function (methodName, args) {\n if (methodName === 'refresh') {\n this.getFrameworkComponentInstance().params = args[0];\n }\n if (this.hasMethod(methodName)) {\n return this.callMethod(methodName, args);\n }\n return methodName === 'refresh';\n };\n DynamicComponent.prototype.createComponent = function (params) {\n return that.createComponent(component, params);\n };\n return DynamicComponent;\n }(VueComponent));\n var wrapper = new DynamicComponent();\n return wrapper;\n };\n VueFrameworkComponentWrapper.prototype.createComponent = function (component, params) {\n var componentType = VueComponentFactory.getComponentType(this.parent, component);\n if (!componentType) {\n return;\n }\n return VueComponentFactory.createAndMountComponent(params, componentType, this.parent);\n };\n VueFrameworkComponentWrapper.prototype.createMethodProxy = function (wrapper, methodName, mandatory) {\n return function () {\n if (wrapper.overrideProcessing(methodName)) {\n return wrapper.processMethod(methodName, arguments);\n }\n if (wrapper.hasMethod(methodName)) {\n return wrapper.callMethod(methodName, arguments);\n }\n if (mandatory) {\n console.warn('ag-Grid: Framework component is missing the method ' + methodName + '()');\n }\n return null;\n };\n };\n VueFrameworkComponentWrapper.prototype.destroy = function () {\n this.parent = null;\n };\n VueFrameworkComponentWrapper = __decorate([\n Bean('frameworkComponentWrapper')\n ], VueFrameworkComponentWrapper);\n return VueFrameworkComponentWrapper;\n}(BaseComponentWrapper));\nexport { VueFrameworkComponentWrapper };\nvar VueComponent = /** @class */ (function () {\n function VueComponent() {\n }\n VueComponent.prototype.getGui = function () {\n return this.component.$el;\n };\n VueComponent.prototype.destroy = function () {\n this.component.$destroy();\n };\n VueComponent.prototype.getFrameworkComponentInstance = function () {\n return this.component;\n };\n VueComponent.prototype.init = function (params) {\n this.component = this.createComponent(params);\n };\n return VueComponent;\n}());\n","import { ComponentUtil } from 'ag-grid-community';\nexport var getAgGridProperties = function () {\n var props = {\n gridOptions: {\n default: function () {\n return {};\n },\n },\n rowDataModel: undefined,\n };\n var watch = {\n rowDataModel: function (currentValue, previousValue) {\n this.processChanges('rowData', currentValue, previousValue);\n },\n };\n ComponentUtil.ALL_PROPERTIES.forEach(function (propertyName) {\n props[propertyName] = {};\n watch[propertyName] = function (currentValue, previousValue) {\n this.processChanges(propertyName, currentValue, previousValue);\n };\n });\n var model = {\n prop: 'rowDataModel',\n event: 'data-model-changed',\n };\n return [props, watch, model];\n};\n","import { ColDefUtil } from 'ag-grid-community';\nvar AgGridColumn = /** @class */ (function () {\n function AgGridColumn() {\n }\n AgGridColumn.hasChildColumns = function (slots) {\n return slots && slots.default && slots.default.length > 0;\n };\n AgGridColumn.mapChildColumnDefs = function (slots) {\n return slots.default.map(function (column) {\n return AgGridColumn.toColDef(column);\n });\n };\n AgGridColumn.toColDef = function (column) {\n var colDef = AgGridColumn.createColDefFromGridColumn(column);\n if (column.children && column.children.length > 0) {\n colDef.children = AgGridColumn.getChildColDefs(column.children);\n }\n return colDef;\n };\n AgGridColumn.getChildColDefs = function (columnChildren) {\n return columnChildren.map(function (column) {\n return AgGridColumn.createColDefFromGridColumn(column);\n });\n };\n AgGridColumn.createColDefFromGridColumn = function (column) {\n var colDef = {};\n AgGridColumn.assign(colDef, column.data.attrs);\n delete colDef.children;\n // booleans passed down just as is are here as property=\"\"\n // convert boolean props to a boolean here\n ColDefUtil.BOOLEAN_PROPERTIES.forEach(function (property) {\n var colDefAsAny = colDef;\n if (colDefAsAny[property] === '') {\n colDefAsAny[property] = true;\n }\n });\n return colDef;\n };\n AgGridColumn.assign = function (colDef, from) {\n // effectively Object.assign - here for IE compatibility\n return [from].reduce(function (r, o) {\n Object.keys(o).forEach(function (k) {\n r[k] = o[k];\n });\n return r;\n }, colDef);\n };\n return AgGridColumn;\n}());\nexport { AgGridColumn };\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { Component, Prop, Vue } from 'vue-property-decorator';\nimport { Bean, ComponentUtil, Grid } from 'ag-grid-community';\nimport { VueFrameworkComponentWrapper } from './VueFrameworkComponentWrapper';\nimport { getAgGridProperties } from './Utils';\nimport { AgGridColumn } from './AgGridColumn';\nvar _a = getAgGridProperties(), props = _a[0], watch = _a[1], model = _a[2];\nvar AgGridVue = /** @class */ (function (_super) {\n __extends(AgGridVue, _super);\n function AgGridVue() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.gridCreated = false;\n _this.isDestroyed = false;\n _this.gridReadyFired = false;\n _this.emitRowModel = null;\n return _this;\n }\n AgGridVue_1 = AgGridVue;\n AgGridVue.kebabProperty = function (property) {\n return property.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n };\n // noinspection JSUnusedGlobalSymbols, JSMethodCanBeStatic\n AgGridVue.prototype.render = function (h) {\n return h('div');\n };\n AgGridVue.prototype.globalEventListener = function (eventType, event) {\n if (this.isDestroyed) {\n return;\n }\n if (eventType === 'gridReady') {\n this.gridReadyFired = true;\n }\n this.updateModelIfUsed(eventType);\n // only emit if someone is listening\n // we allow both kebab and camelCase event listeners, so check for both\n var kebabName = AgGridVue_1.kebabProperty(eventType);\n if (this.$listeners[kebabName]) {\n this.$emit(kebabName, event);\n }\n else if (this.$listeners[eventType]) {\n this.$emit(eventType, event);\n }\n };\n AgGridVue.prototype.processChanges = function (propertyName, currentValue, previousValue) {\n if (this.gridCreated) {\n if (this.skipChange(propertyName, currentValue, previousValue)) {\n return;\n }\n var changes = {};\n changes[propertyName] = {\n currentValue: currentValue,\n previousValue: previousValue,\n };\n ComponentUtil.processOnChange(changes, this.gridOptions, this.gridOptions.api, this.gridOptions.columnApi);\n }\n };\n // noinspection JSUnusedGlobalSymbols\n AgGridVue.prototype.mounted = function () {\n var _this = this;\n // we debounce the model update to prevent a flood of updates in the event there are many individual\n // cell/row updates\n this.emitRowModel = this.debounce(function () {\n _this.$emit('data-model-changed', Object.freeze(_this.getRowData()));\n }, 20);\n var frameworkComponentWrapper = new VueFrameworkComponentWrapper(this);\n var gridOptions = ComponentUtil.copyAttributesToGridOptions(this.gridOptions, this);\n this.checkForBindingConflicts();\n gridOptions.rowData = this.getRowDataBasedOnBindings();\n if (AgGridColumn.hasChildColumns(this.$slots)) {\n gridOptions.columnDefs = AgGridColumn.mapChildColumnDefs(this.$slots);\n }\n var gridParams = {\n globalEventListener: this.globalEventListener.bind(this),\n seedBeanInstances: {\n frameworkComponentWrapper: frameworkComponentWrapper,\n },\n };\n new Grid(this.$el, gridOptions, gridParams);\n this.gridCreated = true;\n };\n // noinspection JSUnusedGlobalSymbols\n AgGridVue.prototype.destroyed = function () {\n if (this.gridCreated) {\n if (this.gridOptions.api) {\n this.gridOptions.api.destroy();\n }\n this.isDestroyed = true;\n }\n };\n AgGridVue.prototype.checkForBindingConflicts = function () {\n var thisAsAny = this;\n if ((thisAsAny.rowData || this.gridOptions.rowData) &&\n thisAsAny.rowDataModel) {\n console.warn('ag-grid: Using both rowData and rowDataModel. rowData will be ignored.');\n }\n };\n AgGridVue.prototype.getRowData = function () {\n var rowData = [];\n this.gridOptions.api.forEachNode(function (rowNode) {\n rowData.push(rowNode.data);\n });\n return rowData;\n };\n AgGridVue.prototype.updateModelIfUsed = function (eventType) {\n if (this.gridReadyFired &&\n this.$listeners['data-model-changed'] &&\n AgGridVue_1.ROW_DATA_EVENTS.indexOf(eventType) !== -1) {\n if (this.emitRowModel) {\n this.emitRowModel();\n }\n }\n };\n AgGridVue.prototype.getRowDataBasedOnBindings = function () {\n var thisAsAny = this;\n var rowDataModel = thisAsAny.rowDataModel;\n return rowDataModel ? rowDataModel :\n thisAsAny.rowData ? thisAsAny.rowData : thisAsAny.gridOptions.rowData;\n };\n /*\n * Prevents an infinite loop when using v-model for the rowData\n */\n AgGridVue.prototype.skipChange = function (propertyName, currentValue, previousValue) {\n if (this.gridReadyFired &&\n propertyName === 'rowData' &&\n this.$listeners['data-model-changed']) {\n if (currentValue === previousValue) {\n return true;\n }\n if (currentValue && previousValue) {\n var currentRowData = currentValue;\n var previousRowData = previousValue;\n if (currentRowData.length === previousRowData.length) {\n for (var i = 0; i < currentRowData.length; i++) {\n if (currentRowData[i] !== previousRowData[i]) {\n return false;\n }\n }\n return true;\n }\n }\n }\n return false;\n };\n AgGridVue.prototype.debounce = function (func, delay) {\n var timeout;\n return function () {\n var later = function () {\n func();\n };\n window.clearTimeout(timeout);\n timeout = window.setTimeout(later, delay);\n };\n };\n var AgGridVue_1;\n AgGridVue.ROW_DATA_EVENTS = ['rowDataChanged', 'rowDataUpdated', 'cellValueChanged', 'rowValueChanged'];\n __decorate([\n Prop(Boolean)\n ], AgGridVue.prototype, \"autoParamsRefresh\", void 0);\n __decorate([\n Prop({ default: function () { return []; } })\n ], AgGridVue.prototype, \"componentDependencies\", void 0);\n AgGridVue = AgGridVue_1 = __decorate([\n Bean('agGridVue'),\n Component({\n props: props,\n watch: watch,\n model: model,\n })\n ], AgGridVue);\n return AgGridVue;\n}(Vue));\nexport { AgGridVue };\n","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__export(require(\"./lib/AgGridVue\"));\n"],"sourceRoot":""}