\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n\r\n\r\n\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VDate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VDate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VDate.vue?vue&type=template&id=2e31bdb7&\"\nimport script from \"./VDate.vue?vue&type=script&lang=js&\"\nexport * from \"./VDate.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-layout',{staticClass:\"relative-position\",attrs:{\"align-center\":\"\",\"justify-center\":\"\",\"column\":\"\"}},[_c('v-flex',{staticClass:\"absolute\",staticStyle:{\"top\":\"0\",\"right\":\"0\"},attrs:{\"xs12\":\"\",\"sm3\":\"\",\"md2\":\"\"}},[_c('v-btn',{attrs:{\"outline\":\"\",\"fab\":\"\",\"small\":\"\",\"color\":\"primary\"},nativeOn:{\"click\":function($event){return _vm.loadData($event)}}},[_c('v-icon',[_vm._v(\"mdi-refresh\")])],1)],1),_c('v-flex',{staticClass:\"relative-position\",attrs:{\"xs12\":\"\",\"sm3\":\"\",\"md2\":\"\"}},[_c('v-select',{attrs:{\"items\":_vm.departamentos,\"label\":\"Descripcion\",\"item-text\":\"label\",\"item-value\":\"value\"},on:{\"input\":_vm.loadData},model:{value:(_vm.departamento),callback:function ($$v) {_vm.departamento=$$v},expression:\"departamento\"}})],1),_c('v-flex',{attrs:{\"xs12\":\"\"}},[_c('v-layout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\",\"row\":\"\",\"wrap\":\"\"}},[_c('v-flex',{attrs:{\"xs12\":\"\",\"md6\":\"\",\"align-center\":\"\",\"justify-center\":\"\",\"fill-height\":\"\"}},[_c('v-layout',{ref:\"tecnicosComparativo-legend\",attrs:{\"id\":\"tecnicosComparativo-legend\",\"align-center\":\"\",\"justify-center\":\"\",\"row\":\"\"}}),_c('v-layout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('bar-chart',{staticClass:\"item-flex relative-center max-width-500 max-height-300\",attrs:{\"data\":_vm.tecnicosComparativo.data,\"options\":_vm.tecnicosComparativo.opciones,\"width\":500,\"height\":300}})],1)],1),_c('v-flex',{attrs:{\"xs12\":\"\",\"md6\":\"\",\"align-center\":\"\",\"justify-center\":\"\",\"fill-height\":\"\"}},[_c('v-layout',{staticClass:\"relative-position pl-3\",attrs:{\"align-center\":\"\",\"justify-center\":\"\",\"row\":\"\"}},[_c('span',{ref:\"tecnicosTrabajo-legend\",staticClass:\" mb-2\",attrs:{\"id\":\"tecnicosTrabajo-legend\"}}),_c('span',{staticClass:\"absolute mb-2\",staticStyle:{\"right\":\"0\"}},[_c('v-menu',{attrs:{\"close-on-content-click\":false,\"nudge-bottom\":\"5\",\"offset-y\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"loading\":_vm.tecnicosTrabajo.loading,\"color\":\"primary\",\"outline\":\"\",\"flat\":\"\",\"icon\":\"\"}},on),[_c('v-icon',[_vm._v(\"settings\")])],1)]}}]),model:{value:(_vm.tecnicosTrabajo.menu),callback:function ($$v) {_vm.$set(_vm.tecnicosTrabajo, \"menu\", $$v)},expression:\"tecnicosTrabajo.menu\"}},[_c('v-list',[_c('v-list-tile',[_c('v-date',{staticClass:\"pt-0 mt-1 mb-0\",staticStyle:{\"width\":\"130px\"},attrs:{\"max\":_vm.tecnicosTrabajo.hasta,\"label\":\"Desde\",\"hide-details\":\"\"},model:{value:(_vm.tecnicosTrabajo.desde),callback:function ($$v) {_vm.$set(_vm.tecnicosTrabajo, \"desde\", $$v)},expression:\"tecnicosTrabajo.desde\"}})],1),_c('v-list-tile',[_c('v-date',{staticClass:\"pt-0 mt-3 mb-0\",staticStyle:{\"width\":\"130px\"},attrs:{\"min\":_vm.tecnicosTrabajo.desde,\"label\":\"Hasta\",\"hide-details\":\"\"},model:{value:(_vm.tecnicosTrabajo.hasta),callback:function ($$v) {_vm.$set(_vm.tecnicosTrabajo, \"hasta\", $$v)},expression:\"tecnicosTrabajo.hasta\"}})],1)],1)],1)],1)]),_c('v-layout',{attrs:{\"align-center\":\"\",\"justify-center\":\"\"}},[_c('bar-chart',{staticClass:\"item-flex relative-center max-width-500 max-height-300\",attrs:{\"data\":_vm.tecnicosTrabajo.data,\"options\":_vm.tecnicosTrabajo.opciones,\"width\":500,\"height\":300}})],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","function dataHandler(newData, oldData) {\n if (oldData) {\n var chart = this.$data._chart;\n var newDatasetLabels = newData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldDatasetLabels = oldData.datasets.map(function (dataset) {\n return dataset.label;\n });\n var oldLabels = JSON.stringify(oldDatasetLabels);\n var newLabels = JSON.stringify(newDatasetLabels);\n\n if (newLabels === oldLabels && oldData.datasets.length === newData.datasets.length) {\n newData.datasets.forEach(function (dataset, i) {\n var oldDatasetKeys = Object.keys(oldData.datasets[i]);\n var newDatasetKeys = Object.keys(dataset);\n var deletionKeys = oldDatasetKeys.filter(function (key) {\n return key !== '_meta' && newDatasetKeys.indexOf(key) === -1;\n });\n deletionKeys.forEach(function (deletionKey) {\n delete chart.data.datasets[i][deletionKey];\n });\n\n for (var attribute in dataset) {\n if (dataset.hasOwnProperty(attribute)) {\n chart.data.datasets[i][attribute] = dataset[attribute];\n }\n }\n });\n\n if (newData.hasOwnProperty('labels')) {\n chart.data.labels = newData.labels;\n this.$emit('labels:update');\n }\n\n if (newData.hasOwnProperty('xLabels')) {\n chart.data.xLabels = newData.xLabels;\n this.$emit('xlabels:update');\n }\n\n if (newData.hasOwnProperty('yLabels')) {\n chart.data.yLabels = newData.yLabels;\n this.$emit('ylabels:update');\n }\n\n chart.update();\n this.$emit('chart:update');\n } else {\n if (chart) {\n chart.destroy();\n this.$emit('chart:destroy');\n }\n\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n } else {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n\n this.$emit('chart:destroy');\n }\n\n this.renderChart(this.chartData, this.options);\n this.$emit('chart:render');\n }\n}\n\nexport var reactiveData = {\n data: function data() {\n return {\n chartData: null\n };\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport var reactiveProp = {\n props: {\n chartData: {\n type: Object,\n required: true,\n default: function _default() {}\n }\n },\n watch: {\n 'chartData': dataHandler\n }\n};\nexport default {\n reactiveData: reactiveData,\n reactiveProp: reactiveProp\n};","import Chart from 'chart.js';\nexport function generateChart(chartId, chartType) {\n return {\n render: function render(createElement) {\n return createElement('div', {\n style: this.styles,\n class: this.cssClasses\n }, [createElement('canvas', {\n attrs: {\n id: this.chartId,\n width: this.width,\n height: this.height\n },\n ref: 'canvas'\n })]);\n },\n props: {\n chartId: {\n default: chartId,\n type: String\n },\n width: {\n default: 400,\n type: Number\n },\n height: {\n default: 400,\n type: Number\n },\n cssClasses: {\n type: String,\n default: ''\n },\n styles: {\n type: Object\n },\n plugins: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n },\n data: function data() {\n return {\n _chart: null,\n _plugins: this.plugins\n };\n },\n methods: {\n addPlugin: function addPlugin(plugin) {\n this.$data._plugins.push(plugin);\n },\n generateLegend: function generateLegend() {\n if (this.$data._chart) {\n return this.$data._chart.generateLegend();\n }\n },\n renderChart: function renderChart(data, options) {\n if (this.$data._chart) this.$data._chart.destroy();\n this.$data._chart = new Chart(this.$refs.canvas.getContext('2d'), {\n type: chartType,\n data: data,\n options: options,\n plugins: this.$data._plugins\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.$data._chart) {\n this.$data._chart.destroy();\n }\n }\n };\n}\nexport var Bar = generateChart('bar-chart', 'bar');\nexport var HorizontalBar = generateChart('horizontalbar-chart', 'horizontalBar');\nexport var Doughnut = generateChart('doughnut-chart', 'doughnut');\nexport var Line = generateChart('line-chart', 'line');\nexport var Pie = generateChart('pie-chart', 'pie');\nexport var PolarArea = generateChart('polar-chart', 'polarArea');\nexport var Radar = generateChart('radar-chart', 'radar');\nexport var Bubble = generateChart('bubble-chart', 'bubble');\nexport var Scatter = generateChart('scatter-chart', 'scatter');\nexport default {\n Bar: Bar,\n HorizontalBar: HorizontalBar,\n Doughnut: Doughnut,\n Line: Line,\n Pie: Pie,\n PolarArea: PolarArea,\n Radar: Radar,\n Bubble: Bubble,\n Scatter: Scatter\n};","import { Bar } from 'vue-chartjs'\r\n\r\nexport default {\r\n extends: Bar,\r\n props: ['data', 'options'],\r\n watch: {\r\n data: {\r\n handler: function (val) {\r\n // this.$data._chart.update()\r\n this.$data._chart.destroy()\r\n this.renderChart_()\r\n },\r\n deep: true\r\n }\r\n },\r\n mounted () {\r\n this.renderChart_()\r\n },\r\n methods: {\r\n renderChart_ () {\r\n // this.chartData is created in the mixin.\r\n // If you want to pass options please create a local options object\r\n this.renderChart(this.data, this.options)\r\n if (this.options && this.options.legendIdContainer) {\r\n let legend = this.$data._chart.generateLegend()\r\n if (legend.length) {\r\n this.$parent.$emit('legendGenerated', {\r\n legend: legend,\r\n idContainer: this.options.legendIdContainer\r\n })\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","\r\n