@papaemmelab/isabl-web 0.3.10 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/isabl-web.common.js +624 -238
- package/dist/isabl-web.umd.js +624 -238
- package/dist/isabl-web.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/isabl-web.common.js
CHANGED
|
@@ -91168,7 +91168,7 @@ module.exports = overArg;
|
|
|
91168
91168
|
/***/ "9224":
|
|
91169
91169
|
/***/ (function(module) {
|
|
91170
91170
|
|
|
91171
|
-
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.
|
|
91171
|
+
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.14\",\"scripts\":{\"serve\":\"vue-cli-service serve\",\"lint\":\"vue-cli-service lint\",\"build-lib\":\"vue-cli-service build --target lib --name isabl-web ./src/main.js\",\"build-wc\":\"vue-cli-service build --target wc --name isabl-web ./src/components/*.vue\",\"build-wc-async\":\"vue-cli-service build --target wc-async --name isabl-web ./src/components/*.vue\",\"publish-app\":\"yarn version --patch && yarn build-lib && yarn publish --access public\",\"dev\":\"yarn build-lib --watch\",\"test:unit\":\"vue-cli-service test:unit\",\"test:e2e\":\"vue-cli-service test:e2e\",\"test:travis\":\"yarn test:e2e --headless\",\"test:submissions\":\"node tests/utils/create_test_submission.js\",\"test:report-coverage\":\"nyc report --reporter=text-lcov > coverage.lcov && codecov -t $CODECOV_TOKEN\",\"demo\":\"nodemon demo/demo-app.js\"},\"dependencies\":{\"@mdi/font\":\"^7.0.96\",\"ansi_up\":\"^5\",\"axios\":\"^0.21.1\",\"crossfilter\":\"^1.3.12\",\"crossfilter2\":\"^1.4.7\",\"d3-tip\":\"^0.9.1\",\"dc\":\"3.1.2\",\"detect-csv\":\"^1.1.0\",\"js-md5\":\"^0.7.3\",\"minify-css-string\":\"^1.0.0\",\"moment\":\"^2.22.2\",\"register-service-worker\":\"^1.5.2\",\"v-hotkey\":\"^0.6.0\",\"vue\":\"^2.5.16\",\"vue-clipboard2\":\"^0.2.1\",\"vue-gallery\":\"^1.4.0\",\"vue-highlightjs\":\"^1.3.3\",\"vue-json-excel\":\"^0.2.5\",\"vue-observe-visibility\":\"^0.4.6\",\"vue-router\":\"^3.0.1\",\"vue-upload-component\":\"^2.8.11\",\"vuetify\":\"2.6.10\",\"vuex\":\"^3.0.1\",\"vuex-router-sync\":\"^5.0.0\"},\"devDependencies\":{\"@cypress/code-coverage\":\"^1.10.1\",\"@vue/cli-plugin-babel\":\"^3.3.0\",\"@vue/cli-plugin-e2e-cypress\":\"^3.3.0\",\"@vue/cli-plugin-eslint\":\"^3.3.0\",\"@vue/cli-plugin-pwa\":\"^3.3.0\",\"@vue/cli-plugin-unit-jest\":\"^3.3.0\",\"@vue/cli-service\":\"^3.3.0\",\"@vue/eslint-config-prettier\":\"^3.0.5\",\"@vue/test-utils\":\"^1.0.0-beta.20\",\"axios-mock-adapter\":\"^1.15.0\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^23.0.1\",\"babel-plugin-istanbul\":\"^5.2.0\",\"codecov\":\"^3.6.1\",\"eslint-plugin-vuetify\":\"^1.1.0\",\"express\":\"^4.16.3\",\"html-webpack-plugin\":\"^3.2.0\",\"istanbul-lib-coverage\":\"^2.0.5\",\"mini-css-extract-plugin\":\"^0.4.2\",\"nyc\":\"^14.1.1\",\"sass\":\"^1.55.0\",\"sass-loader\":\"^7.0.1\",\"vue-template-compiler\":\"^2.5.16\",\"xlsx-populate\":\"^1.19.1\"},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not ie <= 8\"],\"main\":\"./dist/isabl-web.umd.min.js\",\"license\":\"MIT\",\"files\":[\"dist/isabl-web*.js\"],\"author\":\"Juan S. Medina - Juan E. Arango\",\"description\":\"Isabl Frontend of the MSK Academic License.\",\"bugs\":{\"url\":\"https://github.com/papaemmelab/isabl_web/issues\"},\"homepage\":\"https://github.com/papaemmelab/isabl_web#readme\"}");
|
|
91172
91172
|
|
|
91173
91173
|
/***/ }),
|
|
91174
91174
|
|
|
@@ -222354,15 +222354,16 @@ var EditProfileModal_component = normalizeComponent(
|
|
|
222354
222354
|
)
|
|
222355
222355
|
|
|
222356
222356
|
/* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
|
|
222357
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=template&id=
|
|
222358
|
-
var
|
|
222359
|
-
var
|
|
222357
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=template&id=070ec06c&
|
|
222358
|
+
var NewProjectModalvue_type_template_id_070ec06c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-modal',{attrs:{"show-modal":_vm.showModal,"max-width":"800px"},on:{"close-modal":_vm.closeModal},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Create Project")]},proxy:true},{key:"content",fn:function(){return [_c('v-container',{staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"title",staticClass:"pt-6",attrs:{"v-show":_vm.showModal,"rules":[_vm.rules.required],"error-messages":_vm.errorMessages.title,"label":"Project Title","data-test":"new-project-title-input"},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.project.title),callback:function ($$v) {_vm.$set(_vm.project, "title", $$v)},expression:"project.title"}})],1)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showOptionalFields),expression:"showOptionalFields"}],staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"shortTitle",attrs:{"rules":[_vm.rules.unicode, _vm.rules.min10],"error-messages":_vm.errorMessages.short_title,"label":"Project Short Title","data-test":"new-project-short-input","counter":"","dense":"","maxlength":"30","hint":"Think of the objective of the project."},model:{value:(_vm.project.shortTitle),callback:function ($$v) {_vm.$set(_vm.project, "shortTitle", $$v)},expression:"project.shortTitle"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-select',{ref:"group",attrs:{"items":_vm.groups,"return-object":"","item-text":"slug","label":"Group","dense":"","data-test":"new-project-groups-input"},model:{value:(_vm.project.group),callback:function ($$v) {_vm.$set(_vm.project, "group", $$v)},expression:"project.group"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('user-search-input',{ref:"principalInvestigator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.principal_investigator,"field":"principalInvestigator","label":"Principal Investigator","data-test":"new-project-pi-input","hint":"Laboratory head or principal investigator","dense":""},on:{"update-value":_vm.updateValue}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('user-search-input',{ref:"owner",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.owner,"field":"owner","label":"Project Owner","data-test":"new-project-owner-input","hint":"Who deals with the nitty-gritty of the project","dense":""},on:{"update-value":_vm.updateValue}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('user-search-input',{ref:"coordinator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.coordinator,"field":"coordinator","label":"Coordinator","data-test":"new-project-coord-input","hint":"Project manager or coordinator","dense":""},on:{"update-value":_vm.updateValue}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('user-search-input',{ref:"analyst",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.analyst,"field":"analyst","label":"Data Analyst","data-test":"new-project-analyst-input","hint":"Person responsible for the data analysis"},on:{"update-value":_vm.updateValue}})],1)],1)],1)],1)]},proxy:true},{key:"footer-actions",fn:function(){return [_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-optional-btn","text":""},on:{"click":_vm.toggleOptionalFields}},[_vm._v("Optional Fields")]),_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-create-btn","text":""},on:{"click":_vm.submit}},[_vm._v("Create")])]},proxy:true}])})}
|
|
222359
|
+
var NewProjectModalvue_type_template_id_070ec06c_staticRenderFns = []
|
|
222360
222360
|
|
|
222361
222361
|
|
|
222362
|
-
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=
|
|
222362
|
+
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=070ec06c&
|
|
222363
222363
|
|
|
222364
222364
|
// EXTERNAL MODULE: ./node_modules/lodash/has.js
|
|
222365
222365
|
var has = __webpack_require__("3852");
|
|
222366
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has);
|
|
222366
222367
|
|
|
222367
222368
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/GroupSearchInput.vue?vue&type=template&id=9914fc16&
|
|
222368
222369
|
var GroupSearchInputvue_type_template_id_9914fc16_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-autocomplete',{ref:"groupSearchInput",attrs:{"value":_vm.value,"rules":_vm.rules,"items":_vm.groups,"loading":_vm.isLoading,"search-input":_vm.groupsQuery,"label":_vm.label,"hint":_vm.hint,"no-filter":"","return-object":"","item-text":"name","item-value":"name"},on:{"update:searchInput":function($event){_vm.groupsQuery=$event},"update:search-input":function($event){_vm.groupsQuery=$event},"input":_vm.updateValue},scopedSlots:_vm._u([{key:"selection",fn:function(ref){
|
|
@@ -224521,7 +224522,7 @@ var UserSearchInput_component = normalizeComponent(
|
|
|
224521
224522
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=script&lang=js&
|
|
224522
224523
|
var cov_41uwsnrpn = function () {
|
|
224523
224524
|
var path = "/Users/juanes/papaemmelab/isabl_web/src/components/projects/NewProjectModal.vue";
|
|
224524
|
-
var hash = "
|
|
224525
|
+
var hash = "39bf82dbca3de1e3096f5011f5bbc47921642eb4";
|
|
224525
224526
|
var global = new Function("return this")();
|
|
224526
224527
|
var gcv = "__coverage__";
|
|
224527
224528
|
var coverageData = {
|
|
@@ -224553,247 +224554,367 @@ var cov_41uwsnrpn = function () {
|
|
|
224553
224554
|
column: 6
|
|
224554
224555
|
},
|
|
224555
224556
|
end: {
|
|
224556
|
-
line:
|
|
224557
|
+
line: 214,
|
|
224557
224558
|
column: 7
|
|
224558
224559
|
}
|
|
224559
224560
|
},
|
|
224560
224561
|
"3": {
|
|
224561
224562
|
start: {
|
|
224562
|
-
line:
|
|
224563
|
+
line: 208,
|
|
224563
224564
|
column: 8
|
|
224564
224565
|
},
|
|
224565
224566
|
end: {
|
|
224566
|
-
line:
|
|
224567
|
+
line: 208,
|
|
224567
224568
|
column: 26
|
|
224568
224569
|
}
|
|
224569
224570
|
},
|
|
224570
224571
|
"4": {
|
|
224571
224572
|
start: {
|
|
224572
|
-
line:
|
|
224573
|
+
line: 210,
|
|
224573
224574
|
column: 8
|
|
224574
224575
|
},
|
|
224575
224576
|
end: {
|
|
224576
|
-
line:
|
|
224577
|
-
column:
|
|
224577
|
+
line: 213,
|
|
224578
|
+
column: 9
|
|
224578
224579
|
}
|
|
224579
224580
|
},
|
|
224580
224581
|
"5": {
|
|
224582
|
+
start: {
|
|
224583
|
+
line: 211,
|
|
224584
|
+
column: 10
|
|
224585
|
+
},
|
|
224586
|
+
end: {
|
|
224587
|
+
line: 211,
|
|
224588
|
+
column: 48
|
|
224589
|
+
}
|
|
224590
|
+
},
|
|
224591
|
+
"6": {
|
|
224592
|
+
start: {
|
|
224593
|
+
line: 212,
|
|
224594
|
+
column: 10
|
|
224595
|
+
},
|
|
224596
|
+
end: {
|
|
224597
|
+
line: 212,
|
|
224598
|
+
column: 26
|
|
224599
|
+
}
|
|
224600
|
+
},
|
|
224601
|
+
"7": {
|
|
224602
|
+
start: {
|
|
224603
|
+
line: 218,
|
|
224604
|
+
column: 4
|
|
224605
|
+
},
|
|
224606
|
+
end: {
|
|
224607
|
+
line: 218,
|
|
224608
|
+
column: 26
|
|
224609
|
+
}
|
|
224610
|
+
},
|
|
224611
|
+
"8": {
|
|
224612
|
+
start: {
|
|
224613
|
+
line: 223,
|
|
224614
|
+
column: 6
|
|
224615
|
+
},
|
|
224616
|
+
end: {
|
|
224617
|
+
line: 231,
|
|
224618
|
+
column: 8
|
|
224619
|
+
}
|
|
224620
|
+
},
|
|
224621
|
+
"9": {
|
|
224622
|
+
start: {
|
|
224623
|
+
line: 224,
|
|
224624
|
+
column: 8
|
|
224625
|
+
},
|
|
224626
|
+
end: {
|
|
224627
|
+
line: 230,
|
|
224628
|
+
column: 9
|
|
224629
|
+
}
|
|
224630
|
+
},
|
|
224631
|
+
"10": {
|
|
224632
|
+
start: {
|
|
224633
|
+
line: 225,
|
|
224634
|
+
column: 10
|
|
224635
|
+
},
|
|
224636
|
+
end: {
|
|
224637
|
+
line: 225,
|
|
224638
|
+
column: 46
|
|
224639
|
+
}
|
|
224640
|
+
},
|
|
224641
|
+
"11": {
|
|
224642
|
+
start: {
|
|
224643
|
+
line: 226,
|
|
224644
|
+
column: 15
|
|
224645
|
+
},
|
|
224646
|
+
end: {
|
|
224647
|
+
line: 230,
|
|
224648
|
+
column: 9
|
|
224649
|
+
}
|
|
224650
|
+
},
|
|
224651
|
+
"12": {
|
|
224652
|
+
start: {
|
|
224653
|
+
line: 227,
|
|
224654
|
+
column: 10
|
|
224655
|
+
},
|
|
224656
|
+
end: {
|
|
224657
|
+
line: 227,
|
|
224658
|
+
column: 68
|
|
224659
|
+
}
|
|
224660
|
+
},
|
|
224661
|
+
"13": {
|
|
224662
|
+
start: {
|
|
224663
|
+
line: 228,
|
|
224664
|
+
column: 15
|
|
224665
|
+
},
|
|
224666
|
+
end: {
|
|
224667
|
+
line: 230,
|
|
224668
|
+
column: 9
|
|
224669
|
+
}
|
|
224670
|
+
},
|
|
224671
|
+
"14": {
|
|
224581
224672
|
start: {
|
|
224582
224673
|
line: 229,
|
|
224674
|
+
column: 10
|
|
224675
|
+
},
|
|
224676
|
+
end: {
|
|
224677
|
+
line: 229,
|
|
224678
|
+
column: 69
|
|
224679
|
+
}
|
|
224680
|
+
},
|
|
224681
|
+
"15": {
|
|
224682
|
+
start: {
|
|
224683
|
+
line: 234,
|
|
224583
224684
|
column: 6
|
|
224584
224685
|
},
|
|
224585
224686
|
end: {
|
|
224586
|
-
line:
|
|
224687
|
+
line: 237,
|
|
224587
224688
|
column: 7
|
|
224588
224689
|
}
|
|
224589
224690
|
},
|
|
224590
|
-
"
|
|
224691
|
+
"16": {
|
|
224591
224692
|
start: {
|
|
224592
|
-
line:
|
|
224693
|
+
line: 235,
|
|
224593
224694
|
column: 25
|
|
224594
224695
|
},
|
|
224595
224696
|
end: {
|
|
224596
|
-
line:
|
|
224697
|
+
line: 235,
|
|
224597
224698
|
column: 57
|
|
224598
224699
|
}
|
|
224599
224700
|
},
|
|
224600
|
-
"
|
|
224701
|
+
"17": {
|
|
224601
224702
|
start: {
|
|
224602
|
-
line:
|
|
224703
|
+
line: 236,
|
|
224603
224704
|
column: 8
|
|
224604
224705
|
},
|
|
224605
224706
|
end: {
|
|
224606
|
-
line:
|
|
224707
|
+
line: 236,
|
|
224607
224708
|
column: 38
|
|
224608
224709
|
}
|
|
224609
224710
|
},
|
|
224610
|
-
"
|
|
224711
|
+
"18": {
|
|
224611
224712
|
start: {
|
|
224612
|
-
line:
|
|
224713
|
+
line: 240,
|
|
224613
224714
|
column: 6
|
|
224614
224715
|
},
|
|
224615
224716
|
end: {
|
|
224616
|
-
line:
|
|
224717
|
+
line: 240,
|
|
224617
224718
|
column: 56
|
|
224618
224719
|
}
|
|
224619
224720
|
},
|
|
224620
|
-
"
|
|
224721
|
+
"19": {
|
|
224621
224722
|
start: {
|
|
224622
|
-
line:
|
|
224723
|
+
line: 241,
|
|
224623
224724
|
column: 6
|
|
224624
224725
|
},
|
|
224625
224726
|
end: {
|
|
224626
|
-
line:
|
|
224727
|
+
line: 241,
|
|
224627
224728
|
column: 44
|
|
224628
224729
|
}
|
|
224629
224730
|
},
|
|
224630
|
-
"
|
|
224731
|
+
"20": {
|
|
224631
224732
|
start: {
|
|
224632
|
-
line:
|
|
224733
|
+
line: 242,
|
|
224633
224734
|
column: 6
|
|
224634
224735
|
},
|
|
224635
224736
|
end: {
|
|
224636
|
-
line:
|
|
224737
|
+
line: 242,
|
|
224637
224738
|
column: 54
|
|
224638
224739
|
}
|
|
224639
224740
|
},
|
|
224640
|
-
"
|
|
224741
|
+
"21": {
|
|
224641
224742
|
start: {
|
|
224642
|
-
line:
|
|
224743
|
+
line: 245,
|
|
224643
224744
|
column: 6
|
|
224644
224745
|
},
|
|
224645
224746
|
end: {
|
|
224646
|
-
line:
|
|
224747
|
+
line: 245,
|
|
224647
224748
|
column: 32
|
|
224648
224749
|
}
|
|
224649
224750
|
},
|
|
224650
|
-
"
|
|
224751
|
+
"22": {
|
|
224651
224752
|
start: {
|
|
224652
224753
|
line: 246,
|
|
224653
224754
|
column: 6
|
|
224654
224755
|
},
|
|
224655
224756
|
end: {
|
|
224656
224757
|
line: 246,
|
|
224657
|
-
column:
|
|
224758
|
+
column: 70
|
|
224658
224759
|
}
|
|
224659
224760
|
},
|
|
224660
|
-
"
|
|
224761
|
+
"23": {
|
|
224661
224762
|
start: {
|
|
224662
|
-
line:
|
|
224763
|
+
line: 246,
|
|
224764
|
+
column: 45
|
|
224765
|
+
},
|
|
224766
|
+
end: {
|
|
224767
|
+
line: 246,
|
|
224768
|
+
column: 69
|
|
224769
|
+
}
|
|
224770
|
+
},
|
|
224771
|
+
"24": {
|
|
224772
|
+
start: {
|
|
224773
|
+
line: 249,
|
|
224663
224774
|
column: 6
|
|
224664
224775
|
},
|
|
224665
224776
|
end: {
|
|
224666
|
-
line:
|
|
224667
|
-
column:
|
|
224777
|
+
line: 249,
|
|
224778
|
+
column: 22
|
|
224668
224779
|
}
|
|
224669
224780
|
},
|
|
224670
|
-
"
|
|
224781
|
+
"25": {
|
|
224671
224782
|
start: {
|
|
224672
224783
|
line: 250,
|
|
224673
224784
|
column: 6
|
|
224674
224785
|
},
|
|
224675
224786
|
end: {
|
|
224676
|
-
line:
|
|
224677
|
-
column:
|
|
224787
|
+
line: 250,
|
|
224788
|
+
column: 31
|
|
224678
224789
|
}
|
|
224679
224790
|
},
|
|
224680
|
-
"
|
|
224791
|
+
"26": {
|
|
224681
224792
|
start: {
|
|
224682
|
-
line:
|
|
224793
|
+
line: 253,
|
|
224683
224794
|
column: 6
|
|
224684
224795
|
},
|
|
224685
224796
|
end: {
|
|
224686
224797
|
line: 256,
|
|
224687
|
-
column:
|
|
224798
|
+
column: 7
|
|
224688
224799
|
}
|
|
224689
224800
|
},
|
|
224690
|
-
"
|
|
224801
|
+
"27": {
|
|
224691
224802
|
start: {
|
|
224692
|
-
line:
|
|
224803
|
+
line: 259,
|
|
224693
224804
|
column: 6
|
|
224694
224805
|
},
|
|
224695
224806
|
end: {
|
|
224696
224807
|
line: 259,
|
|
224697
|
-
column:
|
|
224808
|
+
column: 32
|
|
224698
224809
|
}
|
|
224699
224810
|
},
|
|
224700
|
-
"
|
|
224811
|
+
"28": {
|
|
224701
224812
|
start: {
|
|
224702
|
-
line:
|
|
224703
|
-
column:
|
|
224813
|
+
line: 260,
|
|
224814
|
+
column: 6
|
|
224704
224815
|
},
|
|
224705
224816
|
end: {
|
|
224706
|
-
line:
|
|
224707
|
-
column:
|
|
224817
|
+
line: 260,
|
|
224818
|
+
column: 77
|
|
224708
224819
|
}
|
|
224709
224820
|
},
|
|
224710
|
-
"
|
|
224821
|
+
"29": {
|
|
224711
224822
|
start: {
|
|
224712
224823
|
line: 260,
|
|
224824
|
+
column: 45
|
|
224825
|
+
},
|
|
224826
|
+
end: {
|
|
224827
|
+
line: 260,
|
|
224828
|
+
column: 76
|
|
224829
|
+
}
|
|
224830
|
+
},
|
|
224831
|
+
"30": {
|
|
224832
|
+
start: {
|
|
224833
|
+
line: 261,
|
|
224713
224834
|
column: 6
|
|
224714
224835
|
},
|
|
224715
224836
|
end: {
|
|
224716
|
-
line:
|
|
224837
|
+
line: 282,
|
|
224717
224838
|
column: 7
|
|
224718
224839
|
}
|
|
224719
224840
|
},
|
|
224720
|
-
"
|
|
224841
|
+
"31": {
|
|
224721
224842
|
start: {
|
|
224722
|
-
line:
|
|
224843
|
+
line: 262,
|
|
224723
224844
|
column: 8
|
|
224724
224845
|
},
|
|
224725
224846
|
end: {
|
|
224726
|
-
line:
|
|
224847
|
+
line: 281,
|
|
224727
224848
|
column: 12
|
|
224728
224849
|
}
|
|
224729
224850
|
},
|
|
224730
|
-
"
|
|
224851
|
+
"32": {
|
|
224731
224852
|
start: {
|
|
224732
|
-
line:
|
|
224853
|
+
line: 264,
|
|
224733
224854
|
column: 30
|
|
224734
224855
|
},
|
|
224735
224856
|
end: {
|
|
224736
|
-
line:
|
|
224857
|
+
line: 264,
|
|
224737
224858
|
column: 59
|
|
224738
224859
|
}
|
|
224739
224860
|
},
|
|
224740
|
-
"
|
|
224861
|
+
"33": {
|
|
224741
224862
|
start: {
|
|
224742
|
-
line:
|
|
224863
|
+
line: 265,
|
|
224743
224864
|
column: 12
|
|
224744
224865
|
},
|
|
224745
224866
|
end: {
|
|
224746
|
-
line:
|
|
224867
|
+
line: 267,
|
|
224747
224868
|
column: 14
|
|
224748
224869
|
}
|
|
224749
224870
|
},
|
|
224750
|
-
"
|
|
224871
|
+
"34": {
|
|
224751
224872
|
start: {
|
|
224752
|
-
line:
|
|
224873
|
+
line: 269,
|
|
224753
224874
|
column: 12
|
|
224754
224875
|
},
|
|
224755
224876
|
end: {
|
|
224756
|
-
line:
|
|
224877
|
+
line: 271,
|
|
224757
224878
|
column: 14
|
|
224758
224879
|
}
|
|
224759
224880
|
},
|
|
224760
|
-
"
|
|
224881
|
+
"35": {
|
|
224761
224882
|
start: {
|
|
224762
|
-
line:
|
|
224883
|
+
line: 272,
|
|
224763
224884
|
column: 12
|
|
224764
224885
|
},
|
|
224765
224886
|
end: {
|
|
224766
|
-
line:
|
|
224887
|
+
line: 272,
|
|
224767
224888
|
column: 29
|
|
224768
224889
|
}
|
|
224769
224890
|
},
|
|
224770
|
-
"
|
|
224891
|
+
"36": {
|
|
224771
224892
|
start: {
|
|
224772
|
-
line:
|
|
224893
|
+
line: 275,
|
|
224773
224894
|
column: 12
|
|
224774
224895
|
},
|
|
224775
224896
|
end: {
|
|
224776
|
-
line:
|
|
224897
|
+
line: 280,
|
|
224777
224898
|
column: 13
|
|
224778
224899
|
}
|
|
224779
224900
|
},
|
|
224780
|
-
"
|
|
224901
|
+
"37": {
|
|
224781
224902
|
start: {
|
|
224782
|
-
line:
|
|
224903
|
+
line: 276,
|
|
224783
224904
|
column: 14
|
|
224784
224905
|
},
|
|
224785
224906
|
end: {
|
|
224786
|
-
line:
|
|
224907
|
+
line: 276,
|
|
224787
224908
|
column: 54
|
|
224788
224909
|
}
|
|
224789
224910
|
},
|
|
224790
|
-
"
|
|
224911
|
+
"38": {
|
|
224791
224912
|
start: {
|
|
224792
|
-
line:
|
|
224913
|
+
line: 277,
|
|
224793
224914
|
column: 14
|
|
224794
224915
|
},
|
|
224795
224916
|
end: {
|
|
224796
|
-
line:
|
|
224917
|
+
line: 279,
|
|
224797
224918
|
column: 16
|
|
224798
224919
|
}
|
|
224799
224920
|
}
|
|
@@ -224865,7 +224986,7 @@ var cov_41uwsnrpn = function () {
|
|
|
224865
224986
|
column: 21
|
|
224866
224987
|
},
|
|
224867
224988
|
end: {
|
|
224868
|
-
line:
|
|
224989
|
+
line: 215,
|
|
224869
224990
|
column: 5
|
|
224870
224991
|
}
|
|
224871
224992
|
},
|
|
@@ -224875,76 +224996,100 @@ var cov_41uwsnrpn = function () {
|
|
|
224875
224996
|
name: "(anonymous_3)",
|
|
224876
224997
|
decl: {
|
|
224877
224998
|
start: {
|
|
224878
|
-
line:
|
|
224999
|
+
line: 217,
|
|
224879
225000
|
column: 2
|
|
224880
225001
|
},
|
|
224881
225002
|
end: {
|
|
224882
|
-
line:
|
|
225003
|
+
line: 217,
|
|
224883
225004
|
column: 3
|
|
224884
225005
|
}
|
|
224885
225006
|
},
|
|
224886
225007
|
loc: {
|
|
224887
225008
|
start: {
|
|
224888
|
-
line:
|
|
225009
|
+
line: 217,
|
|
224889
225010
|
column: 12
|
|
224890
225011
|
},
|
|
224891
225012
|
end: {
|
|
224892
|
-
line:
|
|
225013
|
+
line: 219,
|
|
224893
225014
|
column: 3
|
|
224894
225015
|
}
|
|
224895
225016
|
},
|
|
224896
|
-
line:
|
|
225017
|
+
line: 217
|
|
224897
225018
|
},
|
|
224898
225019
|
"4": {
|
|
224899
225020
|
name: "(anonymous_4)",
|
|
224900
225021
|
decl: {
|
|
224901
225022
|
start: {
|
|
224902
|
-
line:
|
|
225023
|
+
line: 221,
|
|
224903
225024
|
column: 4
|
|
224904
225025
|
},
|
|
224905
225026
|
end: {
|
|
224906
|
-
line:
|
|
225027
|
+
line: 221,
|
|
224907
225028
|
column: 5
|
|
224908
225029
|
}
|
|
224909
225030
|
},
|
|
224910
225031
|
loc: {
|
|
224911
225032
|
start: {
|
|
224912
|
-
line:
|
|
224913
|
-
column:
|
|
225033
|
+
line: 221,
|
|
225034
|
+
column: 22
|
|
224914
225035
|
},
|
|
224915
225036
|
end: {
|
|
224916
|
-
line:
|
|
225037
|
+
line: 232,
|
|
224917
225038
|
column: 5
|
|
224918
225039
|
}
|
|
224919
225040
|
},
|
|
224920
|
-
line:
|
|
225041
|
+
line: 221
|
|
224921
225042
|
},
|
|
224922
225043
|
"5": {
|
|
224923
225044
|
name: "(anonymous_5)",
|
|
224924
225045
|
decl: {
|
|
224925
225046
|
start: {
|
|
224926
|
-
line:
|
|
225047
|
+
line: 223,
|
|
225048
|
+
column: 36
|
|
225049
|
+
},
|
|
225050
|
+
end: {
|
|
225051
|
+
line: 223,
|
|
225052
|
+
column: 37
|
|
225053
|
+
}
|
|
225054
|
+
},
|
|
225055
|
+
loc: {
|
|
225056
|
+
start: {
|
|
225057
|
+
line: 223,
|
|
225058
|
+
column: 45
|
|
225059
|
+
},
|
|
225060
|
+
end: {
|
|
225061
|
+
line: 231,
|
|
225062
|
+
column: 7
|
|
225063
|
+
}
|
|
225064
|
+
},
|
|
225065
|
+
line: 223
|
|
225066
|
+
},
|
|
225067
|
+
"6": {
|
|
225068
|
+
name: "(anonymous_6)",
|
|
225069
|
+
decl: {
|
|
225070
|
+
start: {
|
|
225071
|
+
line: 233,
|
|
224927
225072
|
column: 4
|
|
224928
225073
|
},
|
|
224929
225074
|
end: {
|
|
224930
|
-
line:
|
|
225075
|
+
line: 233,
|
|
224931
225076
|
column: 5
|
|
224932
225077
|
}
|
|
224933
225078
|
},
|
|
224934
225079
|
loc: {
|
|
224935
225080
|
start: {
|
|
224936
|
-
line:
|
|
224937
|
-
column:
|
|
225081
|
+
line: 233,
|
|
225082
|
+
column: 24
|
|
224938
225083
|
},
|
|
224939
225084
|
end: {
|
|
224940
225085
|
line: 238,
|
|
224941
225086
|
column: 5
|
|
224942
225087
|
}
|
|
224943
225088
|
},
|
|
224944
|
-
line:
|
|
225089
|
+
line: 233
|
|
224945
225090
|
},
|
|
224946
|
-
"
|
|
224947
|
-
name: "(
|
|
225091
|
+
"7": {
|
|
225092
|
+
name: "(anonymous_7)",
|
|
224948
225093
|
decl: {
|
|
224949
225094
|
start: {
|
|
224950
225095
|
line: 239,
|
|
@@ -224958,158 +225103,206 @@ var cov_41uwsnrpn = function () {
|
|
|
224958
225103
|
loc: {
|
|
224959
225104
|
start: {
|
|
224960
225105
|
line: 239,
|
|
224961
|
-
column:
|
|
225106
|
+
column: 27
|
|
224962
225107
|
},
|
|
224963
225108
|
end: {
|
|
224964
|
-
line:
|
|
225109
|
+
line: 243,
|
|
224965
225110
|
column: 5
|
|
224966
225111
|
}
|
|
224967
225112
|
},
|
|
224968
225113
|
line: 239
|
|
224969
225114
|
},
|
|
224970
|
-
"
|
|
224971
|
-
name: "(
|
|
225115
|
+
"8": {
|
|
225116
|
+
name: "(anonymous_8)",
|
|
224972
225117
|
decl: {
|
|
224973
225118
|
start: {
|
|
224974
|
-
line:
|
|
225119
|
+
line: 244,
|
|
224975
225120
|
column: 4
|
|
224976
225121
|
},
|
|
224977
225122
|
end: {
|
|
224978
|
-
line:
|
|
225123
|
+
line: 244,
|
|
224979
225124
|
column: 5
|
|
224980
225125
|
}
|
|
224981
225126
|
},
|
|
224982
225127
|
loc: {
|
|
224983
225128
|
start: {
|
|
224984
|
-
line:
|
|
224985
|
-
column:
|
|
225129
|
+
line: 244,
|
|
225130
|
+
column: 16
|
|
225131
|
+
},
|
|
225132
|
+
end: {
|
|
225133
|
+
line: 247,
|
|
225134
|
+
column: 5
|
|
225135
|
+
}
|
|
225136
|
+
},
|
|
225137
|
+
line: 244
|
|
225138
|
+
},
|
|
225139
|
+
"9": {
|
|
225140
|
+
name: "(anonymous_9)",
|
|
225141
|
+
decl: {
|
|
225142
|
+
start: {
|
|
225143
|
+
line: 246,
|
|
225144
|
+
column: 36
|
|
225145
|
+
},
|
|
225146
|
+
end: {
|
|
225147
|
+
line: 246,
|
|
225148
|
+
column: 37
|
|
225149
|
+
}
|
|
225150
|
+
},
|
|
225151
|
+
loc: {
|
|
225152
|
+
start: {
|
|
225153
|
+
line: 246,
|
|
225154
|
+
column: 45
|
|
225155
|
+
},
|
|
225156
|
+
end: {
|
|
225157
|
+
line: 246,
|
|
225158
|
+
column: 69
|
|
225159
|
+
}
|
|
225160
|
+
},
|
|
225161
|
+
line: 246
|
|
225162
|
+
},
|
|
225163
|
+
"10": {
|
|
225164
|
+
name: "(anonymous_10)",
|
|
225165
|
+
decl: {
|
|
225166
|
+
start: {
|
|
225167
|
+
line: 248,
|
|
225168
|
+
column: 4
|
|
224986
225169
|
},
|
|
224987
225170
|
end: {
|
|
224988
225171
|
line: 248,
|
|
224989
225172
|
column: 5
|
|
224990
225173
|
}
|
|
224991
225174
|
},
|
|
224992
|
-
|
|
225175
|
+
loc: {
|
|
225176
|
+
start: {
|
|
225177
|
+
line: 248,
|
|
225178
|
+
column: 17
|
|
225179
|
+
},
|
|
225180
|
+
end: {
|
|
225181
|
+
line: 251,
|
|
225182
|
+
column: 5
|
|
225183
|
+
}
|
|
225184
|
+
},
|
|
225185
|
+
line: 248
|
|
224993
225186
|
},
|
|
224994
|
-
"
|
|
224995
|
-
name: "(
|
|
225187
|
+
"11": {
|
|
225188
|
+
name: "(anonymous_11)",
|
|
224996
225189
|
decl: {
|
|
224997
225190
|
start: {
|
|
224998
|
-
line:
|
|
225191
|
+
line: 252,
|
|
224999
225192
|
column: 4
|
|
225000
225193
|
},
|
|
225001
225194
|
end: {
|
|
225002
|
-
line:
|
|
225195
|
+
line: 252,
|
|
225003
225196
|
column: 5
|
|
225004
225197
|
}
|
|
225005
225198
|
},
|
|
225006
225199
|
loc: {
|
|
225007
225200
|
start: {
|
|
225008
|
-
line:
|
|
225201
|
+
line: 252,
|
|
225009
225202
|
column: 22
|
|
225010
225203
|
},
|
|
225011
225204
|
end: {
|
|
225012
|
-
line:
|
|
225205
|
+
line: 257,
|
|
225013
225206
|
column: 5
|
|
225014
225207
|
}
|
|
225015
225208
|
},
|
|
225016
|
-
line:
|
|
225209
|
+
line: 252
|
|
225017
225210
|
},
|
|
225018
|
-
"
|
|
225019
|
-
name: "(
|
|
225211
|
+
"12": {
|
|
225212
|
+
name: "(anonymous_12)",
|
|
225020
225213
|
decl: {
|
|
225021
225214
|
start: {
|
|
225022
|
-
line:
|
|
225215
|
+
line: 258,
|
|
225023
225216
|
column: 4
|
|
225024
225217
|
},
|
|
225025
225218
|
end: {
|
|
225026
|
-
line:
|
|
225219
|
+
line: 258,
|
|
225027
225220
|
column: 5
|
|
225028
225221
|
}
|
|
225029
225222
|
},
|
|
225030
225223
|
loc: {
|
|
225031
225224
|
start: {
|
|
225032
|
-
line:
|
|
225225
|
+
line: 258,
|
|
225033
225226
|
column: 19
|
|
225034
225227
|
},
|
|
225035
225228
|
end: {
|
|
225036
|
-
line:
|
|
225229
|
+
line: 283,
|
|
225037
225230
|
column: 5
|
|
225038
225231
|
}
|
|
225039
225232
|
},
|
|
225040
|
-
line:
|
|
225233
|
+
line: 258
|
|
225041
225234
|
},
|
|
225042
|
-
"
|
|
225043
|
-
name: "(
|
|
225235
|
+
"13": {
|
|
225236
|
+
name: "(anonymous_13)",
|
|
225044
225237
|
decl: {
|
|
225045
225238
|
start: {
|
|
225046
|
-
line:
|
|
225239
|
+
line: 260,
|
|
225047
225240
|
column: 36
|
|
225048
225241
|
},
|
|
225049
225242
|
end: {
|
|
225050
|
-
line:
|
|
225243
|
+
line: 260,
|
|
225051
225244
|
column: 37
|
|
225052
225245
|
}
|
|
225053
225246
|
},
|
|
225054
225247
|
loc: {
|
|
225055
225248
|
start: {
|
|
225056
|
-
line:
|
|
225249
|
+
line: 260,
|
|
225057
225250
|
column: 45
|
|
225058
225251
|
},
|
|
225059
225252
|
end: {
|
|
225060
|
-
line:
|
|
225061
|
-
column:
|
|
225253
|
+
line: 260,
|
|
225254
|
+
column: 76
|
|
225062
225255
|
}
|
|
225063
225256
|
},
|
|
225064
|
-
line:
|
|
225257
|
+
line: 260
|
|
225065
225258
|
},
|
|
225066
|
-
"
|
|
225067
|
-
name: "(
|
|
225259
|
+
"14": {
|
|
225260
|
+
name: "(anonymous_14)",
|
|
225068
225261
|
decl: {
|
|
225069
225262
|
start: {
|
|
225070
|
-
line:
|
|
225263
|
+
line: 263,
|
|
225071
225264
|
column: 16
|
|
225072
225265
|
},
|
|
225073
225266
|
end: {
|
|
225074
|
-
line:
|
|
225267
|
+
line: 263,
|
|
225075
225268
|
column: 17
|
|
225076
225269
|
}
|
|
225077
225270
|
},
|
|
225078
225271
|
loc: {
|
|
225079
225272
|
start: {
|
|
225080
|
-
line:
|
|
225273
|
+
line: 263,
|
|
225081
225274
|
column: 28
|
|
225082
225275
|
},
|
|
225083
225276
|
end: {
|
|
225084
|
-
line:
|
|
225277
|
+
line: 273,
|
|
225085
225278
|
column: 11
|
|
225086
225279
|
}
|
|
225087
225280
|
},
|
|
225088
|
-
line:
|
|
225281
|
+
line: 263
|
|
225089
225282
|
},
|
|
225090
|
-
"
|
|
225091
|
-
name: "(
|
|
225283
|
+
"15": {
|
|
225284
|
+
name: "(anonymous_15)",
|
|
225092
225285
|
decl: {
|
|
225093
225286
|
start: {
|
|
225094
|
-
line:
|
|
225287
|
+
line: 274,
|
|
225095
225288
|
column: 17
|
|
225096
225289
|
},
|
|
225097
225290
|
end: {
|
|
225098
|
-
line:
|
|
225291
|
+
line: 274,
|
|
225099
225292
|
column: 18
|
|
225100
225293
|
}
|
|
225101
225294
|
},
|
|
225102
225295
|
loc: {
|
|
225103
225296
|
start: {
|
|
225104
|
-
line:
|
|
225297
|
+
line: 274,
|
|
225105
225298
|
column: 26
|
|
225106
225299
|
},
|
|
225107
225300
|
end: {
|
|
225108
|
-
line:
|
|
225301
|
+
line: 281,
|
|
225109
225302
|
column: 11
|
|
225110
225303
|
}
|
|
225111
225304
|
},
|
|
225112
|
-
line:
|
|
225305
|
+
line: 274
|
|
225113
225306
|
}
|
|
225114
225307
|
},
|
|
225115
225308
|
branchMap: {
|
|
@@ -225120,7 +225313,7 @@ var cov_41uwsnrpn = function () {
|
|
|
225120
225313
|
column: 6
|
|
225121
225314
|
},
|
|
225122
225315
|
end: {
|
|
225123
|
-
line:
|
|
225316
|
+
line: 214,
|
|
225124
225317
|
column: 7
|
|
225125
225318
|
}
|
|
225126
225319
|
},
|
|
@@ -225131,7 +225324,7 @@ var cov_41uwsnrpn = function () {
|
|
|
225131
225324
|
column: 6
|
|
225132
225325
|
},
|
|
225133
225326
|
end: {
|
|
225134
|
-
line:
|
|
225327
|
+
line: 214,
|
|
225135
225328
|
column: 7
|
|
225136
225329
|
}
|
|
225137
225330
|
}, {
|
|
@@ -225140,7 +225333,7 @@ var cov_41uwsnrpn = function () {
|
|
|
225140
225333
|
column: 6
|
|
225141
225334
|
},
|
|
225142
225335
|
end: {
|
|
225143
|
-
line:
|
|
225336
|
+
line: 214,
|
|
225144
225337
|
column: 7
|
|
225145
225338
|
}
|
|
225146
225339
|
}],
|
|
@@ -225149,101 +225342,233 @@ var cov_41uwsnrpn = function () {
|
|
|
225149
225342
|
"1": {
|
|
225150
225343
|
loc: {
|
|
225151
225344
|
start: {
|
|
225152
|
-
line:
|
|
225345
|
+
line: 210,
|
|
225346
|
+
column: 8
|
|
225347
|
+
},
|
|
225348
|
+
end: {
|
|
225349
|
+
line: 213,
|
|
225350
|
+
column: 9
|
|
225351
|
+
}
|
|
225352
|
+
},
|
|
225353
|
+
type: "if",
|
|
225354
|
+
locations: [{
|
|
225355
|
+
start: {
|
|
225356
|
+
line: 210,
|
|
225357
|
+
column: 8
|
|
225358
|
+
},
|
|
225359
|
+
end: {
|
|
225360
|
+
line: 213,
|
|
225361
|
+
column: 9
|
|
225362
|
+
}
|
|
225363
|
+
}, {
|
|
225364
|
+
start: {
|
|
225365
|
+
line: 210,
|
|
225366
|
+
column: 8
|
|
225367
|
+
},
|
|
225368
|
+
end: {
|
|
225369
|
+
line: 213,
|
|
225370
|
+
column: 9
|
|
225371
|
+
}
|
|
225372
|
+
}],
|
|
225373
|
+
line: 210
|
|
225374
|
+
},
|
|
225375
|
+
"2": {
|
|
225376
|
+
loc: {
|
|
225377
|
+
start: {
|
|
225378
|
+
line: 224,
|
|
225379
|
+
column: 8
|
|
225380
|
+
},
|
|
225381
|
+
end: {
|
|
225382
|
+
line: 230,
|
|
225383
|
+
column: 9
|
|
225384
|
+
}
|
|
225385
|
+
},
|
|
225386
|
+
type: "if",
|
|
225387
|
+
locations: [{
|
|
225388
|
+
start: {
|
|
225389
|
+
line: 224,
|
|
225390
|
+
column: 8
|
|
225391
|
+
},
|
|
225392
|
+
end: {
|
|
225393
|
+
line: 230,
|
|
225394
|
+
column: 9
|
|
225395
|
+
}
|
|
225396
|
+
}, {
|
|
225397
|
+
start: {
|
|
225398
|
+
line: 224,
|
|
225399
|
+
column: 8
|
|
225400
|
+
},
|
|
225401
|
+
end: {
|
|
225402
|
+
line: 230,
|
|
225403
|
+
column: 9
|
|
225404
|
+
}
|
|
225405
|
+
}],
|
|
225406
|
+
line: 224
|
|
225407
|
+
},
|
|
225408
|
+
"3": {
|
|
225409
|
+
loc: {
|
|
225410
|
+
start: {
|
|
225411
|
+
line: 226,
|
|
225412
|
+
column: 15
|
|
225413
|
+
},
|
|
225414
|
+
end: {
|
|
225415
|
+
line: 230,
|
|
225416
|
+
column: 9
|
|
225417
|
+
}
|
|
225418
|
+
},
|
|
225419
|
+
type: "if",
|
|
225420
|
+
locations: [{
|
|
225421
|
+
start: {
|
|
225422
|
+
line: 226,
|
|
225423
|
+
column: 15
|
|
225424
|
+
},
|
|
225425
|
+
end: {
|
|
225426
|
+
line: 230,
|
|
225427
|
+
column: 9
|
|
225428
|
+
}
|
|
225429
|
+
}, {
|
|
225430
|
+
start: {
|
|
225431
|
+
line: 226,
|
|
225432
|
+
column: 15
|
|
225433
|
+
},
|
|
225434
|
+
end: {
|
|
225435
|
+
line: 230,
|
|
225436
|
+
column: 9
|
|
225437
|
+
}
|
|
225438
|
+
}],
|
|
225439
|
+
line: 226
|
|
225440
|
+
},
|
|
225441
|
+
"4": {
|
|
225442
|
+
loc: {
|
|
225443
|
+
start: {
|
|
225444
|
+
line: 228,
|
|
225445
|
+
column: 15
|
|
225446
|
+
},
|
|
225447
|
+
end: {
|
|
225448
|
+
line: 230,
|
|
225449
|
+
column: 9
|
|
225450
|
+
}
|
|
225451
|
+
},
|
|
225452
|
+
type: "if",
|
|
225453
|
+
locations: [{
|
|
225454
|
+
start: {
|
|
225455
|
+
line: 228,
|
|
225456
|
+
column: 15
|
|
225457
|
+
},
|
|
225458
|
+
end: {
|
|
225459
|
+
line: 230,
|
|
225460
|
+
column: 9
|
|
225461
|
+
}
|
|
225462
|
+
}, {
|
|
225463
|
+
start: {
|
|
225464
|
+
line: 228,
|
|
225465
|
+
column: 15
|
|
225466
|
+
},
|
|
225467
|
+
end: {
|
|
225468
|
+
line: 230,
|
|
225469
|
+
column: 9
|
|
225470
|
+
}
|
|
225471
|
+
}],
|
|
225472
|
+
line: 228
|
|
225473
|
+
},
|
|
225474
|
+
"5": {
|
|
225475
|
+
loc: {
|
|
225476
|
+
start: {
|
|
225477
|
+
line: 234,
|
|
225153
225478
|
column: 6
|
|
225154
225479
|
},
|
|
225155
225480
|
end: {
|
|
225156
|
-
line:
|
|
225481
|
+
line: 237,
|
|
225157
225482
|
column: 7
|
|
225158
225483
|
}
|
|
225159
225484
|
},
|
|
225160
225485
|
type: "if",
|
|
225161
225486
|
locations: [{
|
|
225162
225487
|
start: {
|
|
225163
|
-
line:
|
|
225488
|
+
line: 234,
|
|
225164
225489
|
column: 6
|
|
225165
225490
|
},
|
|
225166
225491
|
end: {
|
|
225167
|
-
line:
|
|
225492
|
+
line: 237,
|
|
225168
225493
|
column: 7
|
|
225169
225494
|
}
|
|
225170
225495
|
}, {
|
|
225171
225496
|
start: {
|
|
225172
|
-
line:
|
|
225497
|
+
line: 234,
|
|
225173
225498
|
column: 6
|
|
225174
225499
|
},
|
|
225175
225500
|
end: {
|
|
225176
|
-
line:
|
|
225501
|
+
line: 237,
|
|
225177
225502
|
column: 7
|
|
225178
225503
|
}
|
|
225179
225504
|
}],
|
|
225180
|
-
line:
|
|
225505
|
+
line: 234
|
|
225181
225506
|
},
|
|
225182
|
-
"
|
|
225507
|
+
"6": {
|
|
225183
225508
|
loc: {
|
|
225184
225509
|
start: {
|
|
225185
|
-
line:
|
|
225510
|
+
line: 261,
|
|
225186
225511
|
column: 6
|
|
225187
225512
|
},
|
|
225188
225513
|
end: {
|
|
225189
|
-
line:
|
|
225514
|
+
line: 282,
|
|
225190
225515
|
column: 7
|
|
225191
225516
|
}
|
|
225192
225517
|
},
|
|
225193
225518
|
type: "if",
|
|
225194
225519
|
locations: [{
|
|
225195
225520
|
start: {
|
|
225196
|
-
line:
|
|
225521
|
+
line: 261,
|
|
225197
225522
|
column: 6
|
|
225198
225523
|
},
|
|
225199
225524
|
end: {
|
|
225200
|
-
line:
|
|
225525
|
+
line: 282,
|
|
225201
225526
|
column: 7
|
|
225202
225527
|
}
|
|
225203
225528
|
}, {
|
|
225204
225529
|
start: {
|
|
225205
|
-
line:
|
|
225530
|
+
line: 261,
|
|
225206
225531
|
column: 6
|
|
225207
225532
|
},
|
|
225208
225533
|
end: {
|
|
225209
|
-
line:
|
|
225534
|
+
line: 282,
|
|
225210
225535
|
column: 7
|
|
225211
225536
|
}
|
|
225212
225537
|
}],
|
|
225213
|
-
line:
|
|
225538
|
+
line: 261
|
|
225214
225539
|
},
|
|
225215
|
-
"
|
|
225540
|
+
"7": {
|
|
225216
225541
|
loc: {
|
|
225217
225542
|
start: {
|
|
225218
|
-
line:
|
|
225543
|
+
line: 275,
|
|
225219
225544
|
column: 12
|
|
225220
225545
|
},
|
|
225221
225546
|
end: {
|
|
225222
|
-
line:
|
|
225547
|
+
line: 280,
|
|
225223
225548
|
column: 13
|
|
225224
225549
|
}
|
|
225225
225550
|
},
|
|
225226
225551
|
type: "if",
|
|
225227
225552
|
locations: [{
|
|
225228
225553
|
start: {
|
|
225229
|
-
line:
|
|
225554
|
+
line: 275,
|
|
225230
225555
|
column: 12
|
|
225231
225556
|
},
|
|
225232
225557
|
end: {
|
|
225233
|
-
line:
|
|
225558
|
+
line: 280,
|
|
225234
225559
|
column: 13
|
|
225235
225560
|
}
|
|
225236
225561
|
}, {
|
|
225237
225562
|
start: {
|
|
225238
|
-
line:
|
|
225563
|
+
line: 275,
|
|
225239
225564
|
column: 12
|
|
225240
225565
|
},
|
|
225241
225566
|
end: {
|
|
225242
|
-
line:
|
|
225567
|
+
line: 280,
|
|
225243
225568
|
column: 13
|
|
225244
225569
|
}
|
|
225245
225570
|
}],
|
|
225246
|
-
line:
|
|
225571
|
+
line: 275
|
|
225247
225572
|
}
|
|
225248
225573
|
},
|
|
225249
225574
|
s: {
|
|
@@ -225273,7 +225598,19 @@ var cov_41uwsnrpn = function () {
|
|
|
225273
225598
|
"23": 0,
|
|
225274
225599
|
"24": 0,
|
|
225275
225600
|
"25": 0,
|
|
225276
|
-
"26": 0
|
|
225601
|
+
"26": 0,
|
|
225602
|
+
"27": 0,
|
|
225603
|
+
"28": 0,
|
|
225604
|
+
"29": 0,
|
|
225605
|
+
"30": 0,
|
|
225606
|
+
"31": 0,
|
|
225607
|
+
"32": 0,
|
|
225608
|
+
"33": 0,
|
|
225609
|
+
"34": 0,
|
|
225610
|
+
"35": 0,
|
|
225611
|
+
"36": 0,
|
|
225612
|
+
"37": 0,
|
|
225613
|
+
"38": 0
|
|
225277
225614
|
},
|
|
225278
225615
|
f: {
|
|
225279
225616
|
"0": 0,
|
|
@@ -225288,25 +225625,32 @@ var cov_41uwsnrpn = function () {
|
|
|
225288
225625
|
"9": 0,
|
|
225289
225626
|
"10": 0,
|
|
225290
225627
|
"11": 0,
|
|
225291
|
-
"12": 0
|
|
225628
|
+
"12": 0,
|
|
225629
|
+
"13": 0,
|
|
225630
|
+
"14": 0,
|
|
225631
|
+
"15": 0
|
|
225292
225632
|
},
|
|
225293
225633
|
b: {
|
|
225294
225634
|
"0": [0, 0],
|
|
225295
225635
|
"1": [0, 0],
|
|
225296
225636
|
"2": [0, 0],
|
|
225297
|
-
"3": [0, 0]
|
|
225637
|
+
"3": [0, 0],
|
|
225638
|
+
"4": [0, 0],
|
|
225639
|
+
"5": [0, 0],
|
|
225640
|
+
"6": [0, 0],
|
|
225641
|
+
"7": [0, 0]
|
|
225298
225642
|
},
|
|
225299
225643
|
inputSourceMap: {
|
|
225300
225644
|
version: 3,
|
|
225301
225645
|
sources: ["NewProjectModal.vue"],
|
|
225302
225646
|
names: [],
|
|
225303
|
-
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
225647
|
+
mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
|
|
225304
225648
|
file: "NewProjectModal.vue",
|
|
225305
225649
|
sourceRoot: "src/components/projects",
|
|
225306
|
-
sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst'\n ],\n groups: [],\n project: {},\n refs: {},\n rules,\n showOptionalFields: false,\n users: [],\n usersQuery: ''\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n
|
|
225650
|
+
sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst'\n ],\n groups: [],\n project: {},\n refs: {},\n rules,\n showOptionalFields: false,\n users: [],\n usersQuery: ''\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n this.fetchGroups()\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n this.resetForm()\n }\n }\n }\n },\n updated() {\n this.attachFieldRefs()\n },\n methods: {\n attachFieldRefs() {\n // Map all local and nested inputs to local 'refs' object\n this.fieldsToValidate.forEach(field => {\n if (has(this.$refs[field], 'reset')) {\n this.refs[field] = this.$refs[field]\n } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.userSearchInput\n } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.groupSearchInput\n }\n })\n },\n async fetchGroups() {\n if (!this.groups.length) {\n const response = await fetchListRecords('groups')\n this.groups = response.results\n }\n },\n toggleOptionalFields() {\n this.showOptionalFields = !this.showOptionalFields\n this.$nextTick(this.$refs.title.focus)\n this.$nextTick(this.$refs.title.resetValidation)\n },\n resetForm() {\n this.formHasErrors = false\n this.fieldsToValidate.forEach(field => this.refs[field].reset())\n },\n closeModal() {\n this.resetForm()\n this.$emit('close-modal')\n },\n updateValue(data) {\n this.project = {\n ...this.project,\n ...data\n }\n },\n async submit() {\n this.formHasErrors = false\n this.fieldsToValidate.forEach(field => this.refs[field].validate(true))\n if (!this.formHasErrors) {\n createRecord('projects', this.project)\n .then(response => {\n const projectId = this.$get(response, 'pk', '')\n this.$store.dispatch(SHOW_ALERT, {\n message: `Project ${projectId} was succesfully created.`\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n project: projectId\n })\n this.closeModal()\n })\n .catch(error => {\n if (error.response) {\n this.errorMessages = error.response.data\n this.$store.dispatch(SHOW_ALERT, {\n error: 'The project could not be created. Please try again.'\n })\n }\n })\n }\n }\n }\n}\n</script>\n\n<style lang=\"scss\">\n.v-expansion-panel__header {\n padding: 5px !important;\n}\n</style>\n"]
|
|
225307
225651
|
},
|
|
225308
225652
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
225309
|
-
hash: "
|
|
225653
|
+
hash: "39bf82dbca3de1e3096f5011f5bbc47921642eb4"
|
|
225310
225654
|
};
|
|
225311
225655
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
225312
225656
|
|
|
@@ -225536,30 +225880,67 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225536
225880
|
if (value) {
|
|
225537
225881
|
cov_41uwsnrpn.b[0][0]++;
|
|
225538
225882
|
cov_41uwsnrpn.s[3]++;
|
|
225539
|
-
// ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
|
|
225540
|
-
|
|
225541
|
-
this.fetchGroups();
|
|
225883
|
+
this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
|
|
225884
|
+
|
|
225542
225885
|
cov_41uwsnrpn.s[4]++;
|
|
225543
|
-
|
|
225886
|
+
|
|
225887
|
+
if (this.$refs.title) {
|
|
225888
|
+
cov_41uwsnrpn.b[1][0]++;
|
|
225889
|
+
cov_41uwsnrpn.s[5]++;
|
|
225890
|
+
this.$nextTick(this.$refs.title.focus);
|
|
225891
|
+
cov_41uwsnrpn.s[6]++;
|
|
225892
|
+
this.resetForm();
|
|
225893
|
+
} else {
|
|
225894
|
+
cov_41uwsnrpn.b[1][1]++;
|
|
225895
|
+
}
|
|
225544
225896
|
} else {
|
|
225545
225897
|
cov_41uwsnrpn.b[0][1]++;
|
|
225546
225898
|
}
|
|
225547
225899
|
}
|
|
225548
225900
|
},
|
|
225549
|
-
|
|
225550
|
-
// this.fieldsToValidate.forEach(field => {
|
|
225551
|
-
// if (has(this.$refs[field], 'reset')) {
|
|
225552
|
-
// this.refs[field] = this.$refs[field]
|
|
225553
|
-
// } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {
|
|
225554
|
-
// this.refs[field] = this.$refs[field].$refs.userSearchInput
|
|
225555
|
-
// } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {
|
|
225556
|
-
// this.refs[field] = this.$refs[field].$refs.groupSearchInput
|
|
225557
|
-
// }
|
|
225558
|
-
// })
|
|
225559
|
-
|
|
225901
|
+
updated: function updated() {
|
|
225560
225902
|
cov_41uwsnrpn.f[3]++;
|
|
225903
|
+
cov_41uwsnrpn.s[7]++;
|
|
225904
|
+
this.attachFieldRefs();
|
|
225561
225905
|
},
|
|
225562
225906
|
methods: {
|
|
225907
|
+
attachFieldRefs: function attachFieldRefs() {
|
|
225908
|
+
var _this = this;
|
|
225909
|
+
|
|
225910
|
+
cov_41uwsnrpn.f[4]++;
|
|
225911
|
+
cov_41uwsnrpn.s[8]++;
|
|
225912
|
+
// Map all local and nested inputs to local 'refs' object
|
|
225913
|
+
this.fieldsToValidate.forEach(function (field) {
|
|
225914
|
+
cov_41uwsnrpn.f[5]++;
|
|
225915
|
+
cov_41uwsnrpn.s[9]++;
|
|
225916
|
+
|
|
225917
|
+
if (has_default()(_this.$refs[field], 'reset')) {
|
|
225918
|
+
cov_41uwsnrpn.b[2][0]++;
|
|
225919
|
+
cov_41uwsnrpn.s[10]++;
|
|
225920
|
+
_this.refs[field] = _this.$refs[field];
|
|
225921
|
+
} else {
|
|
225922
|
+
cov_41uwsnrpn.b[2][1]++;
|
|
225923
|
+
cov_41uwsnrpn.s[11]++;
|
|
225924
|
+
|
|
225925
|
+
if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
|
|
225926
|
+
cov_41uwsnrpn.b[3][0]++;
|
|
225927
|
+
cov_41uwsnrpn.s[12]++;
|
|
225928
|
+
_this.refs[field] = _this.$refs[field].$refs.userSearchInput;
|
|
225929
|
+
} else {
|
|
225930
|
+
cov_41uwsnrpn.b[3][1]++;
|
|
225931
|
+
cov_41uwsnrpn.s[13]++;
|
|
225932
|
+
|
|
225933
|
+
if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
|
|
225934
|
+
cov_41uwsnrpn.b[4][0]++;
|
|
225935
|
+
cov_41uwsnrpn.s[14]++;
|
|
225936
|
+
_this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
|
|
225937
|
+
} else {
|
|
225938
|
+
cov_41uwsnrpn.b[4][1]++;
|
|
225939
|
+
}
|
|
225940
|
+
}
|
|
225941
|
+
}
|
|
225942
|
+
});
|
|
225943
|
+
},
|
|
225563
225944
|
fetchGroups: function () {
|
|
225564
225945
|
var _fetchGroups = NewProjectModalvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
225565
225946
|
var response;
|
|
@@ -225567,28 +225948,28 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225567
225948
|
while (1) {
|
|
225568
225949
|
switch (_context.prev = _context.next) {
|
|
225569
225950
|
case 0:
|
|
225570
|
-
cov_41uwsnrpn.f[
|
|
225571
|
-
cov_41uwsnrpn.s[
|
|
225951
|
+
cov_41uwsnrpn.f[6]++;
|
|
225952
|
+
cov_41uwsnrpn.s[15]++;
|
|
225572
225953
|
|
|
225573
225954
|
if (this.groups.length) {
|
|
225574
225955
|
_context.next = 12;
|
|
225575
225956
|
break;
|
|
225576
225957
|
}
|
|
225577
225958
|
|
|
225578
|
-
cov_41uwsnrpn.b[
|
|
225579
|
-
cov_41uwsnrpn.s[
|
|
225959
|
+
cov_41uwsnrpn.b[5][0]++;
|
|
225960
|
+
cov_41uwsnrpn.s[16]++;
|
|
225580
225961
|
_context.next = 7;
|
|
225581
225962
|
return fetchListRecords('groups');
|
|
225582
225963
|
|
|
225583
225964
|
case 7:
|
|
225584
225965
|
response = _context.sent;
|
|
225585
|
-
cov_41uwsnrpn.s[
|
|
225966
|
+
cov_41uwsnrpn.s[17]++;
|
|
225586
225967
|
this.groups = response.results;
|
|
225587
225968
|
_context.next = 13;
|
|
225588
225969
|
break;
|
|
225589
225970
|
|
|
225590
225971
|
case 12:
|
|
225591
|
-
cov_41uwsnrpn.b[
|
|
225972
|
+
cov_41uwsnrpn.b[5][1]++;
|
|
225592
225973
|
|
|
225593
225974
|
case 13:
|
|
225594
225975
|
case "end":
|
|
@@ -225605,93 +225986,98 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225605
225986
|
return fetchGroups;
|
|
225606
225987
|
}(),
|
|
225607
225988
|
toggleOptionalFields: function toggleOptionalFields() {
|
|
225608
|
-
cov_41uwsnrpn.f[
|
|
225609
|
-
cov_41uwsnrpn.s[
|
|
225989
|
+
cov_41uwsnrpn.f[7]++;
|
|
225990
|
+
cov_41uwsnrpn.s[18]++;
|
|
225610
225991
|
this.showOptionalFields = !this.showOptionalFields;
|
|
225611
|
-
cov_41uwsnrpn.s[
|
|
225992
|
+
cov_41uwsnrpn.s[19]++;
|
|
225612
225993
|
this.$nextTick(this.$refs.title.focus);
|
|
225613
|
-
cov_41uwsnrpn.s[
|
|
225994
|
+
cov_41uwsnrpn.s[20]++;
|
|
225614
225995
|
this.$nextTick(this.$refs.title.resetValidation);
|
|
225615
225996
|
},
|
|
225616
225997
|
resetForm: function resetForm() {
|
|
225617
|
-
|
|
225618
|
-
|
|
225619
|
-
|
|
225620
|
-
|
|
225621
|
-
|
|
225998
|
+
var _this2 = this;
|
|
225999
|
+
|
|
226000
|
+
cov_41uwsnrpn.f[8]++;
|
|
226001
|
+
cov_41uwsnrpn.s[21]++;
|
|
226002
|
+
this.formHasErrors = false;
|
|
226003
|
+
cov_41uwsnrpn.s[22]++;
|
|
226004
|
+
this.fieldsToValidate.forEach(function (field) {
|
|
226005
|
+
cov_41uwsnrpn.f[9]++;
|
|
226006
|
+
cov_41uwsnrpn.s[23]++;
|
|
226007
|
+
return _this2.refs[field].reset();
|
|
226008
|
+
});
|
|
225622
226009
|
},
|
|
225623
226010
|
closeModal: function closeModal() {
|
|
225624
|
-
cov_41uwsnrpn.f[
|
|
225625
|
-
cov_41uwsnrpn.s[
|
|
226011
|
+
cov_41uwsnrpn.f[10]++;
|
|
226012
|
+
cov_41uwsnrpn.s[24]++;
|
|
225626
226013
|
this.resetForm();
|
|
225627
|
-
cov_41uwsnrpn.s[
|
|
226014
|
+
cov_41uwsnrpn.s[25]++;
|
|
225628
226015
|
this.$emit('close-modal');
|
|
225629
226016
|
},
|
|
225630
226017
|
updateValue: function updateValue(data) {
|
|
225631
|
-
cov_41uwsnrpn.f[
|
|
225632
|
-
cov_41uwsnrpn.s[
|
|
226018
|
+
cov_41uwsnrpn.f[11]++;
|
|
226019
|
+
cov_41uwsnrpn.s[26]++;
|
|
225633
226020
|
this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
|
|
225634
226021
|
},
|
|
225635
226022
|
submit: function () {
|
|
225636
226023
|
var _submit = NewProjectModalvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
|
|
225637
|
-
var
|
|
226024
|
+
var _this3 = this;
|
|
225638
226025
|
|
|
225639
226026
|
return regenerator_default.a.wrap(function _callee2$(_context2) {
|
|
225640
226027
|
while (1) {
|
|
225641
226028
|
switch (_context2.prev = _context2.next) {
|
|
225642
226029
|
case 0:
|
|
225643
|
-
cov_41uwsnrpn.f[
|
|
225644
|
-
cov_41uwsnrpn.s[
|
|
226030
|
+
cov_41uwsnrpn.f[12]++;
|
|
226031
|
+
cov_41uwsnrpn.s[27]++;
|
|
225645
226032
|
this.formHasErrors = false;
|
|
225646
|
-
cov_41uwsnrpn.s[
|
|
226033
|
+
cov_41uwsnrpn.s[28]++;
|
|
225647
226034
|
this.fieldsToValidate.forEach(function (field) {
|
|
225648
|
-
cov_41uwsnrpn.f[
|
|
225649
|
-
cov_41uwsnrpn.s[
|
|
225650
|
-
|
|
225651
|
-
_this.refs[field].validate(true);
|
|
226035
|
+
cov_41uwsnrpn.f[13]++;
|
|
226036
|
+
cov_41uwsnrpn.s[29]++;
|
|
226037
|
+
return _this3.refs[field].validate(true);
|
|
225652
226038
|
});
|
|
225653
|
-
cov_41uwsnrpn.s[
|
|
226039
|
+
cov_41uwsnrpn.s[30]++;
|
|
225654
226040
|
|
|
225655
226041
|
if (!this.formHasErrors) {
|
|
225656
|
-
cov_41uwsnrpn.b[
|
|
225657
|
-
cov_41uwsnrpn.s[
|
|
226042
|
+
cov_41uwsnrpn.b[6][0]++;
|
|
226043
|
+
cov_41uwsnrpn.s[31]++;
|
|
225658
226044
|
createRecord('projects', this.project).then(function (response) {
|
|
225659
|
-
cov_41uwsnrpn.f[
|
|
225660
|
-
var projectId = (cov_41uwsnrpn.s[
|
|
225661
|
-
cov_41uwsnrpn.s[
|
|
226045
|
+
cov_41uwsnrpn.f[14]++;
|
|
226046
|
+
var projectId = (cov_41uwsnrpn.s[32]++, _this3.$get(response, 'pk', ''));
|
|
226047
|
+
cov_41uwsnrpn.s[33]++;
|
|
225662
226048
|
|
|
225663
|
-
|
|
226049
|
+
_this3.$store.dispatch(SHOW_ALERT, {
|
|
225664
226050
|
message: "Project ".concat(projectId, " was succesfully created.")
|
|
225665
226051
|
});
|
|
225666
226052
|
|
|
225667
|
-
cov_41uwsnrpn.s[
|
|
226053
|
+
cov_41uwsnrpn.s[34]++;
|
|
225668
226054
|
|
|
225669
|
-
|
|
226055
|
+
_this3.$store.dispatch(SHOW_PANEL, {
|
|
225670
226056
|
project: projectId
|
|
225671
226057
|
});
|
|
225672
226058
|
|
|
225673
|
-
cov_41uwsnrpn.s[
|
|
226059
|
+
cov_41uwsnrpn.s[35]++;
|
|
225674
226060
|
|
|
225675
|
-
|
|
226061
|
+
_this3.closeModal();
|
|
225676
226062
|
}).catch(function (error) {
|
|
225677
|
-
cov_41uwsnrpn.f[
|
|
225678
|
-
cov_41uwsnrpn.s[
|
|
226063
|
+
cov_41uwsnrpn.f[15]++;
|
|
226064
|
+
cov_41uwsnrpn.s[36]++;
|
|
225679
226065
|
|
|
225680
226066
|
if (error.response) {
|
|
225681
|
-
cov_41uwsnrpn.b[
|
|
225682
|
-
cov_41uwsnrpn.s[
|
|
225683
|
-
|
|
225684
|
-
cov_41uwsnrpn.s[
|
|
226067
|
+
cov_41uwsnrpn.b[7][0]++;
|
|
226068
|
+
cov_41uwsnrpn.s[37]++;
|
|
226069
|
+
_this3.errorMessages = error.response.data;
|
|
226070
|
+
cov_41uwsnrpn.s[38]++;
|
|
225685
226071
|
|
|
225686
|
-
|
|
226072
|
+
_this3.$store.dispatch(SHOW_ALERT, {
|
|
225687
226073
|
error: 'The project could not be created. Please try again.'
|
|
225688
226074
|
});
|
|
225689
226075
|
} else {
|
|
225690
|
-
cov_41uwsnrpn.b[
|
|
226076
|
+
cov_41uwsnrpn.b[7][1]++;
|
|
225691
226077
|
}
|
|
225692
226078
|
});
|
|
225693
226079
|
} else {
|
|
225694
|
-
cov_41uwsnrpn.b[
|
|
226080
|
+
cov_41uwsnrpn.b[6][1]++;
|
|
225695
226081
|
}
|
|
225696
226082
|
|
|
225697
226083
|
case 7:
|
|
@@ -225726,8 +226112,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
|
|
|
225726
226112
|
|
|
225727
226113
|
var NewProjectModal_component = normalizeComponent(
|
|
225728
226114
|
projects_NewProjectModalvue_type_script_lang_js_,
|
|
225729
|
-
|
|
225730
|
-
|
|
226115
|
+
NewProjectModalvue_type_template_id_070ec06c_render,
|
|
226116
|
+
NewProjectModalvue_type_template_id_070ec06c_staticRenderFns,
|
|
225731
226117
|
false,
|
|
225732
226118
|
null,
|
|
225733
226119
|
null,
|