{"version":3,"sources":["webpack:///./src/views/feedback/details/FeedbackQuestions.vue?a371","webpack:///./src/services/api/feedback.questiongroups.service.ts","webpack:///./src/services/api/feedback.questiontypes.service.ts","webpack:///./src/views/feedback/details/FeedbackQuestions.vue","webpack:///./src/views/feedback/details/FeedbackQuestions.vue?86f5","webpack:///./src/views/feedback/details/FeedbackQuestions.vue?0de7"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","feedback","columns","primary","actions","staticRenderFns","FeedbackQuestionGroupsEndpoint","request","Get","baseUrl","GetQueryStringByObject","idFeedbackQuestionGroup","entity","Post","command","Put","id","Delete","idFeedbackQuestionType","apiService","feedbackQuestionGroupService","feedbackQuestionTypeService","groups","questionTypes","text","value","type","Text","editable","editableClass","editableRules","$rules","minLenght","Dropdown","required","arg","items","itemText","itemValue","filterable","Interger","title","icon","visible","isValid","isLoading","init","$route","query","idFeedback","includes","orderBy","OrderId","take","GetList","then","result","data","catch","error","console","log","finally","typeRequest","idLanguage","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,WAAW,CAACE,MAAM,CAAC,SAAY,iBAAoBN,EAAIO,SAAmB,WAAI,aAAc,QAAUP,EAAIQ,QAAQ,eAAgB,EAAK,QAAUR,EAAIS,QAAQ,QAAUT,EAAIU,YAAY,IAChSC,EAAkB,G,0LCKTC,EAAiC,6BAEjC,EAAb,kLACUC,GACN,OAAOZ,KAAKa,IAAL,UACFb,KAAKc,SADH,OACaH,EADb,YAC+CX,KAAKe,uBAAuBH,OAHtF,gCAOYA,GACR,OAAOZ,KAAKa,IAAL,UACFb,KAAKc,SADH,OACaH,EADb,YAC+CC,EAAQI,wBADvD,YAEDhB,KAAKe,uBAAuBH,OAVtC,6BAcOK,GACL,OAAOjB,KAAKkB,KAAL,UAAqBlB,KAAKc,SAA1B,OAAoCH,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QAAQ,GAAGiC,IAAIV,MAAO9B,KAAK4B,cAAc,GAE9C5B,KAAKO,QAAQ,GAAGiC,IAAIC,MAAQzC,KAAK2B,OACjC3B,KAAKO,QAAQ,GAAGiC,IAAIV,MAAO9B,KAAK2B,OAAO,GA1G3C,+GAAmD,QACtB,gBAA1B,eAAO,oB,sCACA,gBAAP,kB,+BAFkB,EAAqB,gBADzC,QACoB,WC5B2Z,I,YCO5a2C,EAAY,eACd,EACAxE,EACAY,GACA,EACA,KACA,KACA,MAIa,aAAA4D,E","file":"js/chunk-2d0b39df.50eb40d9.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('DataGrid',{attrs:{\"endpoint\":(\"api/feedbacks/\" + (_vm.feedback.idFeedback) + \"/questions\"),\"columns\":_vm.columns,\"enableReorder\":true,\"primary\":_vm.primary,\"actions\":_vm.actions}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { ListResponse } from \"@/models/grids/list.response\";\r\nimport { CreateFeedbackQuestionGroupCommand, EditFeedbackQuestionGroupCommand } from \"@/server/app.commands\";\r\nimport { FeedbackQuestionGroupDto, FeedbackStatsDto } from \"@/server/app.dtos\";\r\nimport { GetFeedbackQuestionGroupDtosQuery, GetSingleFeedbackQuestionGroupDtoQuery } from \"@/server/app.queries\";\r\nimport { AuthenticatedService } from \"../abstract/base.service\";\r\n\r\nexport const FeedbackQuestionGroupsEndpoint = `api/feedbackquestiongroups`;\r\n\r\nexport class FeedbackQuestionGroupsService extends AuthenticatedService {\r\n GetList(request: GetFeedbackQuestionGroupDtosQuery): Promise> {\r\n return this.Get>(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}?${this.GetQueryStringByObject(request)}`\r\n );\r\n }\r\n\r\n GetSingle(request: GetSingleFeedbackQuestionGroupDtoQuery): Promise {\r\n return this.Get(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${request.idFeedbackQuestionGroup\r\n }?${this.GetQueryStringByObject(request)}`\r\n );\r\n }\r\n\r\nCreate(entity: CreateFeedbackQuestionGroupCommand): Promise < number > {\r\n return this.Post(`${this.baseUrl}${FeedbackQuestionGroupsEndpoint}`, entity);\r\n}\r\n\r\nEdit(command: EditFeedbackQuestionGroupCommand): Promise < number > {\r\n return this.Put(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${command.idFeedbackQuestionGroup}`,\r\n command\r\n );\r\n}\r\n\r\nDeleteById(id: number): Promise < number > {\r\n return this.Delete(`${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${id}`);\r\n}\r\n}\r\n","import { ListResponse } from \"@/models/grids/list.response\";\r\nimport { CreateFeedbackQuestionGroupCommand, EditFeedbackQuestionGroupCommand } from \"@/server/app.commands\";\r\nimport { FeedbackQuestionTypeDto } from \"@/server/app.dtos\";\r\nimport { GetFeedbackQuestionTypesDtosQuery, GetSingleFeedbackQuestionTypeDtoQuery } from \"@/server/app.queries\";\r\nimport { AuthenticatedService } from \"../abstract/base.service\";\r\n\r\nexport const FeedbackQuestionGroupsEndpoint = `api/feedbackquestiontypes`;\r\n\r\nexport class FeedbackQuestionTypeService extends AuthenticatedService {\r\n GetList(request: GetFeedbackQuestionTypesDtosQuery): Promise {\r\n return this.Get(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}?${this.GetQueryStringByObject(request)}`\r\n );\r\n }\r\n\r\n GetSingle(request: GetSingleFeedbackQuestionTypeDtoQuery): Promise {\r\n return this.Get(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${\r\n request.idFeedbackQuestionType\r\n }?${this.GetQueryStringByObject(request)}`\r\n );\r\n }\r\n\r\n Create(entity: CreateFeedbackQuestionGroupCommand): Promise {\r\n return this.Post(`${this.baseUrl}${FeedbackQuestionGroupsEndpoint}`, entity);\r\n }\r\n\r\n Edit(command: EditFeedbackQuestionGroupCommand): Promise {\r\n return this.Put(\r\n `${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${command.idFeedbackQuestionGroup}`,\r\n command\r\n );\r\n }\r\n\r\n DeleteById(id: number): Promise {\r\n return this.Delete(`${this.baseUrl}${FeedbackQuestionGroupsEndpoint}/${id}`);\r\n }\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport {\r\n GridColumnTypes,\r\n GridColumn,\r\n GridAction} from \"@/models/grids/column\";\r\nimport { FeedbackDto, FeedbackQuestionGroup, FeedbackQuestionType ,LanguageDto } from \"@/server/app.dtos\";\r\nimport ConfigsService from \"@/services/api/configs.service\";\r\nimport { Getter } from \"vuex-class\";\r\nimport { FeedbackQuestionGroupsService } from \"@/services/api/feedback.questiongroups.service\";\r\nimport { FeedbackQuestionTypeService } from \"@/services/api/feedback.questiontypes.service\";\r\nimport { GetFeedbackQuestionGroupDtosIncludeOptions, GetFeedbackQuestionGroupDtosQuery, GetFeedbackQuestionGroupsDtosOrderOptions, GetFeedbackQuestionTypesDtosQuery } from \"@/server/app.queries\";\r\nimport { ListResponse } from \"@/models/grids/list.response\";\r\n\r\n@Component\r\nexport default class FeedbackQuestionsPage extends Vue {\r\n @Getter(\"currentLanguage\") currentLanguage!: LanguageDto;\r\n @Prop() feedback!: FeedbackDto;\r\n apiService: ConfigsService = new ConfigsService();\r\n feedbackQuestionGroupService: FeedbackQuestionGroupsService = new FeedbackQuestionGroupsService();\r\n feedbackQuestionTypeService: FeedbackQuestionTypeService = new FeedbackQuestionTypeService();\r\n groups: FeedbackQuestionGroup[] = [];\r\n questionTypes: FeedbackQuestionType[] = [];\r\n columns: GridColumn[] = [\r\n {\r\n text: \"Título\",\r\n value: \"title\",\r\n type: GridColumnTypes.Text,\r\n editable: true,\r\n editableClass: \"col-12\",\r\n editableRules: [this.$rules.minLenght(3)]\r\n },\r\n {\r\n text: \"Descripção\",\r\n value: \"description\",\r\n type: GridColumnTypes.Text,\r\n editable: true,\r\n editableClass: \"col-12\",\r\n editableRules: [this.$rules.minLenght(3)]\r\n },\r\n {\r\n text: \"Tipo de Pergunta\",\r\n value: \"idFeedbackQuestionType\",\r\n type: GridColumnTypes.Dropdown,\r\n editable: true,\r\n editableClass: \"col-12\",\r\n editableRules: [this.$rules.required],\r\n arg: {\r\n items: [],\r\n itemText: \"title\",\r\n itemValue: \"idFeedbackQuestionType\",\r\n value: null\r\n }\r\n },\r\n {\r\n text: \"Grupo de Questao\",\r\n value: \"idFeedbackQuestionGroup\",\r\n type: GridColumnTypes.Dropdown,\r\n editable: true,\r\n filterable: true,\r\n editableClass: \"col-12\",\r\n editableRules: [this.$rules.required],\r\n arg: {\r\n items: [],\r\n itemText: \"title\",\r\n itemValue: \"idFeedbackQuestionGroup\",\r\n value: null\r\n }\r\n },\r\n {\r\n text: \"Ponderacao\",\r\n value: \"reflection\",\r\n type: GridColumnTypes.Interger,\r\n editable: true,\r\n editableClass: \"col-12\", \r\n editableRules: [this.$rules.required]\r\n }\r\n ];\r\n actions: GridAction[] = [\r\n {\r\n title: \"Opções\",\r\n icon: \"las la-ellipsis-v\",\r\n visible: () => false\r\n }\r\n ];\r\n primary: string = \"idFeedbackQuestion\";\r\n isValid: boolean = false;\r\n isLoading: boolean = false;\r\n\r\n\r\n async created(){\r\n const request = new GetFeedbackQuestionGroupDtosQuery();\r\n request.init(this.$route.query);\r\n request.idFeedback = this.feedback.idFeedback\r\n request.includes = new GetFeedbackQuestionGroupDtosIncludeOptions();\r\n request.orderBy = GetFeedbackQuestionGroupsDtosOrderOptions.OrderId\r\n request.take = 20;\r\n await this.feedbackQuestionGroupService\r\n .GetList(request)\r\n .then((result: ListResponse) =>\r\n this.groups =(result.data)\r\n )\r\n .catch((error: any) => console.log(error))\r\n .finally(() => (this.isLoading = false));\r\n \r\n const typeRequest = new GetFeedbackQuestionTypesDtosQuery();\r\n typeRequest.init(this.$route.query);\r\n typeRequest.idLanguage=1;\r\n\r\n await this.feedbackQuestionTypeService\r\n .GetList(typeRequest)\r\n .then((result: FeedbackQuestionGroup[]) =>\r\n this.questionTypes =(result)\r\n )\r\n .catch((error: any) => console.log(error))\r\n .finally(() => (this.isLoading = false));\r\n\r\n this.columns[2].arg.items = this.questionTypes;\r\n this.columns[2].arg.value =this.questionTypes[0];\r\n\r\n this.columns[3].arg.items = this.groups;\r\n this.columns[3].arg.value =this.groups[0];\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackQuestions.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FeedbackQuestions.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FeedbackQuestions.vue?vue&type=template&id=3d847088&\"\nimport script from \"./FeedbackQuestions.vue?vue&type=script&lang=ts&\"\nexport * from \"./FeedbackQuestions.vue?vue&type=script&lang=ts&\"\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"],"sourceRoot":""}