{"version":3,"sources":["webpack:///./src/components/kaizen/processList.vue?6359","webpack:///./src/components/kaizen/processList.vue?7217","webpack:///./src/components/kaizen/processList.vue?2ad2","webpack:///./src/components/kaizen/processList.vue","webpack:///./node_modules/vuetify/lib/components/VRadioGroup/VRadioGroup.js","webpack:///./node_modules/vuetify/lib/components/VRadioGroup/VRadio.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","_v","model","value","callback","$$v","procesoSeleccionado","expression","_l","p","key","$set","processSelected","staticRenderFns","logoColibri","procesos","isLoading","showProcessList","length","getProcessList","GilgameshApi","get","then","r","d","data","catch","x","console","log","finally","newP","filter","process","name","coreKaizen","component","VBtn","VCard","VCardActions","VCardText","VCardTitle","VContainer","VDivider","VFlex","VLayout","VRadio","VRadioGroup","VSpacer","extend","mixins","prop","event","provide","radio","props","column","type","Boolean","default","height","Number","String","mandatory","row","internalTabIndex","radios","computed","classes","watch","hasError","internalValue","mounted","setErrorState","setActiveRadio","methods","genDefaultSlot","role","options","call","onRadioChange","disabled","hasInput","$nextTick","validate","onRadioBlur","e","relatedTarget","classList","contains","$emit","register","isActive","valueComparator","$on","push","val","index","parentError","unregister","$off","findIndex","splice","_extends","Object","assign","target","i","arguments","source","prototype","hasOwnProperty","_toConsumableArray","arr","Array","isArray","arr2","from","inheritAttrs","color","label","onIcon","offIcon","readonly","isFocused","computedData","setTextColor","isDisabled","themeClasses","computedColor","validationState","computedIcon","hasState","isReadonly","beforeDestroy","genInput","_Selectable$options$m","_len","args","_key","apply","concat","genLabel","on","click","onChange","for","id","dark","focused","light","$slots","genRadio","_uid","$attrs","genRipple","onFocus","onBlur","onKeydown","h"],"mappings":"oHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACA,EAAG,WAAW,CAACA,EAAG,SAAS,CAACE,MAAM,CAAC,IAAM,GAAG,aAAa,KA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,SAAgBvE,GACpB5F,KAAKkI,WAAY,EACjBlI,KAAKgG,MAAM,OAAQJ,IAEvB2D,SAAU,WACFvJ,KAAKqI,YAAcrI,KAAK2I,YACvB3I,KAAKqI,YAAgBrI,KAAKkG,UAAalG,KAAK4D,MAAMS,WACnDrE,KAAKgG,MAAM,SAAUhG,KAAKS,QAGlC2J,UAAW,cAEftK,OAAQ,SAAgBuK,GACpB,OAAOA,EAAE,MAAOrK,KAAKmI,aAAc,CAACnI,KAAK8J,WAAY9J,KAAKoJ,gB","file":"js/processlist.a274a906.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',[_c('v-layout',[_c('v-flex',{attrs:{\"sm6\":\"\",\"offset-sm1\":\"\"}},[_c('v-card',[_c('v-card-title',{staticClass:\"headline grey lighten-2\",attrs:{\"primary-title\":\"\"}},[_c('font-awesome-icon',{attrs:{\"icon\":\"list-ul\"}}),_vm._v(\" Lista de procesos\\n \")],1),_c('v-card-text',[_c('v-radio-group',{attrs:{\"row\":\"\"},model:{value:(_vm.procesoSeleccionado),callback:function ($$v) {_vm.procesoSeleccionado=$$v},expression:\"procesoSeleccionado\"}},_vm._l((_vm.procesos),function(p){return _c('v-radio',{key:(\"\" + (p.process)),attrs:{\"label\":(\"\" + (p.name))},model:{value:(p.process),callback:function ($$v) {_vm.$set(p, \"process\", $$v)},expression:\"p.process\"}})}),1)],1),_c('v-divider'),_c('v-card-actions',[_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"primary\",\"flat\":\"\",\"to\":(\"/process/start/\" + _vm.procesoSeleccionado),\"disabled\":!_vm.processSelected}},[_vm._v(\"\\n Iniciar Gestión\\n \")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component } from 'vue-property-decorator'\nimport { coreKaizen } from '@/common/coreKaizen'\nimport { AxiosResponse } from 'axios'\nimport { processListModel } from '@/models/processListModel';\n\n@Component\nexport default class processlist extends coreKaizen {\n logoColibri: NodeRequire = require('@/assets/logoColibri.png')\n procesos: processListModel[] = []\n procesoSeleccionado: number = 0\n isLoading: boolean = false\n\n mounted() {\n this.showProcessList()\n }\n\n get processSelected(): boolean {\n return this.procesoSeleccionado !== 0\n }\n\n get processName(): string {\n let newP = this.procesos.filter(x => x.process === this.procesoSeleccionado);\n return newP && newP.length > 0 ? newP[0].name : ''\n }\n\n showProcessList() {\n if (this.procesos.length === 0) {\n this.getProcessList()\n }\n this.procesoSeleccionado = 0\n }\n\n getProcessList() {\n this.isLoading = true\n this.GilgameshApi.get('kanban/processes/1')\n .then(r => r as AxiosResponse)\n .then(d => {\n this.procesos = d.data\n })\n .catch(x => console.log('reason: ' + x))\n .finally(() => this.isLoading = false)\n }\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/vuetify-loader/lib/loader.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./processList.vue?vue&type=script&lang=ts&charset=utf-8&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/vuetify-loader/lib/loader.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./processList.vue?vue&type=script&lang=ts&charset=utf-8&\"","import { render, staticRenderFns } from \"./processList.vue?vue&type=template&id=3fa8bfff&scoped=true&\"\nimport script from \"./processList.vue?vue&type=script&lang=ts&charset=utf-8&\"\nexport * from \"./processList.vue?vue&type=script&lang=ts&charset=utf-8&\"\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 \"3fa8bfff\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!C:/dev/Kaizen/Colibri/node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib'\nimport { VCard } from 'vuetify/lib'\nimport { VCardActions } from 'vuetify/lib'\nimport { VCardText } from 'vuetify/lib'\nimport { VCardTitle } from 'vuetify/lib'\nimport { VContainer } from 'vuetify/lib'\nimport { VDivider } from 'vuetify/lib'\nimport { VFlex } from 'vuetify/lib'\nimport { VLayout } from 'vuetify/lib'\nimport { VRadio } from 'vuetify/lib'\nimport { VRadioGroup } from 'vuetify/lib'\nimport { VSpacer } from 'vuetify/lib'\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCardTitle,VContainer,VDivider,VFlex,VLayout,VRadio,VRadioGroup,VSpacer})\n","// Styles\nimport '../../../src/stylus/components/_selection-controls.styl';\nimport '../../../src/stylus/components/_radio-group.styl';\n// Components\nimport VInput from '../VInput';\n// Mixins\nimport Comparable from '../../mixins/comparable';\nimport { provide as RegistrableProvide } from '../../mixins/registrable';\n/* @vue/component */\nexport default VInput.extend({\n name: 'v-radio-group',\n mixins: [Comparable, RegistrableProvide('radio')],\n model: {\n prop: 'value',\n event: 'change'\n },\n provide: function provide() {\n return {\n radio: this\n };\n },\n\n props: {\n column: {\n type: Boolean,\n default: true\n },\n height: {\n type: [Number, String],\n default: 'auto'\n },\n mandatory: {\n type: Boolean,\n default: true\n },\n name: String,\n row: Boolean,\n // If no value set on VRadio\n // will match valueComparator\n // force default to null\n value: {\n default: null\n }\n },\n data: function data() {\n return {\n internalTabIndex: -1,\n radios: []\n };\n },\n computed: {\n classes: function classes() {\n return {\n 'v-input--selection-controls v-input--radio-group': true,\n 'v-input--radio-group--column': this.column && !this.row,\n 'v-input--radio-group--row': this.row\n };\n }\n },\n watch: {\n hasError: 'setErrorState',\n internalValue: 'setActiveRadio'\n },\n mounted: function mounted() {\n this.setErrorState(this.hasError);\n this.setActiveRadio();\n },\n\n methods: {\n genDefaultSlot: function genDefaultSlot() {\n return this.$createElement('div', {\n staticClass: 'v-input--radio-group__input',\n attrs: {\n role: 'radiogroup'\n }\n }, VInput.options.methods.genDefaultSlot.call(this));\n },\n onRadioChange: function onRadioChange(value) {\n if (this.disabled) return;\n this.hasInput = true;\n this.internalValue = value;\n this.setActiveRadio();\n this.$nextTick(this.validate);\n },\n onRadioBlur: function onRadioBlur(e) {\n if (!e.relatedTarget || !e.relatedTarget.classList.contains('v-radio')) {\n this.hasInput = true;\n this.$emit('blur', e);\n }\n },\n register: function register(radio) {\n radio.isActive = this.valueComparator(this.internalValue, radio.value);\n radio.$on('change', this.onRadioChange);\n radio.$on('blur', this.onRadioBlur);\n this.radios.push(radio);\n },\n setErrorState: function setErrorState(val) {\n for (var index = this.radios.length; --index >= 0;) {\n this.radios[index].parentError = val;\n }\n },\n setActiveRadio: function setActiveRadio() {\n for (var index = this.radios.length; --index >= 0;) {\n var radio = this.radios[index];\n radio.isActive = this.valueComparator(this.internalValue, radio.value);\n }\n },\n unregister: function unregister(radio) {\n radio.$off('change', this.onRadioChange);\n radio.$off('blur', this.onRadioBlur);\n var index = this.radios.findIndex(function (r) {\n return r === radio;\n });\n /* istanbul ignore else */\n if (index > -1) this.radios.splice(index, 1);\n }\n }\n});\n//# sourceMappingURL=VRadioGroup.js.map","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\n// Styles\nimport '../../../src/stylus/components/_radios.styl';\n// Components\nimport VIcon from '../VIcon';\nimport VLabel from '../VLabel';\n// Mixins\nimport Colorable from '../../mixins/colorable';\nimport Rippleable from '../../mixins/rippleable';\nimport Themeable from '../../mixins/themeable';\nimport Selectable from '../../mixins/selectable';\nimport { inject as RegistrableInject } from '../../mixins/registrable';\n/* @vue/component */\nexport default {\n name: 'v-radio',\n mixins: [Colorable, Rippleable, RegistrableInject('radio', 'v-radio', 'v-radio-group'), Themeable],\n inheritAttrs: false,\n props: {\n color: {\n type: String,\n default: 'accent'\n },\n disabled: Boolean,\n label: String,\n onIcon: {\n type: String,\n default: '$vuetify.icons.radioOn'\n },\n offIcon: {\n type: String,\n default: '$vuetify.icons.radioOff'\n },\n readonly: Boolean,\n value: null\n },\n data: function data() {\n return {\n isActive: false,\n isFocused: false,\n parentError: false\n };\n },\n computed: {\n computedData: function computedData() {\n return this.setTextColor(!this.parentError && this.isActive && this.color, {\n staticClass: 'v-radio',\n 'class': _extends({\n 'v-radio--is-disabled': this.isDisabled,\n 'v-radio--is-focused': this.isFocused\n }, this.themeClasses)\n });\n },\n computedColor: function computedColor() {\n return this.isActive ? this.color : this.radio.validationState || false;\n },\n computedIcon: function computedIcon() {\n return this.isActive ? this.onIcon : this.offIcon;\n },\n hasState: function hasState() {\n return this.isActive || !!this.radio.validationState;\n },\n isDisabled: function isDisabled() {\n return this.disabled || !!this.radio.disabled;\n },\n isReadonly: function isReadonly() {\n return this.readonly || !!this.radio.readonly;\n }\n },\n mounted: function mounted() {\n this.radio.register(this);\n },\n beforeDestroy: function beforeDestroy() {\n this.radio.unregister(this);\n },\n\n methods: {\n genInput: function genInput() {\n var _Selectable$options$m;\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n // We can't actually use the mixin directly because\n // it's made for standalone components, but its\n // genInput method is exactly what we need\n return (_Selectable$options$m = Selectable.options.methods.genInput).call.apply(_Selectable$options$m, [this].concat(_toConsumableArray(args)));\n },\n genLabel: function genLabel() {\n return this.$createElement(VLabel, {\n on: { click: this.onChange },\n attrs: {\n for: this.id\n },\n props: {\n color: this.radio.validationState || '',\n dark: this.dark,\n focused: this.hasState,\n light: this.light\n }\n }, this.$slots.label || this.label);\n },\n genRadio: function genRadio() {\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input'\n }, [this.genInput('radio', _extends({\n name: this.radio.name || (this.radio._uid ? 'v-radio-' + this.radio._uid : false),\n value: this.value\n }, this.$attrs)), this.genRipple(this.setTextColor(this.computedColor)), this.$createElement(VIcon, this.setTextColor(this.computedColor, {\n props: {\n dark: this.dark,\n light: this.light\n }\n }), this.computedIcon)]);\n },\n onFocus: function onFocus(e) {\n this.isFocused = true;\n this.$emit('focus', e);\n },\n onBlur: function onBlur(e) {\n this.isFocused = false;\n this.$emit('blur', e);\n },\n onChange: function onChange() {\n if (this.isDisabled || this.isReadonly) return;\n if (!this.isDisabled && (!this.isActive || !this.radio.mandatory)) {\n this.$emit('change', this.value);\n }\n },\n onKeydown: function onKeydown() {}\n },\n render: function render(h) {\n return h('div', this.computedData, [this.genRadio(), this.genLabel()]);\n }\n};\n//# sourceMappingURL=VRadio.js.map"],"sourceRoot":""}