%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/hr/web/js/
Upload File :
Create Path :
Current File : /var/www/html/hr/web/js/chunk-2d21ad28.b80d8ee2.js.map

{"version":3,"sources":["webpack:///./src/views/projects/ProjectAssignees.vue?abda","webpack:///./src/components/projects/AssigneesTable.vue?96ef","webpack:///src/components/projects/AssigneesTable.vue","webpack:///./src/components/projects/AssigneesTable.vue?f9e3","webpack:///./src/components/projects/AssigneesTable.vue","webpack:///src/views/projects/ProjectAssignees.vue","webpack:///./src/views/projects/ProjectAssignees.vue?cb96","webpack:///./src/views/projects/ProjectAssignees.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","loadingContent","$t","loadingSelect","users","on","searchUsers","model","value","callback","$$v","selectedAssignees","expression","assignSelectedUsers","assigneesList","tableHeader","removeAssigneePrompt","staticRenderFns","assignees","scopedSlots","_u","key","fn","ref","data","_l","tr","indextr","username","_v","_s","name","surname","email","phone","roles","role","id","$event","$emit","slot","title","i","class","component","projectId"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,cAAc,CAACG,MAAM,CAAC,QAAUP,EAAIQ,iBAAiB,CAACJ,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,mBAAmB,CAACE,YAAY,QAAQC,MAAM,CAAC,iBAAgB,EAAK,cAAcP,EAAIS,GAAG,wBAAwB,QAAUT,EAAIU,cAAc,aAAa,IAAI,UAAW,EAAK,QAAUV,EAAIW,MAAM,gBAAgB,GAAG,MAAQ,OAAO,WAAW,MAAMC,GAAG,CAAC,gBAAgBZ,EAAIa,aAAaC,MAAM,CAACC,MAAOf,EAAqB,kBAAEgB,SAAS,SAAUC,GAAMjB,EAAIkB,kBAAkBD,GAAKE,WAAW,uBAAuBf,EAAG,cAAc,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,eAAe,EACfF,gBAAgB,IAEpB,SAAF,CACI,YADJ,WAEM,MAAN,CACA,4BACA,+BACA,6BACA,6BACA,4BACA,iCAGI,mBAXJ,WAYM,IAAN,0CACQ,OAAR,QAEM,OAAN,IAGE,QAAF,CACI,aADJ,WACM,IAAN,OACM,KAAN,kBACM,EAAN,gDACQ,EAAR,wBACA,oBAAQ,OAAR,wBAEI,qBAPJ,SAOA,GAAM,IAAN,OACM,KAAN,YACQ,KAAR,UACQ,MAAR,SACQ,MAAR,wCACQ,KAAR,uCACQ,OAAR,WACU,EAAV,sBAII,eAlBJ,SAkBA,GAAM,IAAN,OACA,GAAQ,UAAR,eAAQ,OAAR,GACM,EAAN,oCACQ,EAAR,4GACQ,EAAR,kBACA,mBACQ,EAAR,0CAGI,YA3BJ,SA2BA,GAAM,IAAN,OACM,EAAN,+BACQ,EAAR,iBAGI,oBAhCJ,WAgCM,IAAN,OACM,KAAN,cACM,IAAN,GAAQ,UAAR,eAAQ,MAAR,+BACM,EAAN,sCACQ,EAAR,eACQ,EAAR,qBACQ,EAAR,iHACA,mBACQ,EAAR,yCACA,oBACQ,EAAR,yBAIE,QA7EF,WA8EI,KAAJ,gCACI,KAAJ,iBChHyW,ICOrW,EAAY,eACd,EACAT,EACAyB,GACA,EACA,KACA,WACA,MAIa,e","file":"js/chunk-2d21ad28.b80d8ee2.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"view-container\"},[_c('base-loader',{attrs:{\"loading\":_vm.loadingContent}},[_c('div',{staticClass:\"flex mb-5\"},[_c('base-multiselect',{staticClass:\"z-500\",attrs:{\"hide-selected\":true,\"input-label\":_vm.$t('projects.assignUsers'),\"loading\":_vm.loadingSelect,\"max-height\":200,\"multiple\":true,\"options\":_vm.users,\"options-limit\":20,\"label\":\"name\",\"track-by\":\"id\"},on:{\"search-change\":_vm.searchUsers},model:{value:(_vm.selectedAssignees),callback:function ($$v) {_vm.selectedAssignees=$$v},expression:\"selectedAssignees\"}}),_c('base-button',{staticClass:\"self-center mt-5 p-3 ml-2\",attrs:{\"icon\":\"plus\"},on:{\"click\":_vm.assignSelectedUsers}})],1),_c('assignees-table',{staticClass:\"z-10\",attrs:{\"assignees\":_vm.assigneesList,\"header\":_vm.tableHeader},on:{\"delete\":_vm.removeAssigneePrompt}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('vs-table',{attrs:{\"data\":_vm.assignees},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.data;\nreturn _vm._l((data),function(tr,indextr){return _c('vs-tr',{key:indextr,attrs:{\"data\":tr}},[_c('vs-td',{attrs:{\"data\":tr.username}},[_vm._v(\" \"+_vm._s(tr.name)+\" \")]),_c('vs-td',{attrs:{\"data\":tr.surname}},[_vm._v(\" \"+_vm._s(tr.surname)+\" \")]),_c('vs-td',{attrs:{\"data\":tr.email}},[_c('a',{attrs:{\"href\":(\"mailto:\" + (tr.email))}},[_vm._v(\" \"+_vm._s(tr.email)+\" \")])]),_c('vs-td',{attrs:{\"data\":tr.phone}},[_c('a',{attrs:{\"href\":(\"tel:\" + (tr.phone))}},[_vm._v(\" \"+_vm._s(tr.phone)+\" \")])]),_c('vs-td',{attrs:{\"data\":tr.roles[0].name}},_vm._l((tr.roles),function(role){return _c('span',{key:role.id},[_c('vs-chip',{staticClass:\"text-black\"},[_vm._v(_vm._s(role.name))])],1)}),0),_c('vs-td',{staticClass:\"text-right\"},[_c('div',{staticClass:\"flex justify-end\"},[_c('vx-tooltip',{attrs:{\"text\":_vm.$t('buttons.remove'),\"position\":\"top\"}},[_c('base-button',{staticClass:\"self-end px-3 mx-px\",attrs:{\"color\":\"danger\",\"icon\":\"trash\"},on:{\"click\":function($event){return _vm.$emit('delete', tr.id)}}})],1)],1)])],1)})}}])},[_c('template',{slot:\"thead\"},_vm._l((_vm.header),function(title,i){return _c('vs-th',{key:i,staticClass:\"text-base\",class:{'float-right': title === _vm.$t('users.table.actions')}},[_vm._v(_vm._s(title))])}),1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\n  <div>\n    <vs-table :data=\"assignees\">\n\n      <template slot=\"thead\">\n        <vs-th :key=\"i\" class=\"text-base\" v-for=\"(title, i) in header\"\n               :class=\"{'float-right': title === $t('users.table.actions')}\">{{ title }}</vs-th>\n      </template>\n\n      <template slot-scope=\"{data}\">\n        <vs-tr :data=\"tr\" :key=\"indextr\" v-for=\"(tr, indextr) in data\">\n          <vs-td :data=\"tr.username\">\n            {{ tr.name }}\n          </vs-td>\n          <vs-td :data=\"tr.surname\">\n            {{ tr.surname }}\n          </vs-td>\n          <vs-td :data=\"tr.email\">\n            <a :href=\"`mailto:${tr.email}`\">\n              {{ tr.email }}\n            </a>\n          </vs-td>\n          <vs-td :data=\"tr.phone\">\n            <a :href=\"`tel:${tr.phone}`\">\n              {{ tr.phone }}\n            </a>\n          </vs-td>\n          <vs-td :data=\"tr.roles[0].name\">\n            <span :key=\"role.id\" v-for=\"role in tr.roles\"><vs-chip class=\"text-black\">{{ role.name }}</vs-chip></span>\n          </vs-td>\n          <vs-td class=\"text-right\">\n            <div class=\"flex justify-end\">\n              <vx-tooltip :text=\"$t('buttons.remove')\" position=\"top\">\n                <base-button @click=\"$emit('delete', tr.id)\" class=\"self-end px-3 mx-px\" color=\"danger\" icon=\"trash\"/>\n              </vx-tooltip>\n            </div>\n          </vs-td>\n        </vs-tr>\n      </template>\n    </vs-table>\n  </div>\n</template>\n\n<script>\n\n  export default {\n    name: 'UsersTable',\n    components: {},\n    props: {\n      header: {\n        type: Array,\n        required: true\n      },\n      assignees: {\n        type: Array,\n        required: true\n      },\n      loading: {\n        type: Boolean,\n        default: false\n      }\n    },\n  }\n</script>\n\n<style lang=\"scss\" scoped>\n</style>\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!./AssigneesTable.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!./AssigneesTable.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AssigneesTable.vue?vue&type=template&id=15be8702&scoped=true&\"\nimport script from \"./AssigneesTable.vue?vue&type=script&lang=js&\"\nexport * from \"./AssigneesTable.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  \"15be8702\",\n  null\n  \n)\n\nexport default component.exports","<template>\n  <div class=\"view-container\">\n    <base-loader :loading=\"loadingContent\">\n      <div class=\"flex mb-5\">\n        <base-multiselect\n          :hide-selected=\"true\"\n          :input-label=\"$t('projects.assignUsers')\"\n          :loading=\"loadingSelect\"\n          :max-height=\"200\"\n          :multiple=\"true\"\n          :options=\"users\"\n          :options-limit=\"20\"\n          @search-change=\"searchUsers\"\n          class=\"z-500\"\n          label=\"name\"\n          track-by=\"id\"\n          v-model=\"selectedAssignees\"/>\n        <base-button @click=\"assignSelectedUsers\" class=\"self-center mt-5 p-3 ml-2\" icon=\"plus\"/>\n      </div>\n\n      <assignees-table :assignees=\"assigneesList\"\n                       :header=\"tableHeader\"\n                       @delete=\"removeAssigneePrompt\"\n                       class=\"z-10\"/>\n    </base-loader>\n  </div>\n</template>\n\n<script>\n  import AssigneesTable from \"../../components/projects/AssigneesTable\";\n  import Users from \"../../services/Users\"\n  import Projects from \"../../services/Projects\"\n\n  export default {\n    name: \"UserConfig\",\n    components: {\n      AssigneesTable\n    },\n    data: () => ({\n      users: [],\n      assigneesList: [],\n      selectedAssignees: [],\n      projectId: null,\n      loadingSelect: false,\n      loadingContent: false\n    }),\n    computed: {\n      tableHeader () {\n        return ([\n          this.$t('users.table.name'),\n          this.$t('users.table.surname'),\n          this.$t('users.table.email'),\n          this.$t('users.table.phone'),\n          this.$t('users.table.role'),\n          this.$t('users.table.actions')\n        ])\n      },\n      formattedAssignees () {\n        let newAssignees = this.selectedAssignees.map((el) => {\n          return el.id;\n        });\n        return newAssignees\n      }\n    },\n    methods: {\n      getAssignees () {\n        this.loadingContent = true\n        Projects.getUsers(this.projectId).then(result => {\n          this.assigneesList = result.data\n        }).finally(() => this.loadingContent = false)\n      },\n      removeAssigneePrompt (id) {\n        this.$vs.dialog({\n          type: 'confirm',\n          color: 'danger',\n          title: this.$t('projects.removeAssigneeTitle'),\n          text: this.$t('projects.removeAssigneeText'),\n          accept: () => {\n            this.removeAssignee(id)\n          }\n        });\n      },\n      removeAssignee (id) {\n        let payload = {projectId: this.projectId, userId: id}\n        Projects.removeUser(payload).then(() => {\n          this.$notificationService.success(`${this.$t('users.user')} ${this.$t('notification.successRemoved')}`)\n          this.getAssignees()\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        })\n      },\n      searchUsers (query) {\n        Users.list(query).then(result => {\n          this.users = result.data\n        })\n      },\n      assignSelectedUsers () {\n        this.$vs.loading()\n        let payload = {projectId: this.projectId, users: {ids: this.formattedAssignees}}\n        Projects.addBulkUsers(payload).then(() => {\n          this.getAssignees()\n          this.selectedAssignees = []\n          this.$notificationService.success(`${this.$t('modules.users')} ${this.$t('notification.successAssign')}`)\n        }).catch(error => {\n          this.$notificationService.error(error.message)\n        }).finally(() => {\n          this.$vs.loading.close()\n        })\n      }\n    },\n    mounted () {\n      this.projectId = this.$route.params.id\n      this.getAssignees()\n    }\n  }\n</script>\n\n<style scoped>\n\n</style>\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!./ProjectAssignees.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!./ProjectAssignees.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectAssignees.vue?vue&type=template&id=5085ae98&scoped=true&\"\nimport script from \"./ProjectAssignees.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectAssignees.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  \"5085ae98\",\n  null\n  \n)\n\nexport default component.exports"],"sourceRoot":""}

Zerion Mini Shell 1.0