@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.umd.js
CHANGED
|
@@ -91177,7 +91177,7 @@ module.exports = overArg;
|
|
|
91177
91177
|
/***/ "9224":
|
|
91178
91178
|
/***/ (function(module) {
|
|
91179
91179
|
|
|
91180
|
-
module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.
|
|
91180
|
+
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\"}");
|
|
91181
91181
|
|
|
91182
91182
|
/***/ }),
|
|
91183
91183
|
|
|
@@ -222363,15 +222363,16 @@ var EditProfileModal_component = normalizeComponent(
|
|
|
222363
222363
|
)
|
|
222364
222364
|
|
|
222365
222365
|
/* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
|
|
222366
|
-
// 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=
|
|
222367
|
-
var
|
|
222368
|
-
var
|
|
222366
|
+
// 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&
|
|
222367
|
+
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}])})}
|
|
222368
|
+
var NewProjectModalvue_type_template_id_070ec06c_staticRenderFns = []
|
|
222369
222369
|
|
|
222370
222370
|
|
|
222371
|
-
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=
|
|
222371
|
+
// CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=070ec06c&
|
|
222372
222372
|
|
|
222373
222373
|
// EXTERNAL MODULE: ./node_modules/lodash/has.js
|
|
222374
222374
|
var has = __webpack_require__("3852");
|
|
222375
|
+
var has_default = /*#__PURE__*/__webpack_require__.n(has);
|
|
222375
222376
|
|
|
222376
222377
|
// 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&
|
|
222377
222378
|
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){
|
|
@@ -224530,7 +224531,7 @@ var UserSearchInput_component = normalizeComponent(
|
|
|
224530
224531
|
// 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&
|
|
224531
224532
|
var cov_41uwsnrpn = function () {
|
|
224532
224533
|
var path = "/Users/juanes/papaemmelab/isabl_web/src/components/projects/NewProjectModal.vue";
|
|
224533
|
-
var hash = "
|
|
224534
|
+
var hash = "39bf82dbca3de1e3096f5011f5bbc47921642eb4";
|
|
224534
224535
|
var global = new Function("return this")();
|
|
224535
224536
|
var gcv = "__coverage__";
|
|
224536
224537
|
var coverageData = {
|
|
@@ -224562,247 +224563,367 @@ var cov_41uwsnrpn = function () {
|
|
|
224562
224563
|
column: 6
|
|
224563
224564
|
},
|
|
224564
224565
|
end: {
|
|
224565
|
-
line:
|
|
224566
|
+
line: 214,
|
|
224566
224567
|
column: 7
|
|
224567
224568
|
}
|
|
224568
224569
|
},
|
|
224569
224570
|
"3": {
|
|
224570
224571
|
start: {
|
|
224571
|
-
line:
|
|
224572
|
+
line: 208,
|
|
224572
224573
|
column: 8
|
|
224573
224574
|
},
|
|
224574
224575
|
end: {
|
|
224575
|
-
line:
|
|
224576
|
+
line: 208,
|
|
224576
224577
|
column: 26
|
|
224577
224578
|
}
|
|
224578
224579
|
},
|
|
224579
224580
|
"4": {
|
|
224580
224581
|
start: {
|
|
224581
|
-
line:
|
|
224582
|
+
line: 210,
|
|
224582
224583
|
column: 8
|
|
224583
224584
|
},
|
|
224584
224585
|
end: {
|
|
224585
|
-
line:
|
|
224586
|
-
column:
|
|
224586
|
+
line: 213,
|
|
224587
|
+
column: 9
|
|
224587
224588
|
}
|
|
224588
224589
|
},
|
|
224589
224590
|
"5": {
|
|
224591
|
+
start: {
|
|
224592
|
+
line: 211,
|
|
224593
|
+
column: 10
|
|
224594
|
+
},
|
|
224595
|
+
end: {
|
|
224596
|
+
line: 211,
|
|
224597
|
+
column: 48
|
|
224598
|
+
}
|
|
224599
|
+
},
|
|
224600
|
+
"6": {
|
|
224601
|
+
start: {
|
|
224602
|
+
line: 212,
|
|
224603
|
+
column: 10
|
|
224604
|
+
},
|
|
224605
|
+
end: {
|
|
224606
|
+
line: 212,
|
|
224607
|
+
column: 26
|
|
224608
|
+
}
|
|
224609
|
+
},
|
|
224610
|
+
"7": {
|
|
224611
|
+
start: {
|
|
224612
|
+
line: 218,
|
|
224613
|
+
column: 4
|
|
224614
|
+
},
|
|
224615
|
+
end: {
|
|
224616
|
+
line: 218,
|
|
224617
|
+
column: 26
|
|
224618
|
+
}
|
|
224619
|
+
},
|
|
224620
|
+
"8": {
|
|
224621
|
+
start: {
|
|
224622
|
+
line: 223,
|
|
224623
|
+
column: 6
|
|
224624
|
+
},
|
|
224625
|
+
end: {
|
|
224626
|
+
line: 231,
|
|
224627
|
+
column: 8
|
|
224628
|
+
}
|
|
224629
|
+
},
|
|
224630
|
+
"9": {
|
|
224631
|
+
start: {
|
|
224632
|
+
line: 224,
|
|
224633
|
+
column: 8
|
|
224634
|
+
},
|
|
224635
|
+
end: {
|
|
224636
|
+
line: 230,
|
|
224637
|
+
column: 9
|
|
224638
|
+
}
|
|
224639
|
+
},
|
|
224640
|
+
"10": {
|
|
224641
|
+
start: {
|
|
224642
|
+
line: 225,
|
|
224643
|
+
column: 10
|
|
224644
|
+
},
|
|
224645
|
+
end: {
|
|
224646
|
+
line: 225,
|
|
224647
|
+
column: 46
|
|
224648
|
+
}
|
|
224649
|
+
},
|
|
224650
|
+
"11": {
|
|
224651
|
+
start: {
|
|
224652
|
+
line: 226,
|
|
224653
|
+
column: 15
|
|
224654
|
+
},
|
|
224655
|
+
end: {
|
|
224656
|
+
line: 230,
|
|
224657
|
+
column: 9
|
|
224658
|
+
}
|
|
224659
|
+
},
|
|
224660
|
+
"12": {
|
|
224661
|
+
start: {
|
|
224662
|
+
line: 227,
|
|
224663
|
+
column: 10
|
|
224664
|
+
},
|
|
224665
|
+
end: {
|
|
224666
|
+
line: 227,
|
|
224667
|
+
column: 68
|
|
224668
|
+
}
|
|
224669
|
+
},
|
|
224670
|
+
"13": {
|
|
224671
|
+
start: {
|
|
224672
|
+
line: 228,
|
|
224673
|
+
column: 15
|
|
224674
|
+
},
|
|
224675
|
+
end: {
|
|
224676
|
+
line: 230,
|
|
224677
|
+
column: 9
|
|
224678
|
+
}
|
|
224679
|
+
},
|
|
224680
|
+
"14": {
|
|
224590
224681
|
start: {
|
|
224591
224682
|
line: 229,
|
|
224683
|
+
column: 10
|
|
224684
|
+
},
|
|
224685
|
+
end: {
|
|
224686
|
+
line: 229,
|
|
224687
|
+
column: 69
|
|
224688
|
+
}
|
|
224689
|
+
},
|
|
224690
|
+
"15": {
|
|
224691
|
+
start: {
|
|
224692
|
+
line: 234,
|
|
224592
224693
|
column: 6
|
|
224593
224694
|
},
|
|
224594
224695
|
end: {
|
|
224595
|
-
line:
|
|
224696
|
+
line: 237,
|
|
224596
224697
|
column: 7
|
|
224597
224698
|
}
|
|
224598
224699
|
},
|
|
224599
|
-
"
|
|
224700
|
+
"16": {
|
|
224600
224701
|
start: {
|
|
224601
|
-
line:
|
|
224702
|
+
line: 235,
|
|
224602
224703
|
column: 25
|
|
224603
224704
|
},
|
|
224604
224705
|
end: {
|
|
224605
|
-
line:
|
|
224706
|
+
line: 235,
|
|
224606
224707
|
column: 57
|
|
224607
224708
|
}
|
|
224608
224709
|
},
|
|
224609
|
-
"
|
|
224710
|
+
"17": {
|
|
224610
224711
|
start: {
|
|
224611
|
-
line:
|
|
224712
|
+
line: 236,
|
|
224612
224713
|
column: 8
|
|
224613
224714
|
},
|
|
224614
224715
|
end: {
|
|
224615
|
-
line:
|
|
224716
|
+
line: 236,
|
|
224616
224717
|
column: 38
|
|
224617
224718
|
}
|
|
224618
224719
|
},
|
|
224619
|
-
"
|
|
224720
|
+
"18": {
|
|
224620
224721
|
start: {
|
|
224621
|
-
line:
|
|
224722
|
+
line: 240,
|
|
224622
224723
|
column: 6
|
|
224623
224724
|
},
|
|
224624
224725
|
end: {
|
|
224625
|
-
line:
|
|
224726
|
+
line: 240,
|
|
224626
224727
|
column: 56
|
|
224627
224728
|
}
|
|
224628
224729
|
},
|
|
224629
|
-
"
|
|
224730
|
+
"19": {
|
|
224630
224731
|
start: {
|
|
224631
|
-
line:
|
|
224732
|
+
line: 241,
|
|
224632
224733
|
column: 6
|
|
224633
224734
|
},
|
|
224634
224735
|
end: {
|
|
224635
|
-
line:
|
|
224736
|
+
line: 241,
|
|
224636
224737
|
column: 44
|
|
224637
224738
|
}
|
|
224638
224739
|
},
|
|
224639
|
-
"
|
|
224740
|
+
"20": {
|
|
224640
224741
|
start: {
|
|
224641
|
-
line:
|
|
224742
|
+
line: 242,
|
|
224642
224743
|
column: 6
|
|
224643
224744
|
},
|
|
224644
224745
|
end: {
|
|
224645
|
-
line:
|
|
224746
|
+
line: 242,
|
|
224646
224747
|
column: 54
|
|
224647
224748
|
}
|
|
224648
224749
|
},
|
|
224649
|
-
"
|
|
224750
|
+
"21": {
|
|
224650
224751
|
start: {
|
|
224651
|
-
line:
|
|
224752
|
+
line: 245,
|
|
224652
224753
|
column: 6
|
|
224653
224754
|
},
|
|
224654
224755
|
end: {
|
|
224655
|
-
line:
|
|
224756
|
+
line: 245,
|
|
224656
224757
|
column: 32
|
|
224657
224758
|
}
|
|
224658
224759
|
},
|
|
224659
|
-
"
|
|
224760
|
+
"22": {
|
|
224660
224761
|
start: {
|
|
224661
224762
|
line: 246,
|
|
224662
224763
|
column: 6
|
|
224663
224764
|
},
|
|
224664
224765
|
end: {
|
|
224665
224766
|
line: 246,
|
|
224666
|
-
column:
|
|
224767
|
+
column: 70
|
|
224667
224768
|
}
|
|
224668
224769
|
},
|
|
224669
|
-
"
|
|
224770
|
+
"23": {
|
|
224670
224771
|
start: {
|
|
224671
|
-
line:
|
|
224772
|
+
line: 246,
|
|
224773
|
+
column: 45
|
|
224774
|
+
},
|
|
224775
|
+
end: {
|
|
224776
|
+
line: 246,
|
|
224777
|
+
column: 69
|
|
224778
|
+
}
|
|
224779
|
+
},
|
|
224780
|
+
"24": {
|
|
224781
|
+
start: {
|
|
224782
|
+
line: 249,
|
|
224672
224783
|
column: 6
|
|
224673
224784
|
},
|
|
224674
224785
|
end: {
|
|
224675
|
-
line:
|
|
224676
|
-
column:
|
|
224786
|
+
line: 249,
|
|
224787
|
+
column: 22
|
|
224677
224788
|
}
|
|
224678
224789
|
},
|
|
224679
|
-
"
|
|
224790
|
+
"25": {
|
|
224680
224791
|
start: {
|
|
224681
224792
|
line: 250,
|
|
224682
224793
|
column: 6
|
|
224683
224794
|
},
|
|
224684
224795
|
end: {
|
|
224685
|
-
line:
|
|
224686
|
-
column:
|
|
224796
|
+
line: 250,
|
|
224797
|
+
column: 31
|
|
224687
224798
|
}
|
|
224688
224799
|
},
|
|
224689
|
-
"
|
|
224800
|
+
"26": {
|
|
224690
224801
|
start: {
|
|
224691
|
-
line:
|
|
224802
|
+
line: 253,
|
|
224692
224803
|
column: 6
|
|
224693
224804
|
},
|
|
224694
224805
|
end: {
|
|
224695
224806
|
line: 256,
|
|
224696
|
-
column:
|
|
224807
|
+
column: 7
|
|
224697
224808
|
}
|
|
224698
224809
|
},
|
|
224699
|
-
"
|
|
224810
|
+
"27": {
|
|
224700
224811
|
start: {
|
|
224701
|
-
line:
|
|
224812
|
+
line: 259,
|
|
224702
224813
|
column: 6
|
|
224703
224814
|
},
|
|
224704
224815
|
end: {
|
|
224705
224816
|
line: 259,
|
|
224706
|
-
column:
|
|
224817
|
+
column: 32
|
|
224707
224818
|
}
|
|
224708
224819
|
},
|
|
224709
|
-
"
|
|
224820
|
+
"28": {
|
|
224710
224821
|
start: {
|
|
224711
|
-
line:
|
|
224712
|
-
column:
|
|
224822
|
+
line: 260,
|
|
224823
|
+
column: 6
|
|
224713
224824
|
},
|
|
224714
224825
|
end: {
|
|
224715
|
-
line:
|
|
224716
|
-
column:
|
|
224826
|
+
line: 260,
|
|
224827
|
+
column: 77
|
|
224717
224828
|
}
|
|
224718
224829
|
},
|
|
224719
|
-
"
|
|
224830
|
+
"29": {
|
|
224720
224831
|
start: {
|
|
224721
224832
|
line: 260,
|
|
224833
|
+
column: 45
|
|
224834
|
+
},
|
|
224835
|
+
end: {
|
|
224836
|
+
line: 260,
|
|
224837
|
+
column: 76
|
|
224838
|
+
}
|
|
224839
|
+
},
|
|
224840
|
+
"30": {
|
|
224841
|
+
start: {
|
|
224842
|
+
line: 261,
|
|
224722
224843
|
column: 6
|
|
224723
224844
|
},
|
|
224724
224845
|
end: {
|
|
224725
|
-
line:
|
|
224846
|
+
line: 282,
|
|
224726
224847
|
column: 7
|
|
224727
224848
|
}
|
|
224728
224849
|
},
|
|
224729
|
-
"
|
|
224850
|
+
"31": {
|
|
224730
224851
|
start: {
|
|
224731
|
-
line:
|
|
224852
|
+
line: 262,
|
|
224732
224853
|
column: 8
|
|
224733
224854
|
},
|
|
224734
224855
|
end: {
|
|
224735
|
-
line:
|
|
224856
|
+
line: 281,
|
|
224736
224857
|
column: 12
|
|
224737
224858
|
}
|
|
224738
224859
|
},
|
|
224739
|
-
"
|
|
224860
|
+
"32": {
|
|
224740
224861
|
start: {
|
|
224741
|
-
line:
|
|
224862
|
+
line: 264,
|
|
224742
224863
|
column: 30
|
|
224743
224864
|
},
|
|
224744
224865
|
end: {
|
|
224745
|
-
line:
|
|
224866
|
+
line: 264,
|
|
224746
224867
|
column: 59
|
|
224747
224868
|
}
|
|
224748
224869
|
},
|
|
224749
|
-
"
|
|
224870
|
+
"33": {
|
|
224750
224871
|
start: {
|
|
224751
|
-
line:
|
|
224872
|
+
line: 265,
|
|
224752
224873
|
column: 12
|
|
224753
224874
|
},
|
|
224754
224875
|
end: {
|
|
224755
|
-
line:
|
|
224876
|
+
line: 267,
|
|
224756
224877
|
column: 14
|
|
224757
224878
|
}
|
|
224758
224879
|
},
|
|
224759
|
-
"
|
|
224880
|
+
"34": {
|
|
224760
224881
|
start: {
|
|
224761
|
-
line:
|
|
224882
|
+
line: 269,
|
|
224762
224883
|
column: 12
|
|
224763
224884
|
},
|
|
224764
224885
|
end: {
|
|
224765
|
-
line:
|
|
224886
|
+
line: 271,
|
|
224766
224887
|
column: 14
|
|
224767
224888
|
}
|
|
224768
224889
|
},
|
|
224769
|
-
"
|
|
224890
|
+
"35": {
|
|
224770
224891
|
start: {
|
|
224771
|
-
line:
|
|
224892
|
+
line: 272,
|
|
224772
224893
|
column: 12
|
|
224773
224894
|
},
|
|
224774
224895
|
end: {
|
|
224775
|
-
line:
|
|
224896
|
+
line: 272,
|
|
224776
224897
|
column: 29
|
|
224777
224898
|
}
|
|
224778
224899
|
},
|
|
224779
|
-
"
|
|
224900
|
+
"36": {
|
|
224780
224901
|
start: {
|
|
224781
|
-
line:
|
|
224902
|
+
line: 275,
|
|
224782
224903
|
column: 12
|
|
224783
224904
|
},
|
|
224784
224905
|
end: {
|
|
224785
|
-
line:
|
|
224906
|
+
line: 280,
|
|
224786
224907
|
column: 13
|
|
224787
224908
|
}
|
|
224788
224909
|
},
|
|
224789
|
-
"
|
|
224910
|
+
"37": {
|
|
224790
224911
|
start: {
|
|
224791
|
-
line:
|
|
224912
|
+
line: 276,
|
|
224792
224913
|
column: 14
|
|
224793
224914
|
},
|
|
224794
224915
|
end: {
|
|
224795
|
-
line:
|
|
224916
|
+
line: 276,
|
|
224796
224917
|
column: 54
|
|
224797
224918
|
}
|
|
224798
224919
|
},
|
|
224799
|
-
"
|
|
224920
|
+
"38": {
|
|
224800
224921
|
start: {
|
|
224801
|
-
line:
|
|
224922
|
+
line: 277,
|
|
224802
224923
|
column: 14
|
|
224803
224924
|
},
|
|
224804
224925
|
end: {
|
|
224805
|
-
line:
|
|
224926
|
+
line: 279,
|
|
224806
224927
|
column: 16
|
|
224807
224928
|
}
|
|
224808
224929
|
}
|
|
@@ -224874,7 +224995,7 @@ var cov_41uwsnrpn = function () {
|
|
|
224874
224995
|
column: 21
|
|
224875
224996
|
},
|
|
224876
224997
|
end: {
|
|
224877
|
-
line:
|
|
224998
|
+
line: 215,
|
|
224878
224999
|
column: 5
|
|
224879
225000
|
}
|
|
224880
225001
|
},
|
|
@@ -224884,76 +225005,100 @@ var cov_41uwsnrpn = function () {
|
|
|
224884
225005
|
name: "(anonymous_3)",
|
|
224885
225006
|
decl: {
|
|
224886
225007
|
start: {
|
|
224887
|
-
line:
|
|
225008
|
+
line: 217,
|
|
224888
225009
|
column: 2
|
|
224889
225010
|
},
|
|
224890
225011
|
end: {
|
|
224891
|
-
line:
|
|
225012
|
+
line: 217,
|
|
224892
225013
|
column: 3
|
|
224893
225014
|
}
|
|
224894
225015
|
},
|
|
224895
225016
|
loc: {
|
|
224896
225017
|
start: {
|
|
224897
|
-
line:
|
|
225018
|
+
line: 217,
|
|
224898
225019
|
column: 12
|
|
224899
225020
|
},
|
|
224900
225021
|
end: {
|
|
224901
|
-
line:
|
|
225022
|
+
line: 219,
|
|
224902
225023
|
column: 3
|
|
224903
225024
|
}
|
|
224904
225025
|
},
|
|
224905
|
-
line:
|
|
225026
|
+
line: 217
|
|
224906
225027
|
},
|
|
224907
225028
|
"4": {
|
|
224908
225029
|
name: "(anonymous_4)",
|
|
224909
225030
|
decl: {
|
|
224910
225031
|
start: {
|
|
224911
|
-
line:
|
|
225032
|
+
line: 221,
|
|
224912
225033
|
column: 4
|
|
224913
225034
|
},
|
|
224914
225035
|
end: {
|
|
224915
|
-
line:
|
|
225036
|
+
line: 221,
|
|
224916
225037
|
column: 5
|
|
224917
225038
|
}
|
|
224918
225039
|
},
|
|
224919
225040
|
loc: {
|
|
224920
225041
|
start: {
|
|
224921
|
-
line:
|
|
224922
|
-
column:
|
|
225042
|
+
line: 221,
|
|
225043
|
+
column: 22
|
|
224923
225044
|
},
|
|
224924
225045
|
end: {
|
|
224925
|
-
line:
|
|
225046
|
+
line: 232,
|
|
224926
225047
|
column: 5
|
|
224927
225048
|
}
|
|
224928
225049
|
},
|
|
224929
|
-
line:
|
|
225050
|
+
line: 221
|
|
224930
225051
|
},
|
|
224931
225052
|
"5": {
|
|
224932
225053
|
name: "(anonymous_5)",
|
|
224933
225054
|
decl: {
|
|
224934
225055
|
start: {
|
|
224935
|
-
line:
|
|
225056
|
+
line: 223,
|
|
225057
|
+
column: 36
|
|
225058
|
+
},
|
|
225059
|
+
end: {
|
|
225060
|
+
line: 223,
|
|
225061
|
+
column: 37
|
|
225062
|
+
}
|
|
225063
|
+
},
|
|
225064
|
+
loc: {
|
|
225065
|
+
start: {
|
|
225066
|
+
line: 223,
|
|
225067
|
+
column: 45
|
|
225068
|
+
},
|
|
225069
|
+
end: {
|
|
225070
|
+
line: 231,
|
|
225071
|
+
column: 7
|
|
225072
|
+
}
|
|
225073
|
+
},
|
|
225074
|
+
line: 223
|
|
225075
|
+
},
|
|
225076
|
+
"6": {
|
|
225077
|
+
name: "(anonymous_6)",
|
|
225078
|
+
decl: {
|
|
225079
|
+
start: {
|
|
225080
|
+
line: 233,
|
|
224936
225081
|
column: 4
|
|
224937
225082
|
},
|
|
224938
225083
|
end: {
|
|
224939
|
-
line:
|
|
225084
|
+
line: 233,
|
|
224940
225085
|
column: 5
|
|
224941
225086
|
}
|
|
224942
225087
|
},
|
|
224943
225088
|
loc: {
|
|
224944
225089
|
start: {
|
|
224945
|
-
line:
|
|
224946
|
-
column:
|
|
225090
|
+
line: 233,
|
|
225091
|
+
column: 24
|
|
224947
225092
|
},
|
|
224948
225093
|
end: {
|
|
224949
225094
|
line: 238,
|
|
224950
225095
|
column: 5
|
|
224951
225096
|
}
|
|
224952
225097
|
},
|
|
224953
|
-
line:
|
|
225098
|
+
line: 233
|
|
224954
225099
|
},
|
|
224955
|
-
"
|
|
224956
|
-
name: "(
|
|
225100
|
+
"7": {
|
|
225101
|
+
name: "(anonymous_7)",
|
|
224957
225102
|
decl: {
|
|
224958
225103
|
start: {
|
|
224959
225104
|
line: 239,
|
|
@@ -224967,158 +225112,206 @@ var cov_41uwsnrpn = function () {
|
|
|
224967
225112
|
loc: {
|
|
224968
225113
|
start: {
|
|
224969
225114
|
line: 239,
|
|
224970
|
-
column:
|
|
225115
|
+
column: 27
|
|
224971
225116
|
},
|
|
224972
225117
|
end: {
|
|
224973
|
-
line:
|
|
225118
|
+
line: 243,
|
|
224974
225119
|
column: 5
|
|
224975
225120
|
}
|
|
224976
225121
|
},
|
|
224977
225122
|
line: 239
|
|
224978
225123
|
},
|
|
224979
|
-
"
|
|
224980
|
-
name: "(
|
|
225124
|
+
"8": {
|
|
225125
|
+
name: "(anonymous_8)",
|
|
224981
225126
|
decl: {
|
|
224982
225127
|
start: {
|
|
224983
|
-
line:
|
|
225128
|
+
line: 244,
|
|
224984
225129
|
column: 4
|
|
224985
225130
|
},
|
|
224986
225131
|
end: {
|
|
224987
|
-
line:
|
|
225132
|
+
line: 244,
|
|
224988
225133
|
column: 5
|
|
224989
225134
|
}
|
|
224990
225135
|
},
|
|
224991
225136
|
loc: {
|
|
224992
225137
|
start: {
|
|
224993
|
-
line:
|
|
224994
|
-
column:
|
|
225138
|
+
line: 244,
|
|
225139
|
+
column: 16
|
|
225140
|
+
},
|
|
225141
|
+
end: {
|
|
225142
|
+
line: 247,
|
|
225143
|
+
column: 5
|
|
225144
|
+
}
|
|
225145
|
+
},
|
|
225146
|
+
line: 244
|
|
225147
|
+
},
|
|
225148
|
+
"9": {
|
|
225149
|
+
name: "(anonymous_9)",
|
|
225150
|
+
decl: {
|
|
225151
|
+
start: {
|
|
225152
|
+
line: 246,
|
|
225153
|
+
column: 36
|
|
225154
|
+
},
|
|
225155
|
+
end: {
|
|
225156
|
+
line: 246,
|
|
225157
|
+
column: 37
|
|
225158
|
+
}
|
|
225159
|
+
},
|
|
225160
|
+
loc: {
|
|
225161
|
+
start: {
|
|
225162
|
+
line: 246,
|
|
225163
|
+
column: 45
|
|
225164
|
+
},
|
|
225165
|
+
end: {
|
|
225166
|
+
line: 246,
|
|
225167
|
+
column: 69
|
|
225168
|
+
}
|
|
225169
|
+
},
|
|
225170
|
+
line: 246
|
|
225171
|
+
},
|
|
225172
|
+
"10": {
|
|
225173
|
+
name: "(anonymous_10)",
|
|
225174
|
+
decl: {
|
|
225175
|
+
start: {
|
|
225176
|
+
line: 248,
|
|
225177
|
+
column: 4
|
|
224995
225178
|
},
|
|
224996
225179
|
end: {
|
|
224997
225180
|
line: 248,
|
|
224998
225181
|
column: 5
|
|
224999
225182
|
}
|
|
225000
225183
|
},
|
|
225001
|
-
|
|
225184
|
+
loc: {
|
|
225185
|
+
start: {
|
|
225186
|
+
line: 248,
|
|
225187
|
+
column: 17
|
|
225188
|
+
},
|
|
225189
|
+
end: {
|
|
225190
|
+
line: 251,
|
|
225191
|
+
column: 5
|
|
225192
|
+
}
|
|
225193
|
+
},
|
|
225194
|
+
line: 248
|
|
225002
225195
|
},
|
|
225003
|
-
"
|
|
225004
|
-
name: "(
|
|
225196
|
+
"11": {
|
|
225197
|
+
name: "(anonymous_11)",
|
|
225005
225198
|
decl: {
|
|
225006
225199
|
start: {
|
|
225007
|
-
line:
|
|
225200
|
+
line: 252,
|
|
225008
225201
|
column: 4
|
|
225009
225202
|
},
|
|
225010
225203
|
end: {
|
|
225011
|
-
line:
|
|
225204
|
+
line: 252,
|
|
225012
225205
|
column: 5
|
|
225013
225206
|
}
|
|
225014
225207
|
},
|
|
225015
225208
|
loc: {
|
|
225016
225209
|
start: {
|
|
225017
|
-
line:
|
|
225210
|
+
line: 252,
|
|
225018
225211
|
column: 22
|
|
225019
225212
|
},
|
|
225020
225213
|
end: {
|
|
225021
|
-
line:
|
|
225214
|
+
line: 257,
|
|
225022
225215
|
column: 5
|
|
225023
225216
|
}
|
|
225024
225217
|
},
|
|
225025
|
-
line:
|
|
225218
|
+
line: 252
|
|
225026
225219
|
},
|
|
225027
|
-
"
|
|
225028
|
-
name: "(
|
|
225220
|
+
"12": {
|
|
225221
|
+
name: "(anonymous_12)",
|
|
225029
225222
|
decl: {
|
|
225030
225223
|
start: {
|
|
225031
|
-
line:
|
|
225224
|
+
line: 258,
|
|
225032
225225
|
column: 4
|
|
225033
225226
|
},
|
|
225034
225227
|
end: {
|
|
225035
|
-
line:
|
|
225228
|
+
line: 258,
|
|
225036
225229
|
column: 5
|
|
225037
225230
|
}
|
|
225038
225231
|
},
|
|
225039
225232
|
loc: {
|
|
225040
225233
|
start: {
|
|
225041
|
-
line:
|
|
225234
|
+
line: 258,
|
|
225042
225235
|
column: 19
|
|
225043
225236
|
},
|
|
225044
225237
|
end: {
|
|
225045
|
-
line:
|
|
225238
|
+
line: 283,
|
|
225046
225239
|
column: 5
|
|
225047
225240
|
}
|
|
225048
225241
|
},
|
|
225049
|
-
line:
|
|
225242
|
+
line: 258
|
|
225050
225243
|
},
|
|
225051
|
-
"
|
|
225052
|
-
name: "(
|
|
225244
|
+
"13": {
|
|
225245
|
+
name: "(anonymous_13)",
|
|
225053
225246
|
decl: {
|
|
225054
225247
|
start: {
|
|
225055
|
-
line:
|
|
225248
|
+
line: 260,
|
|
225056
225249
|
column: 36
|
|
225057
225250
|
},
|
|
225058
225251
|
end: {
|
|
225059
|
-
line:
|
|
225252
|
+
line: 260,
|
|
225060
225253
|
column: 37
|
|
225061
225254
|
}
|
|
225062
225255
|
},
|
|
225063
225256
|
loc: {
|
|
225064
225257
|
start: {
|
|
225065
|
-
line:
|
|
225258
|
+
line: 260,
|
|
225066
225259
|
column: 45
|
|
225067
225260
|
},
|
|
225068
225261
|
end: {
|
|
225069
|
-
line:
|
|
225070
|
-
column:
|
|
225262
|
+
line: 260,
|
|
225263
|
+
column: 76
|
|
225071
225264
|
}
|
|
225072
225265
|
},
|
|
225073
|
-
line:
|
|
225266
|
+
line: 260
|
|
225074
225267
|
},
|
|
225075
|
-
"
|
|
225076
|
-
name: "(
|
|
225268
|
+
"14": {
|
|
225269
|
+
name: "(anonymous_14)",
|
|
225077
225270
|
decl: {
|
|
225078
225271
|
start: {
|
|
225079
|
-
line:
|
|
225272
|
+
line: 263,
|
|
225080
225273
|
column: 16
|
|
225081
225274
|
},
|
|
225082
225275
|
end: {
|
|
225083
|
-
line:
|
|
225276
|
+
line: 263,
|
|
225084
225277
|
column: 17
|
|
225085
225278
|
}
|
|
225086
225279
|
},
|
|
225087
225280
|
loc: {
|
|
225088
225281
|
start: {
|
|
225089
|
-
line:
|
|
225282
|
+
line: 263,
|
|
225090
225283
|
column: 28
|
|
225091
225284
|
},
|
|
225092
225285
|
end: {
|
|
225093
|
-
line:
|
|
225286
|
+
line: 273,
|
|
225094
225287
|
column: 11
|
|
225095
225288
|
}
|
|
225096
225289
|
},
|
|
225097
|
-
line:
|
|
225290
|
+
line: 263
|
|
225098
225291
|
},
|
|
225099
|
-
"
|
|
225100
|
-
name: "(
|
|
225292
|
+
"15": {
|
|
225293
|
+
name: "(anonymous_15)",
|
|
225101
225294
|
decl: {
|
|
225102
225295
|
start: {
|
|
225103
|
-
line:
|
|
225296
|
+
line: 274,
|
|
225104
225297
|
column: 17
|
|
225105
225298
|
},
|
|
225106
225299
|
end: {
|
|
225107
|
-
line:
|
|
225300
|
+
line: 274,
|
|
225108
225301
|
column: 18
|
|
225109
225302
|
}
|
|
225110
225303
|
},
|
|
225111
225304
|
loc: {
|
|
225112
225305
|
start: {
|
|
225113
|
-
line:
|
|
225306
|
+
line: 274,
|
|
225114
225307
|
column: 26
|
|
225115
225308
|
},
|
|
225116
225309
|
end: {
|
|
225117
|
-
line:
|
|
225310
|
+
line: 281,
|
|
225118
225311
|
column: 11
|
|
225119
225312
|
}
|
|
225120
225313
|
},
|
|
225121
|
-
line:
|
|
225314
|
+
line: 274
|
|
225122
225315
|
}
|
|
225123
225316
|
},
|
|
225124
225317
|
branchMap: {
|
|
@@ -225129,7 +225322,7 @@ var cov_41uwsnrpn = function () {
|
|
|
225129
225322
|
column: 6
|
|
225130
225323
|
},
|
|
225131
225324
|
end: {
|
|
225132
|
-
line:
|
|
225325
|
+
line: 214,
|
|
225133
225326
|
column: 7
|
|
225134
225327
|
}
|
|
225135
225328
|
},
|
|
@@ -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,7 +225342,7 @@ var cov_41uwsnrpn = function () {
|
|
|
225149
225342
|
column: 6
|
|
225150
225343
|
},
|
|
225151
225344
|
end: {
|
|
225152
|
-
line:
|
|
225345
|
+
line: 214,
|
|
225153
225346
|
column: 7
|
|
225154
225347
|
}
|
|
225155
225348
|
}],
|
|
@@ -225158,101 +225351,233 @@ var cov_41uwsnrpn = function () {
|
|
|
225158
225351
|
"1": {
|
|
225159
225352
|
loc: {
|
|
225160
225353
|
start: {
|
|
225161
|
-
line:
|
|
225354
|
+
line: 210,
|
|
225355
|
+
column: 8
|
|
225356
|
+
},
|
|
225357
|
+
end: {
|
|
225358
|
+
line: 213,
|
|
225359
|
+
column: 9
|
|
225360
|
+
}
|
|
225361
|
+
},
|
|
225362
|
+
type: "if",
|
|
225363
|
+
locations: [{
|
|
225364
|
+
start: {
|
|
225365
|
+
line: 210,
|
|
225366
|
+
column: 8
|
|
225367
|
+
},
|
|
225368
|
+
end: {
|
|
225369
|
+
line: 213,
|
|
225370
|
+
column: 9
|
|
225371
|
+
}
|
|
225372
|
+
}, {
|
|
225373
|
+
start: {
|
|
225374
|
+
line: 210,
|
|
225375
|
+
column: 8
|
|
225376
|
+
},
|
|
225377
|
+
end: {
|
|
225378
|
+
line: 213,
|
|
225379
|
+
column: 9
|
|
225380
|
+
}
|
|
225381
|
+
}],
|
|
225382
|
+
line: 210
|
|
225383
|
+
},
|
|
225384
|
+
"2": {
|
|
225385
|
+
loc: {
|
|
225386
|
+
start: {
|
|
225387
|
+
line: 224,
|
|
225388
|
+
column: 8
|
|
225389
|
+
},
|
|
225390
|
+
end: {
|
|
225391
|
+
line: 230,
|
|
225392
|
+
column: 9
|
|
225393
|
+
}
|
|
225394
|
+
},
|
|
225395
|
+
type: "if",
|
|
225396
|
+
locations: [{
|
|
225397
|
+
start: {
|
|
225398
|
+
line: 224,
|
|
225399
|
+
column: 8
|
|
225400
|
+
},
|
|
225401
|
+
end: {
|
|
225402
|
+
line: 230,
|
|
225403
|
+
column: 9
|
|
225404
|
+
}
|
|
225405
|
+
}, {
|
|
225406
|
+
start: {
|
|
225407
|
+
line: 224,
|
|
225408
|
+
column: 8
|
|
225409
|
+
},
|
|
225410
|
+
end: {
|
|
225411
|
+
line: 230,
|
|
225412
|
+
column: 9
|
|
225413
|
+
}
|
|
225414
|
+
}],
|
|
225415
|
+
line: 224
|
|
225416
|
+
},
|
|
225417
|
+
"3": {
|
|
225418
|
+
loc: {
|
|
225419
|
+
start: {
|
|
225420
|
+
line: 226,
|
|
225421
|
+
column: 15
|
|
225422
|
+
},
|
|
225423
|
+
end: {
|
|
225424
|
+
line: 230,
|
|
225425
|
+
column: 9
|
|
225426
|
+
}
|
|
225427
|
+
},
|
|
225428
|
+
type: "if",
|
|
225429
|
+
locations: [{
|
|
225430
|
+
start: {
|
|
225431
|
+
line: 226,
|
|
225432
|
+
column: 15
|
|
225433
|
+
},
|
|
225434
|
+
end: {
|
|
225435
|
+
line: 230,
|
|
225436
|
+
column: 9
|
|
225437
|
+
}
|
|
225438
|
+
}, {
|
|
225439
|
+
start: {
|
|
225440
|
+
line: 226,
|
|
225441
|
+
column: 15
|
|
225442
|
+
},
|
|
225443
|
+
end: {
|
|
225444
|
+
line: 230,
|
|
225445
|
+
column: 9
|
|
225446
|
+
}
|
|
225447
|
+
}],
|
|
225448
|
+
line: 226
|
|
225449
|
+
},
|
|
225450
|
+
"4": {
|
|
225451
|
+
loc: {
|
|
225452
|
+
start: {
|
|
225453
|
+
line: 228,
|
|
225454
|
+
column: 15
|
|
225455
|
+
},
|
|
225456
|
+
end: {
|
|
225457
|
+
line: 230,
|
|
225458
|
+
column: 9
|
|
225459
|
+
}
|
|
225460
|
+
},
|
|
225461
|
+
type: "if",
|
|
225462
|
+
locations: [{
|
|
225463
|
+
start: {
|
|
225464
|
+
line: 228,
|
|
225465
|
+
column: 15
|
|
225466
|
+
},
|
|
225467
|
+
end: {
|
|
225468
|
+
line: 230,
|
|
225469
|
+
column: 9
|
|
225470
|
+
}
|
|
225471
|
+
}, {
|
|
225472
|
+
start: {
|
|
225473
|
+
line: 228,
|
|
225474
|
+
column: 15
|
|
225475
|
+
},
|
|
225476
|
+
end: {
|
|
225477
|
+
line: 230,
|
|
225478
|
+
column: 9
|
|
225479
|
+
}
|
|
225480
|
+
}],
|
|
225481
|
+
line: 228
|
|
225482
|
+
},
|
|
225483
|
+
"5": {
|
|
225484
|
+
loc: {
|
|
225485
|
+
start: {
|
|
225486
|
+
line: 234,
|
|
225162
225487
|
column: 6
|
|
225163
225488
|
},
|
|
225164
225489
|
end: {
|
|
225165
|
-
line:
|
|
225490
|
+
line: 237,
|
|
225166
225491
|
column: 7
|
|
225167
225492
|
}
|
|
225168
225493
|
},
|
|
225169
225494
|
type: "if",
|
|
225170
225495
|
locations: [{
|
|
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
225505
|
start: {
|
|
225181
|
-
line:
|
|
225506
|
+
line: 234,
|
|
225182
225507
|
column: 6
|
|
225183
225508
|
},
|
|
225184
225509
|
end: {
|
|
225185
|
-
line:
|
|
225510
|
+
line: 237,
|
|
225186
225511
|
column: 7
|
|
225187
225512
|
}
|
|
225188
225513
|
}],
|
|
225189
|
-
line:
|
|
225514
|
+
line: 234
|
|
225190
225515
|
},
|
|
225191
|
-
"
|
|
225516
|
+
"6": {
|
|
225192
225517
|
loc: {
|
|
225193
225518
|
start: {
|
|
225194
|
-
line:
|
|
225519
|
+
line: 261,
|
|
225195
225520
|
column: 6
|
|
225196
225521
|
},
|
|
225197
225522
|
end: {
|
|
225198
|
-
line:
|
|
225523
|
+
line: 282,
|
|
225199
225524
|
column: 7
|
|
225200
225525
|
}
|
|
225201
225526
|
},
|
|
225202
225527
|
type: "if",
|
|
225203
225528
|
locations: [{
|
|
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
225538
|
start: {
|
|
225214
|
-
line:
|
|
225539
|
+
line: 261,
|
|
225215
225540
|
column: 6
|
|
225216
225541
|
},
|
|
225217
225542
|
end: {
|
|
225218
|
-
line:
|
|
225543
|
+
line: 282,
|
|
225219
225544
|
column: 7
|
|
225220
225545
|
}
|
|
225221
225546
|
}],
|
|
225222
|
-
line:
|
|
225547
|
+
line: 261
|
|
225223
225548
|
},
|
|
225224
|
-
"
|
|
225549
|
+
"7": {
|
|
225225
225550
|
loc: {
|
|
225226
225551
|
start: {
|
|
225227
|
-
line:
|
|
225552
|
+
line: 275,
|
|
225228
225553
|
column: 12
|
|
225229
225554
|
},
|
|
225230
225555
|
end: {
|
|
225231
|
-
line:
|
|
225556
|
+
line: 280,
|
|
225232
225557
|
column: 13
|
|
225233
225558
|
}
|
|
225234
225559
|
},
|
|
225235
225560
|
type: "if",
|
|
225236
225561
|
locations: [{
|
|
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
225571
|
start: {
|
|
225247
|
-
line:
|
|
225572
|
+
line: 275,
|
|
225248
225573
|
column: 12
|
|
225249
225574
|
},
|
|
225250
225575
|
end: {
|
|
225251
|
-
line:
|
|
225576
|
+
line: 280,
|
|
225252
225577
|
column: 13
|
|
225253
225578
|
}
|
|
225254
225579
|
}],
|
|
225255
|
-
line:
|
|
225580
|
+
line: 275
|
|
225256
225581
|
}
|
|
225257
225582
|
},
|
|
225258
225583
|
s: {
|
|
@@ -225282,7 +225607,19 @@ var cov_41uwsnrpn = function () {
|
|
|
225282
225607
|
"23": 0,
|
|
225283
225608
|
"24": 0,
|
|
225284
225609
|
"25": 0,
|
|
225285
|
-
"26": 0
|
|
225610
|
+
"26": 0,
|
|
225611
|
+
"27": 0,
|
|
225612
|
+
"28": 0,
|
|
225613
|
+
"29": 0,
|
|
225614
|
+
"30": 0,
|
|
225615
|
+
"31": 0,
|
|
225616
|
+
"32": 0,
|
|
225617
|
+
"33": 0,
|
|
225618
|
+
"34": 0,
|
|
225619
|
+
"35": 0,
|
|
225620
|
+
"36": 0,
|
|
225621
|
+
"37": 0,
|
|
225622
|
+
"38": 0
|
|
225286
225623
|
},
|
|
225287
225624
|
f: {
|
|
225288
225625
|
"0": 0,
|
|
@@ -225297,25 +225634,32 @@ var cov_41uwsnrpn = function () {
|
|
|
225297
225634
|
"9": 0,
|
|
225298
225635
|
"10": 0,
|
|
225299
225636
|
"11": 0,
|
|
225300
|
-
"12": 0
|
|
225637
|
+
"12": 0,
|
|
225638
|
+
"13": 0,
|
|
225639
|
+
"14": 0,
|
|
225640
|
+
"15": 0
|
|
225301
225641
|
},
|
|
225302
225642
|
b: {
|
|
225303
225643
|
"0": [0, 0],
|
|
225304
225644
|
"1": [0, 0],
|
|
225305
225645
|
"2": [0, 0],
|
|
225306
|
-
"3": [0, 0]
|
|
225646
|
+
"3": [0, 0],
|
|
225647
|
+
"4": [0, 0],
|
|
225648
|
+
"5": [0, 0],
|
|
225649
|
+
"6": [0, 0],
|
|
225650
|
+
"7": [0, 0]
|
|
225307
225651
|
},
|
|
225308
225652
|
inputSourceMap: {
|
|
225309
225653
|
version: 3,
|
|
225310
225654
|
sources: ["NewProjectModal.vue"],
|
|
225311
225655
|
names: [],
|
|
225312
|
-
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",
|
|
225656
|
+
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",
|
|
225313
225657
|
file: "NewProjectModal.vue",
|
|
225314
225658
|
sourceRoot: "src/components/projects",
|
|
225315
|
-
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
|
|
225659
|
+
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"]
|
|
225316
225660
|
},
|
|
225317
225661
|
_coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
|
|
225318
|
-
hash: "
|
|
225662
|
+
hash: "39bf82dbca3de1e3096f5011f5bbc47921642eb4"
|
|
225319
225663
|
};
|
|
225320
225664
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
225321
225665
|
|
|
@@ -225545,30 +225889,67 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225545
225889
|
if (value) {
|
|
225546
225890
|
cov_41uwsnrpn.b[0][0]++;
|
|
225547
225891
|
cov_41uwsnrpn.s[3]++;
|
|
225548
|
-
// ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
|
|
225549
|
-
|
|
225550
|
-
this.fetchGroups();
|
|
225892
|
+
this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
|
|
225893
|
+
|
|
225551
225894
|
cov_41uwsnrpn.s[4]++;
|
|
225552
|
-
|
|
225895
|
+
|
|
225896
|
+
if (this.$refs.title) {
|
|
225897
|
+
cov_41uwsnrpn.b[1][0]++;
|
|
225898
|
+
cov_41uwsnrpn.s[5]++;
|
|
225899
|
+
this.$nextTick(this.$refs.title.focus);
|
|
225900
|
+
cov_41uwsnrpn.s[6]++;
|
|
225901
|
+
this.resetForm();
|
|
225902
|
+
} else {
|
|
225903
|
+
cov_41uwsnrpn.b[1][1]++;
|
|
225904
|
+
}
|
|
225553
225905
|
} else {
|
|
225554
225906
|
cov_41uwsnrpn.b[0][1]++;
|
|
225555
225907
|
}
|
|
225556
225908
|
}
|
|
225557
225909
|
},
|
|
225558
|
-
|
|
225559
|
-
// this.fieldsToValidate.forEach(field => {
|
|
225560
|
-
// if (has(this.$refs[field], 'reset')) {
|
|
225561
|
-
// this.refs[field] = this.$refs[field]
|
|
225562
|
-
// } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {
|
|
225563
|
-
// this.refs[field] = this.$refs[field].$refs.userSearchInput
|
|
225564
|
-
// } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {
|
|
225565
|
-
// this.refs[field] = this.$refs[field].$refs.groupSearchInput
|
|
225566
|
-
// }
|
|
225567
|
-
// })
|
|
225568
|
-
|
|
225910
|
+
updated: function updated() {
|
|
225569
225911
|
cov_41uwsnrpn.f[3]++;
|
|
225912
|
+
cov_41uwsnrpn.s[7]++;
|
|
225913
|
+
this.attachFieldRefs();
|
|
225570
225914
|
},
|
|
225571
225915
|
methods: {
|
|
225916
|
+
attachFieldRefs: function attachFieldRefs() {
|
|
225917
|
+
var _this = this;
|
|
225918
|
+
|
|
225919
|
+
cov_41uwsnrpn.f[4]++;
|
|
225920
|
+
cov_41uwsnrpn.s[8]++;
|
|
225921
|
+
// Map all local and nested inputs to local 'refs' object
|
|
225922
|
+
this.fieldsToValidate.forEach(function (field) {
|
|
225923
|
+
cov_41uwsnrpn.f[5]++;
|
|
225924
|
+
cov_41uwsnrpn.s[9]++;
|
|
225925
|
+
|
|
225926
|
+
if (has_default()(_this.$refs[field], 'reset')) {
|
|
225927
|
+
cov_41uwsnrpn.b[2][0]++;
|
|
225928
|
+
cov_41uwsnrpn.s[10]++;
|
|
225929
|
+
_this.refs[field] = _this.$refs[field];
|
|
225930
|
+
} else {
|
|
225931
|
+
cov_41uwsnrpn.b[2][1]++;
|
|
225932
|
+
cov_41uwsnrpn.s[11]++;
|
|
225933
|
+
|
|
225934
|
+
if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
|
|
225935
|
+
cov_41uwsnrpn.b[3][0]++;
|
|
225936
|
+
cov_41uwsnrpn.s[12]++;
|
|
225937
|
+
_this.refs[field] = _this.$refs[field].$refs.userSearchInput;
|
|
225938
|
+
} else {
|
|
225939
|
+
cov_41uwsnrpn.b[3][1]++;
|
|
225940
|
+
cov_41uwsnrpn.s[13]++;
|
|
225941
|
+
|
|
225942
|
+
if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
|
|
225943
|
+
cov_41uwsnrpn.b[4][0]++;
|
|
225944
|
+
cov_41uwsnrpn.s[14]++;
|
|
225945
|
+
_this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
|
|
225946
|
+
} else {
|
|
225947
|
+
cov_41uwsnrpn.b[4][1]++;
|
|
225948
|
+
}
|
|
225949
|
+
}
|
|
225950
|
+
}
|
|
225951
|
+
});
|
|
225952
|
+
},
|
|
225572
225953
|
fetchGroups: function () {
|
|
225573
225954
|
var _fetchGroups = NewProjectModalvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
225574
225955
|
var response;
|
|
@@ -225576,28 +225957,28 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225576
225957
|
while (1) {
|
|
225577
225958
|
switch (_context.prev = _context.next) {
|
|
225578
225959
|
case 0:
|
|
225579
|
-
cov_41uwsnrpn.f[
|
|
225580
|
-
cov_41uwsnrpn.s[
|
|
225960
|
+
cov_41uwsnrpn.f[6]++;
|
|
225961
|
+
cov_41uwsnrpn.s[15]++;
|
|
225581
225962
|
|
|
225582
225963
|
if (this.groups.length) {
|
|
225583
225964
|
_context.next = 12;
|
|
225584
225965
|
break;
|
|
225585
225966
|
}
|
|
225586
225967
|
|
|
225587
|
-
cov_41uwsnrpn.b[
|
|
225588
|
-
cov_41uwsnrpn.s[
|
|
225968
|
+
cov_41uwsnrpn.b[5][0]++;
|
|
225969
|
+
cov_41uwsnrpn.s[16]++;
|
|
225589
225970
|
_context.next = 7;
|
|
225590
225971
|
return fetchListRecords('groups');
|
|
225591
225972
|
|
|
225592
225973
|
case 7:
|
|
225593
225974
|
response = _context.sent;
|
|
225594
|
-
cov_41uwsnrpn.s[
|
|
225975
|
+
cov_41uwsnrpn.s[17]++;
|
|
225595
225976
|
this.groups = response.results;
|
|
225596
225977
|
_context.next = 13;
|
|
225597
225978
|
break;
|
|
225598
225979
|
|
|
225599
225980
|
case 12:
|
|
225600
|
-
cov_41uwsnrpn.b[
|
|
225981
|
+
cov_41uwsnrpn.b[5][1]++;
|
|
225601
225982
|
|
|
225602
225983
|
case 13:
|
|
225603
225984
|
case "end":
|
|
@@ -225614,93 +225995,98 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
|
|
|
225614
225995
|
return fetchGroups;
|
|
225615
225996
|
}(),
|
|
225616
225997
|
toggleOptionalFields: function toggleOptionalFields() {
|
|
225617
|
-
cov_41uwsnrpn.f[
|
|
225618
|
-
cov_41uwsnrpn.s[
|
|
225998
|
+
cov_41uwsnrpn.f[7]++;
|
|
225999
|
+
cov_41uwsnrpn.s[18]++;
|
|
225619
226000
|
this.showOptionalFields = !this.showOptionalFields;
|
|
225620
|
-
cov_41uwsnrpn.s[
|
|
226001
|
+
cov_41uwsnrpn.s[19]++;
|
|
225621
226002
|
this.$nextTick(this.$refs.title.focus);
|
|
225622
|
-
cov_41uwsnrpn.s[
|
|
226003
|
+
cov_41uwsnrpn.s[20]++;
|
|
225623
226004
|
this.$nextTick(this.$refs.title.resetValidation);
|
|
225624
226005
|
},
|
|
225625
226006
|
resetForm: function resetForm() {
|
|
225626
|
-
|
|
225627
|
-
|
|
225628
|
-
|
|
225629
|
-
|
|
225630
|
-
|
|
226007
|
+
var _this2 = this;
|
|
226008
|
+
|
|
226009
|
+
cov_41uwsnrpn.f[8]++;
|
|
226010
|
+
cov_41uwsnrpn.s[21]++;
|
|
226011
|
+
this.formHasErrors = false;
|
|
226012
|
+
cov_41uwsnrpn.s[22]++;
|
|
226013
|
+
this.fieldsToValidate.forEach(function (field) {
|
|
226014
|
+
cov_41uwsnrpn.f[9]++;
|
|
226015
|
+
cov_41uwsnrpn.s[23]++;
|
|
226016
|
+
return _this2.refs[field].reset();
|
|
226017
|
+
});
|
|
225631
226018
|
},
|
|
225632
226019
|
closeModal: function closeModal() {
|
|
225633
|
-
cov_41uwsnrpn.f[
|
|
225634
|
-
cov_41uwsnrpn.s[
|
|
226020
|
+
cov_41uwsnrpn.f[10]++;
|
|
226021
|
+
cov_41uwsnrpn.s[24]++;
|
|
225635
226022
|
this.resetForm();
|
|
225636
|
-
cov_41uwsnrpn.s[
|
|
226023
|
+
cov_41uwsnrpn.s[25]++;
|
|
225637
226024
|
this.$emit('close-modal');
|
|
225638
226025
|
},
|
|
225639
226026
|
updateValue: function updateValue(data) {
|
|
225640
|
-
cov_41uwsnrpn.f[
|
|
225641
|
-
cov_41uwsnrpn.s[
|
|
226027
|
+
cov_41uwsnrpn.f[11]++;
|
|
226028
|
+
cov_41uwsnrpn.s[26]++;
|
|
225642
226029
|
this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
|
|
225643
226030
|
},
|
|
225644
226031
|
submit: function () {
|
|
225645
226032
|
var _submit = NewProjectModalvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
|
|
225646
|
-
var
|
|
226033
|
+
var _this3 = this;
|
|
225647
226034
|
|
|
225648
226035
|
return regenerator_default.a.wrap(function _callee2$(_context2) {
|
|
225649
226036
|
while (1) {
|
|
225650
226037
|
switch (_context2.prev = _context2.next) {
|
|
225651
226038
|
case 0:
|
|
225652
|
-
cov_41uwsnrpn.f[
|
|
225653
|
-
cov_41uwsnrpn.s[
|
|
226039
|
+
cov_41uwsnrpn.f[12]++;
|
|
226040
|
+
cov_41uwsnrpn.s[27]++;
|
|
225654
226041
|
this.formHasErrors = false;
|
|
225655
|
-
cov_41uwsnrpn.s[
|
|
226042
|
+
cov_41uwsnrpn.s[28]++;
|
|
225656
226043
|
this.fieldsToValidate.forEach(function (field) {
|
|
225657
|
-
cov_41uwsnrpn.f[
|
|
225658
|
-
cov_41uwsnrpn.s[
|
|
225659
|
-
|
|
225660
|
-
_this.refs[field].validate(true);
|
|
226044
|
+
cov_41uwsnrpn.f[13]++;
|
|
226045
|
+
cov_41uwsnrpn.s[29]++;
|
|
226046
|
+
return _this3.refs[field].validate(true);
|
|
225661
226047
|
});
|
|
225662
|
-
cov_41uwsnrpn.s[
|
|
226048
|
+
cov_41uwsnrpn.s[30]++;
|
|
225663
226049
|
|
|
225664
226050
|
if (!this.formHasErrors) {
|
|
225665
|
-
cov_41uwsnrpn.b[
|
|
225666
|
-
cov_41uwsnrpn.s[
|
|
226051
|
+
cov_41uwsnrpn.b[6][0]++;
|
|
226052
|
+
cov_41uwsnrpn.s[31]++;
|
|
225667
226053
|
createRecord('projects', this.project).then(function (response) {
|
|
225668
|
-
cov_41uwsnrpn.f[
|
|
225669
|
-
var projectId = (cov_41uwsnrpn.s[
|
|
225670
|
-
cov_41uwsnrpn.s[
|
|
226054
|
+
cov_41uwsnrpn.f[14]++;
|
|
226055
|
+
var projectId = (cov_41uwsnrpn.s[32]++, _this3.$get(response, 'pk', ''));
|
|
226056
|
+
cov_41uwsnrpn.s[33]++;
|
|
225671
226057
|
|
|
225672
|
-
|
|
226058
|
+
_this3.$store.dispatch(SHOW_ALERT, {
|
|
225673
226059
|
message: "Project ".concat(projectId, " was succesfully created.")
|
|
225674
226060
|
});
|
|
225675
226061
|
|
|
225676
|
-
cov_41uwsnrpn.s[
|
|
226062
|
+
cov_41uwsnrpn.s[34]++;
|
|
225677
226063
|
|
|
225678
|
-
|
|
226064
|
+
_this3.$store.dispatch(SHOW_PANEL, {
|
|
225679
226065
|
project: projectId
|
|
225680
226066
|
});
|
|
225681
226067
|
|
|
225682
|
-
cov_41uwsnrpn.s[
|
|
226068
|
+
cov_41uwsnrpn.s[35]++;
|
|
225683
226069
|
|
|
225684
|
-
|
|
226070
|
+
_this3.closeModal();
|
|
225685
226071
|
}).catch(function (error) {
|
|
225686
|
-
cov_41uwsnrpn.f[
|
|
225687
|
-
cov_41uwsnrpn.s[
|
|
226072
|
+
cov_41uwsnrpn.f[15]++;
|
|
226073
|
+
cov_41uwsnrpn.s[36]++;
|
|
225688
226074
|
|
|
225689
226075
|
if (error.response) {
|
|
225690
|
-
cov_41uwsnrpn.b[
|
|
225691
|
-
cov_41uwsnrpn.s[
|
|
225692
|
-
|
|
225693
|
-
cov_41uwsnrpn.s[
|
|
226076
|
+
cov_41uwsnrpn.b[7][0]++;
|
|
226077
|
+
cov_41uwsnrpn.s[37]++;
|
|
226078
|
+
_this3.errorMessages = error.response.data;
|
|
226079
|
+
cov_41uwsnrpn.s[38]++;
|
|
225694
226080
|
|
|
225695
|
-
|
|
226081
|
+
_this3.$store.dispatch(SHOW_ALERT, {
|
|
225696
226082
|
error: 'The project could not be created. Please try again.'
|
|
225697
226083
|
});
|
|
225698
226084
|
} else {
|
|
225699
|
-
cov_41uwsnrpn.b[
|
|
226085
|
+
cov_41uwsnrpn.b[7][1]++;
|
|
225700
226086
|
}
|
|
225701
226087
|
});
|
|
225702
226088
|
} else {
|
|
225703
|
-
cov_41uwsnrpn.b[
|
|
226089
|
+
cov_41uwsnrpn.b[6][1]++;
|
|
225704
226090
|
}
|
|
225705
226091
|
|
|
225706
226092
|
case 7:
|
|
@@ -225735,8 +226121,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
|
|
|
225735
226121
|
|
|
225736
226122
|
var NewProjectModal_component = normalizeComponent(
|
|
225737
226123
|
projects_NewProjectModalvue_type_script_lang_js_,
|
|
225738
|
-
|
|
225739
|
-
|
|
226124
|
+
NewProjectModalvue_type_template_id_070ec06c_render,
|
|
226125
|
+
NewProjectModalvue_type_template_id_070ec06c_staticRenderFns,
|
|
225740
226126
|
false,
|
|
225741
226127
|
null,
|
|
225742
226128
|
null,
|