@coscine/project-creation
Advanced tools
Comparing version 1.5.2 to 1.6.0
/*! | ||
* @coscine/project-creation v1.5.1 | ||
* @coscine/project-creation v1.5.2 | ||
* (c) | ||
@@ -11,3 +11,3 @@ * Released under the MIT License. | ||
import { required, maxLength } from 'vuelidate/lib/validators'; | ||
import { SubProjectApi, ProjectApi, redirectToProject, VisibilityApi, ProjectRoleApi, DisciplineApi, InstituteApi } from '@coscine/api-connection'; | ||
import { SubProjectApi, ProjectApi, redirectToProject, ActivatedFeaturesApi, VisibilityApi, ProjectRoleApi, DisciplineApi, InstituteApi } from '@coscine/api-connection'; | ||
import { GuidUtil } from '@coscine/app-util'; | ||
@@ -138,3 +138,4 @@ import VueI18n from 'vue-i18n'; | ||
deleteModalHelp: 'Der angegebene Name stimmt nicht mit dem Projektname überein.', | ||
tagPlaceholder: 'Sie können diesen Tag hinzufügen' | ||
tagPlaceholder: 'Sie können diesen Tag hinzufügen', | ||
activatedFeaturesHeadline: 'Projekteinstellungen' | ||
}; | ||
@@ -182,3 +183,4 @@ | ||
deleteModalHelp: 'The entered name does not match the project name.', | ||
tagPlaceholder: 'You can add this tag' | ||
tagPlaceholder: 'You can add this tag', | ||
label: 'Project features' | ||
}; | ||
@@ -492,2 +494,12 @@ | ||
} | ||
}, | ||
features: { | ||
$each: { | ||
activated: { | ||
required: required | ||
}, | ||
id: { | ||
required: required | ||
} | ||
} | ||
} | ||
@@ -501,2 +513,3 @@ }, | ||
}, | ||
language: this.$props.languageLocale, | ||
isNewProject: false, | ||
@@ -542,3 +555,4 @@ isOwner: false, | ||
to: new Date(1000, 1, 1) | ||
} | ||
}, | ||
features: [] | ||
}; | ||
@@ -565,2 +579,19 @@ }, | ||
}, | ||
watch: { | ||
'form.Discipline': function formDiscipline(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Discipline.$touch(); | ||
} | ||
}, | ||
'form.Institute': function formInstitute(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Institute.$touch(); | ||
} | ||
}, | ||
'form.Keywords': function formKeywords(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Keywords.$touch(); | ||
} | ||
} | ||
}, | ||
methods: { | ||
@@ -607,2 +638,30 @@ addTag: function addTag(newTag) { | ||
ProjectApi.storeProject(this.form, function (response) { | ||
// activate initial features | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = _this.features[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var feature = _step.value; | ||
if (feature.activated) { | ||
ActivatedFeaturesApi.activateFeature(response.data.id, feature.id); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
_this.$props.saveHandler(response.data); | ||
@@ -614,2 +673,32 @@ | ||
ProjectApi.updateProject(this.projectId, this.form, function (response) { | ||
// update features | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
try { | ||
for (var _iterator2 = _this.features[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var feature = _step2.value; | ||
if (feature.activated) { | ||
ActivatedFeaturesApi.activateFeature(_this.projectId, feature.id); | ||
} else { | ||
ActivatedFeaturesApi.deactivateFeature(_this.projectId, feature.id); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) { | ||
_iterator2.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
} | ||
response.data === 1 ? _this.$props.saveHandler({ | ||
@@ -716,9 +805,9 @@ id: _this.projectId | ||
VisibilityApi.getVisibilities(function (response) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var _iteratorNormalCompletion3 = true; | ||
var _didIteratorError3 = false; | ||
var _iteratorError3 = undefined; | ||
try { | ||
for (var _iterator = response.data[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var visibility = _step.value; | ||
for (var _iterator3 = response.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
var visibility = _step3.value; | ||
@@ -736,12 +825,12 @@ if (visibility.displayName === 'Project Members') { | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
_didIteratorError3 = true; | ||
_iteratorError3 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
if (!_iteratorNormalCompletion3 && _iterator3.return != null) { | ||
_iterator3.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
if (_didIteratorError3) { | ||
throw _iteratorError3; | ||
} | ||
@@ -754,3 +843,9 @@ } | ||
this.displayNameIsLocked = true; | ||
this.isNewProject = false; | ||
this.isNewProject = false; // Load features | ||
ActivatedFeaturesApi.listAllFeaturesOfProject(this.projectId, function (response) { | ||
response.data.forEach(function (feature) { | ||
_this2.features.push(feature); | ||
}); | ||
}); | ||
ProjectApi.getProjectInformation(this.projectId, function (response) { | ||
@@ -765,2 +860,7 @@ _this2.fillForm(response.data); | ||
} else { | ||
ActivatedFeaturesApi.listAllFeatures(function (response) { | ||
response.data.forEach(function (feature) { | ||
_this2.features.push(feature); | ||
}); | ||
}); | ||
this.isNewProject = true; | ||
@@ -771,9 +871,9 @@ this.tranferFormValues(this.form, this.initialState); | ||
DisciplineApi.getDisciplines(function (response) { | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
var _iteratorNormalCompletion4 = true; | ||
var _didIteratorError4 = false; | ||
var _iteratorError4 = undefined; | ||
try { | ||
for (var _iterator2 = response.data[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var datum = _step2.value; | ||
for (var _iterator4 = response.data[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
var datum = _step4.value; | ||
@@ -783,12 +883,12 @@ _this2.disciplines.push(datum); | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
_didIteratorError4 = true; | ||
_iteratorError4 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) { | ||
_iterator2.return(); | ||
if (!_iteratorNormalCompletion4 && _iterator4.return != null) { | ||
_iterator4.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
if (_didIteratorError4) { | ||
throw _iteratorError4; | ||
} | ||
@@ -799,9 +899,9 @@ } | ||
InstituteApi.getInstitutes(function (response) { | ||
var _iteratorNormalCompletion3 = true; | ||
var _didIteratorError3 = false; | ||
var _iteratorError3 = undefined; | ||
var _iteratorNormalCompletion5 = true; | ||
var _didIteratorError5 = false; | ||
var _iteratorError5 = undefined; | ||
try { | ||
for (var _iterator3 = response.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
var datum = _step3.value; | ||
for (var _iterator5 = response.data[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
var datum = _step5.value; | ||
@@ -811,12 +911,12 @@ _this2.institutes.push(datum); | ||
} catch (err) { | ||
_didIteratorError3 = true; | ||
_iteratorError3 = err; | ||
_didIteratorError5 = true; | ||
_iteratorError5 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion3 && _iterator3.return != null) { | ||
_iterator3.return(); | ||
if (!_iteratorNormalCompletion5 && _iterator5.return != null) { | ||
_iterator5.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError3) { | ||
throw _iteratorError3; | ||
if (_didIteratorError5) { | ||
throw _iteratorError5; | ||
} | ||
@@ -1191,3 +1291,27 @@ } | ||
staticClass: "invalid-tooltip" | ||
}, [_vm._v(_vm._s(_vm.$t('projectGrantIdHelp')))])], 1), _vm._v(" "), _c('b-form-group', [_c('b-button', { | ||
}, [_vm._v(_vm._s(_vm.$t('projectGrantIdHelp')))])], 1), _vm._v(" "), _c('div', { | ||
staticClass: "h-divider" | ||
}), _vm._v(" "), _c('div', [_c('h5', [_vm._v(_vm._s(_vm.$t('activatedFeaturesHeadline')))])]), _vm._v(" "), _c('div', _vm._l(_vm.$v.features.$each.$iter, function (feature) { | ||
return _c('b-form-group', { | ||
key: feature.id.$model, | ||
attrs: { | ||
"label-for": feature.id.$model, | ||
"label-cols-sm": "3", | ||
"label-align-sm": "right", | ||
"label": feature.$model[_vm.language] | ||
} | ||
}, [_c('b-form-checkbox', { | ||
attrs: { | ||
"id": feature.id.$model, | ||
"switch": "" | ||
}, | ||
model: { | ||
value: feature.activated.$model, | ||
callback: function callback($$v) { | ||
_vm.$set(feature.activated, "$model", $$v); | ||
}, | ||
expression: "feature.activated.$model" | ||
} | ||
})], 1); | ||
}), 1), _vm._v(" "), _c('b-form-group', [_c('b-button', { | ||
directives: [{ | ||
@@ -1261,3 +1385,3 @@ name: "show", | ||
"variant": "primary", | ||
"disabled": _vm.$v.form.$invalid || _vm.isWaitingForResponse || !_vm.$v.form.$anyDirty, | ||
"disabled": _vm.$v.$invalid || _vm.isWaitingForResponse || !_vm.$v.$anyDirty, | ||
"name": "save" | ||
@@ -1296,4 +1420,4 @@ }, | ||
if (!inject) return; | ||
inject("data-v-3c007840_0", { | ||
source: "#CreateProject .vdp-datepicker .form-control{background-color:#fff}#CreateProject .multiselect{min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__input{border:0;min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__tags{border-radius:0}#CreateProject .btn-float-right{float:right}#CreateProject .vdp-datepicker__calendar-button{height:calc(1.4em + .75rem + 2px)}#CreateProject .form-group.mandatory .col-form-label:after{content:\" *\";color:#a70619}#CreateProject .col-form-label{font-weight:700}.multiselect__tag{background-color:#00549f!important}.multiselect__option--highlight{background-color:#00549f!important;background:#00549f!important}.multiselect__option--selected.multiselect__option--highlight{background-color:#a70619!important}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background-color:#a70619!important}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.76563rem;line-height:1.4;color:#fff;background-color:rgba(204,7,30,.9);border-radius:0}#project_archive_button,#project_clear_button{display:none}", | ||
inject("data-v-7a621066_0", { | ||
source: "#CreateProject .vdp-datepicker .form-control{background-color:#fff}#CreateProject .multiselect{min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__input{border:0;min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__tags{border-radius:0}#CreateProject .btn-float-right{float:right}#CreateProject .vdp-datepicker__calendar-button{height:calc(1.4em + .75rem + 2px)}#CreateProject .form-group.mandatory .col-form-label:after{content:\" *\";color:#a70619}#CreateProject .col-form-label{font-weight:700}.multiselect__tag{background-color:#00549f!important}.multiselect__option--highlight{background-color:#00549f!important;background:#00549f!important}.multiselect__option--selected.multiselect__option--highlight{background-color:#a70619!important}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background-color:#a70619!important}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.76563rem;line-height:1.4;color:#fff;background-color:rgba(204,7,30,.9);border-radius:0}#project_archive_button,#project_clear_button{display:none}.h-divider{margin-top:5px;margin-bottom:10px;height:1px;width:100%;border-top:1px solid #bebbbb}.form-group .custom-control-label{vertical-align:super}", | ||
map: undefined, | ||
@@ -1300,0 +1424,0 @@ media: undefined |
/*! | ||
* @coscine/project-creation v1.5.1 | ||
* @coscine/project-creation v1.5.2 | ||
* (c) | ||
@@ -141,3 +141,4 @@ * Released under the MIT License. | ||
deleteModalHelp: 'Der angegebene Name stimmt nicht mit dem Projektname überein.', | ||
tagPlaceholder: 'Sie können diesen Tag hinzufügen' | ||
tagPlaceholder: 'Sie können diesen Tag hinzufügen', | ||
activatedFeaturesHeadline: 'Projekteinstellungen' | ||
}; | ||
@@ -185,3 +186,4 @@ | ||
deleteModalHelp: 'The entered name does not match the project name.', | ||
tagPlaceholder: 'You can add this tag' | ||
tagPlaceholder: 'You can add this tag', | ||
label: 'Project features' | ||
}; | ||
@@ -495,2 +497,12 @@ | ||
} | ||
}, | ||
features: { | ||
$each: { | ||
activated: { | ||
required: validators.required | ||
}, | ||
id: { | ||
required: validators.required | ||
} | ||
} | ||
} | ||
@@ -504,2 +516,3 @@ }, | ||
}, | ||
language: this.$props.languageLocale, | ||
isNewProject: false, | ||
@@ -545,3 +558,4 @@ isOwner: false, | ||
to: new Date(1000, 1, 1) | ||
} | ||
}, | ||
features: [] | ||
}; | ||
@@ -568,2 +582,19 @@ }, | ||
}, | ||
watch: { | ||
'form.Discipline': function formDiscipline(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Discipline.$touch(); | ||
} | ||
}, | ||
'form.Institute': function formInstitute(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Institute.$touch(); | ||
} | ||
}, | ||
'form.Keywords': function formKeywords(newVal, oldVal) { | ||
if (oldVal.length > 0) { | ||
this.$v.form.Keywords.$touch(); | ||
} | ||
} | ||
}, | ||
methods: { | ||
@@ -610,2 +641,30 @@ addTag: function addTag(newTag) { | ||
apiConnection.ProjectApi.storeProject(this.form, function (response) { | ||
// activate initial features | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
try { | ||
for (var _iterator = _this.features[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var feature = _step.value; | ||
if (feature.activated) { | ||
apiConnection.ActivatedFeaturesApi.activateFeature(response.data.id, feature.id); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
} | ||
_this.$props.saveHandler(response.data); | ||
@@ -617,2 +676,32 @@ | ||
apiConnection.ProjectApi.updateProject(this.projectId, this.form, function (response) { | ||
// update features | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
try { | ||
for (var _iterator2 = _this.features[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var feature = _step2.value; | ||
if (feature.activated) { | ||
apiConnection.ActivatedFeaturesApi.activateFeature(_this.projectId, feature.id); | ||
} else { | ||
apiConnection.ActivatedFeaturesApi.deactivateFeature(_this.projectId, feature.id); | ||
} | ||
} | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) { | ||
_iterator2.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
} | ||
response.data === 1 ? _this.$props.saveHandler({ | ||
@@ -719,9 +808,9 @@ id: _this.projectId | ||
apiConnection.VisibilityApi.getVisibilities(function (response) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var _iteratorNormalCompletion3 = true; | ||
var _didIteratorError3 = false; | ||
var _iteratorError3 = undefined; | ||
try { | ||
for (var _iterator = response.data[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var visibility = _step.value; | ||
for (var _iterator3 = response.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
var visibility = _step3.value; | ||
@@ -739,12 +828,12 @@ if (visibility.displayName === 'Project Members') { | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
_didIteratorError3 = true; | ||
_iteratorError3 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator.return != null) { | ||
_iterator.return(); | ||
if (!_iteratorNormalCompletion3 && _iterator3.return != null) { | ||
_iterator3.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
if (_didIteratorError3) { | ||
throw _iteratorError3; | ||
} | ||
@@ -757,3 +846,9 @@ } | ||
this.displayNameIsLocked = true; | ||
this.isNewProject = false; | ||
this.isNewProject = false; // Load features | ||
apiConnection.ActivatedFeaturesApi.listAllFeaturesOfProject(this.projectId, function (response) { | ||
response.data.forEach(function (feature) { | ||
_this2.features.push(feature); | ||
}); | ||
}); | ||
apiConnection.ProjectApi.getProjectInformation(this.projectId, function (response) { | ||
@@ -768,2 +863,7 @@ _this2.fillForm(response.data); | ||
} else { | ||
apiConnection.ActivatedFeaturesApi.listAllFeatures(function (response) { | ||
response.data.forEach(function (feature) { | ||
_this2.features.push(feature); | ||
}); | ||
}); | ||
this.isNewProject = true; | ||
@@ -774,9 +874,9 @@ this.tranferFormValues(this.form, this.initialState); | ||
apiConnection.DisciplineApi.getDisciplines(function (response) { | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
var _iteratorNormalCompletion4 = true; | ||
var _didIteratorError4 = false; | ||
var _iteratorError4 = undefined; | ||
try { | ||
for (var _iterator2 = response.data[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
var datum = _step2.value; | ||
for (var _iterator4 = response.data[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { | ||
var datum = _step4.value; | ||
@@ -786,12 +886,12 @@ _this2.disciplines.push(datum); | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
_didIteratorError4 = true; | ||
_iteratorError4 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) { | ||
_iterator2.return(); | ||
if (!_iteratorNormalCompletion4 && _iterator4.return != null) { | ||
_iterator4.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
if (_didIteratorError4) { | ||
throw _iteratorError4; | ||
} | ||
@@ -802,9 +902,9 @@ } | ||
apiConnection.InstituteApi.getInstitutes(function (response) { | ||
var _iteratorNormalCompletion3 = true; | ||
var _didIteratorError3 = false; | ||
var _iteratorError3 = undefined; | ||
var _iteratorNormalCompletion5 = true; | ||
var _didIteratorError5 = false; | ||
var _iteratorError5 = undefined; | ||
try { | ||
for (var _iterator3 = response.data[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { | ||
var datum = _step3.value; | ||
for (var _iterator5 = response.data[Symbol.iterator](), _step5; !(_iteratorNormalCompletion5 = (_step5 = _iterator5.next()).done); _iteratorNormalCompletion5 = true) { | ||
var datum = _step5.value; | ||
@@ -814,12 +914,12 @@ _this2.institutes.push(datum); | ||
} catch (err) { | ||
_didIteratorError3 = true; | ||
_iteratorError3 = err; | ||
_didIteratorError5 = true; | ||
_iteratorError5 = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion3 && _iterator3.return != null) { | ||
_iterator3.return(); | ||
if (!_iteratorNormalCompletion5 && _iterator5.return != null) { | ||
_iterator5.return(); | ||
} | ||
} finally { | ||
if (_didIteratorError3) { | ||
throw _iteratorError3; | ||
if (_didIteratorError5) { | ||
throw _iteratorError5; | ||
} | ||
@@ -1194,3 +1294,27 @@ } | ||
staticClass: "invalid-tooltip" | ||
}, [_vm._v(_vm._s(_vm.$t('projectGrantIdHelp')))])], 1), _vm._v(" "), _c('b-form-group', [_c('b-button', { | ||
}, [_vm._v(_vm._s(_vm.$t('projectGrantIdHelp')))])], 1), _vm._v(" "), _c('div', { | ||
staticClass: "h-divider" | ||
}), _vm._v(" "), _c('div', [_c('h5', [_vm._v(_vm._s(_vm.$t('activatedFeaturesHeadline')))])]), _vm._v(" "), _c('div', _vm._l(_vm.$v.features.$each.$iter, function (feature) { | ||
return _c('b-form-group', { | ||
key: feature.id.$model, | ||
attrs: { | ||
"label-for": feature.id.$model, | ||
"label-cols-sm": "3", | ||
"label-align-sm": "right", | ||
"label": feature.$model[_vm.language] | ||
} | ||
}, [_c('b-form-checkbox', { | ||
attrs: { | ||
"id": feature.id.$model, | ||
"switch": "" | ||
}, | ||
model: { | ||
value: feature.activated.$model, | ||
callback: function callback($$v) { | ||
_vm.$set(feature.activated, "$model", $$v); | ||
}, | ||
expression: "feature.activated.$model" | ||
} | ||
})], 1); | ||
}), 1), _vm._v(" "), _c('b-form-group', [_c('b-button', { | ||
directives: [{ | ||
@@ -1264,3 +1388,3 @@ name: "show", | ||
"variant": "primary", | ||
"disabled": _vm.$v.form.$invalid || _vm.isWaitingForResponse || !_vm.$v.form.$anyDirty, | ||
"disabled": _vm.$v.$invalid || _vm.isWaitingForResponse || !_vm.$v.$anyDirty, | ||
"name": "save" | ||
@@ -1299,4 +1423,4 @@ }, | ||
if (!inject) return; | ||
inject("data-v-3c007840_0", { | ||
source: "#CreateProject .vdp-datepicker .form-control{background-color:#fff}#CreateProject .multiselect{min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__input{border:0;min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__tags{border-radius:0}#CreateProject .btn-float-right{float:right}#CreateProject .vdp-datepicker__calendar-button{height:calc(1.4em + .75rem + 2px)}#CreateProject .form-group.mandatory .col-form-label:after{content:\" *\";color:#a70619}#CreateProject .col-form-label{font-weight:700}.multiselect__tag{background-color:#00549f!important}.multiselect__option--highlight{background-color:#00549f!important;background:#00549f!important}.multiselect__option--selected.multiselect__option--highlight{background-color:#a70619!important}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background-color:#a70619!important}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.76563rem;line-height:1.4;color:#fff;background-color:rgba(204,7,30,.9);border-radius:0}#project_archive_button,#project_clear_button{display:none}", | ||
inject("data-v-7a621066_0", { | ||
source: "#CreateProject .vdp-datepicker .form-control{background-color:#fff}#CreateProject .multiselect{min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__input{border:0;min-height:calc(1.4em + .75rem + 2px)}#CreateProject .multiselect__tags{border-radius:0}#CreateProject .btn-float-right{float:right}#CreateProject .vdp-datepicker__calendar-button{height:calc(1.4em + .75rem + 2px)}#CreateProject .form-group.mandatory .col-form-label:after{content:\" *\";color:#a70619}#CreateProject .col-form-label{font-weight:700}.multiselect__tag{background-color:#00549f!important}.multiselect__option--highlight{background-color:#00549f!important;background:#00549f!important}.multiselect__option--selected.multiselect__option--highlight{background-color:#a70619!important}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background-color:#a70619!important}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.76563rem;line-height:1.4;color:#fff;background-color:rgba(204,7,30,.9);border-radius:0}#project_archive_button,#project_clear_button{display:none}.h-divider{margin-top:5px;margin-bottom:10px;height:1px;width:100%;border-top:1px solid #bebbbb}.form-group .custom-control-label{vertical-align:super}", | ||
map: undefined, | ||
@@ -1303,0 +1427,0 @@ media: undefined |
{ | ||
"name": "@coscine/project-creation", | ||
"version": "1.5.2", | ||
"version": "1.6.0", | ||
"main": "./dist/index.js", | ||
@@ -25,3 +25,3 @@ "module": "dist/index.esm.js", | ||
"dependencies": { | ||
"@coscine/api-connection": "^1.11.0", | ||
"@coscine/api-connection": "^1.12.0", | ||
"@coscine/app-util": "^1.3.1", | ||
@@ -42,2 +42,3 @@ "@types/jquery": "^3.3.34", | ||
"devDependencies": { | ||
"@hutson/semantic-delivery-gitlab": "^9.1.0", | ||
"@semantic-release/commit-analyzer": "^8.0.1", | ||
@@ -51,3 +52,3 @@ "@semantic-release/git": "^9.0.0", | ||
"@vue/cli-plugin-babel": "^4.2.3", | ||
"@vue/cli-plugin-typescript": "^4.2.3", | ||
"@vue/cli-plugin-typescript": "^4.3.1", | ||
"@vue/cli-plugin-unit-mocha": "^4.2.3", | ||
@@ -62,3 +63,2 @@ "@vue/cli-service": "^4.2.3", | ||
"semantic-release": "^17.0.4", | ||
"@hutson/semantic-delivery-gitlab": "^9.1.0", | ||
"typescript": "^3.8.3", | ||
@@ -65,0 +65,0 @@ "vue-template-compiler": "^2.6.11" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
111017
2704