mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
1263 lines
53 KiB
JavaScript
Vendored
1263 lines
53 KiB
JavaScript
Vendored
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[24],{
|
|
|
|
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&":
|
|
/*!*********************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***!
|
|
\*********************************************************************************************************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! util */ "./node_modules/util/util.js");
|
|
/* harmony import */ var util__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(util__WEBPACK_IMPORTED_MODULE_0__);
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
//
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
data: function data() {
|
|
return {
|
|
form: {
|
|
name: "",
|
|
unique_code: "",
|
|
info: [{
|
|
name: "",
|
|
type: "",
|
|
size: ""
|
|
}]
|
|
},
|
|
type: [{
|
|
state: "Text",
|
|
abbr: "text"
|
|
}, {
|
|
state: "Checkbox",
|
|
abbr: "checkbox"
|
|
}, {
|
|
state: "Select",
|
|
abbr: "select"
|
|
}, {
|
|
state: "Form",
|
|
abbr: "form"
|
|
}]
|
|
};
|
|
},
|
|
methods: {
|
|
changeType: function changeType(infoIndex, selectedboxType) {
|
|
if (selectedboxType == "select" || selectedboxType == "checkbox") {
|
|
this.form.info[infoIndex]["options"] = [{
|
|
title: ""
|
|
}];
|
|
} else {
|
|
this.form.info[infoIndex]["options"] = [];
|
|
}
|
|
|
|
if (selectedboxType == "form") {
|
|
this.form.info[infoIndex]["children"] = [{
|
|
name: "",
|
|
type: "",
|
|
size: ""
|
|
}];
|
|
}
|
|
},
|
|
removeSelectbox: function removeSelectbox(infoIndex, selectboxOptions) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["options"].splice(selectboxOptions, 1);
|
|
this.form = form;
|
|
},
|
|
addSelectbox: function addSelectbox(infoIndex) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["options"].push({
|
|
title: ""
|
|
});
|
|
this.form = form;
|
|
},
|
|
addInput: function addInput() {
|
|
this.form.info.push({
|
|
name: "",
|
|
type: "",
|
|
size: ""
|
|
});
|
|
},
|
|
changeTypeForm: function changeTypeForm(infoIndex, type, formLevel) {
|
|
if (type == "select" || type == "checkbox") {
|
|
var form = this.form;
|
|
this.form = "";
|
|
form.info[infoIndex]["children"][formLevel]["options"] = [{
|
|
title: ""
|
|
}];
|
|
this.form = form;
|
|
} else {
|
|
var _form = this.form;
|
|
this.form = "";
|
|
_form.info[infoIndex]["children"][formLevel]["options"] = [];
|
|
this.form = _form;
|
|
}
|
|
},
|
|
removeSelectboxForm: function removeSelectboxForm(infoIndex, selectboxOptions, formLevel) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["children"][formLevel]["options"].splice(selectboxOptions, 1);
|
|
this.form = form;
|
|
},
|
|
addSelectboxForm: function addSelectboxForm(infoIndex, formLevel) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["children"][formLevel]["options"].push({
|
|
title: ""
|
|
});
|
|
this.form = form;
|
|
},
|
|
duplicateForm: function duplicateForm(infoIndex) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["children"].push({
|
|
name: "",
|
|
type: "",
|
|
size: ""
|
|
});
|
|
this.form = form;
|
|
},
|
|
removeForm: function removeForm(infoIndex, formLevel) {
|
|
var form = this.form;
|
|
this.form = [];
|
|
form.info[infoIndex]["children"].splice(formLevel, 1);
|
|
this.form = form;
|
|
}
|
|
}
|
|
});
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&":
|
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***!
|
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
exports = module.exports = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
|
|
// Module
|
|
exports.push([module.i, "\n.WM-Border-Gray[data-v-d05735bc] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-d05735bc] {\r\n background-color: #f5f5f5;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n top: -25px !important;\n}\n.v-btn--bottom.v-btn--absolute.v-btn--small[data-v-d05735bc] {\r\n bottom: -24px !important;\n}\r\n", ""]);
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&":
|
|
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***!
|
|
\********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
|
|
var content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&");
|
|
|
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
|
|
var transform;
|
|
var insertInto;
|
|
|
|
|
|
|
|
var options = {"hmr":true}
|
|
|
|
options.transform = transform
|
|
options.insertInto = undefined;
|
|
|
|
var update = __webpack_require__(/*! ../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
|
|
|
if(content.locals) module.exports = content.locals;
|
|
|
|
if(false) {}
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&":
|
|
/*!*************************************************************************************************************************************************************************************************************************!*\
|
|
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***!
|
|
\*************************************************************************************************************************************************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
|
var render = function() {
|
|
var _vm = this
|
|
var _h = _vm.$createElement
|
|
var _c = _vm._self._c || _h
|
|
return _c(
|
|
"v-form",
|
|
{ attrs: { id: "ParentForm" } },
|
|
[
|
|
_c(
|
|
"v-container",
|
|
{ attrs: { "grid-list-xs": "" } },
|
|
[
|
|
_c(
|
|
"material-card",
|
|
{ attrs: { color: "black", title: "Add a New Test" } },
|
|
[
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "ma-2",
|
|
attrs: { row: "", wrap: "", id: "Form" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: { name: "name", label: "Name", color: "black" },
|
|
model: {
|
|
value: _vm.form.name,
|
|
callback: function($$v) {
|
|
_vm.$set(_vm.form, "name", $$v)
|
|
},
|
|
expression: "form.name"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
name: "uniquecode",
|
|
label: "Unique Code",
|
|
color: "black"
|
|
},
|
|
model: {
|
|
value: _vm.form.unique_code,
|
|
callback: function($$v) {
|
|
_vm.$set(_vm.form, "unique_code", $$v)
|
|
},
|
|
expression: "form.unique_code"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_vm._l(_vm.form.info, function(info, keyForm) {
|
|
return _c(
|
|
"v-layout",
|
|
{
|
|
key: keyForm,
|
|
staticClass:
|
|
"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Relative",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "ma-2",
|
|
attrs: { row: "", wrap: "", id: "Form" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
name: "inputname",
|
|
label: "Input Name",
|
|
color: "black"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-select", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
items: _vm.type,
|
|
"item-text": "state",
|
|
"item-value": "abbr",
|
|
label: "Type",
|
|
"single-line": "",
|
|
color: "black"
|
|
},
|
|
on: {
|
|
change: function($event) {
|
|
return _vm.changeType(keyForm, info.type)
|
|
}
|
|
},
|
|
model: {
|
|
value: info.type,
|
|
callback: function($$v) {
|
|
_vm.$set(info, "type", $$v)
|
|
},
|
|
expression: "info.type"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
info.type !== "form"
|
|
? _c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
name: "size",
|
|
label: "Size",
|
|
color: "black",
|
|
id: "InputSize"
|
|
},
|
|
model: {
|
|
value: info.size,
|
|
callback: function($$v) {
|
|
_vm.$set(info, "size", $$v)
|
|
},
|
|
expression: "info.size"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
)
|
|
: _vm._e()
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
info.type === "select" || info.type === "checkbox"
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass:
|
|
"ma-3 pa-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
[
|
|
info["options"].length > 0
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "WM-Relative WM-Width-Full",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
_vm._l(info["options"], function(
|
|
selectbox,
|
|
keySelect
|
|
) {
|
|
return _c(
|
|
"v-flex",
|
|
{
|
|
key: keySelect,
|
|
staticClass:
|
|
"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",
|
|
attrs: { xs12: "", md3: "", sm3: "" }
|
|
},
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2 Input",
|
|
attrs: {
|
|
name: "title",
|
|
label: "Title",
|
|
color: "black"
|
|
},
|
|
model: {
|
|
value: selectbox.title,
|
|
callback: function($$v) {
|
|
_vm.$set(selectbox, "title", $$v)
|
|
},
|
|
expression: "selectbox.title"
|
|
}
|
|
}),
|
|
_vm._v(" "),
|
|
keySelect >= 1
|
|
? _c(
|
|
"v-btn",
|
|
{
|
|
attrs: {
|
|
absolute: "",
|
|
small: "",
|
|
right: "",
|
|
bottom: "",
|
|
color: "pink"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.removeSelectbox(
|
|
keyForm,
|
|
keySelect
|
|
)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-times")]
|
|
),
|
|
_vm._v("REMOVE\n ")
|
|
],
|
|
1
|
|
)
|
|
: _vm._e()
|
|
],
|
|
1
|
|
)
|
|
}),
|
|
1
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "mb-2",
|
|
attrs: {
|
|
absolute: "",
|
|
right: "",
|
|
bottom: "",
|
|
small: "",
|
|
color: "black"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.addSelectbox(keyForm)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "white--text mr-2 caption" },
|
|
[_vm._v("fas fa-plus")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "white--text" }, [
|
|
_vm._v("Add")
|
|
])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
info.type === "form"
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass:
|
|
"pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
[
|
|
_vm._l(info.children, function(
|
|
children,
|
|
keychildren
|
|
) {
|
|
return _c(
|
|
"v-layout",
|
|
{
|
|
key: keychildren,
|
|
staticClass:
|
|
"pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Color-LightGrey WM-Width-Full WM-Relative Form",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
name: "name",
|
|
label: "Input Name",
|
|
color: "black"
|
|
},
|
|
model: {
|
|
value: children.name,
|
|
callback: function($$v) {
|
|
_vm.$set(children, "name", $$v)
|
|
},
|
|
expression: "children.name"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-flex",
|
|
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
|
[
|
|
_c("v-select", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
items: _vm.type,
|
|
"item-text": "state",
|
|
"item-value": "abbr",
|
|
label: "Type",
|
|
"single-line": "",
|
|
color: "black"
|
|
},
|
|
on: {
|
|
change: function($event) {
|
|
return _vm.changeTypeForm(
|
|
keyForm,
|
|
children.type,
|
|
keychildren
|
|
)
|
|
}
|
|
},
|
|
model: {
|
|
value: children.type,
|
|
callback: function($$v) {
|
|
_vm.$set(children, "type", $$v)
|
|
},
|
|
expression: "children.type"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
children.type === "text"
|
|
? _c(
|
|
"v-flex",
|
|
{
|
|
attrs: { xs12: "", md3: "", sm3: "" }
|
|
},
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass: "pa-2",
|
|
attrs: {
|
|
name: "size",
|
|
label: "Size",
|
|
color: "black",
|
|
id: "InputSize"
|
|
}
|
|
})
|
|
],
|
|
1
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
children.type === "select" ||
|
|
children.type === "checkbox"
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass:
|
|
"pa-3 mb-3 WM-Border WM-Border-Black WM-Relative WM-Width-Full",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
[
|
|
children["options"].length > 0
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass:
|
|
"WM-Relative WM-Width-Full",
|
|
attrs: { row: "", wrap: "" }
|
|
},
|
|
_vm._l(
|
|
children["options"],
|
|
function(
|
|
selectbox,
|
|
keySelect
|
|
) {
|
|
return _c(
|
|
"v-flex",
|
|
{
|
|
key: keySelect,
|
|
staticClass:
|
|
"pb-4 ma-2 WM-Border WM-Border-Gray WM-BG-White WM-Width-Full WM-Relative",
|
|
attrs: {
|
|
xs12: "",
|
|
md3: "",
|
|
sm3: ""
|
|
}
|
|
},
|
|
[
|
|
_c("v-text-field", {
|
|
staticClass:
|
|
"pa-2 Input",
|
|
attrs: {
|
|
name: "title",
|
|
label: "Title",
|
|
color: "black",
|
|
id: "value"
|
|
},
|
|
model: {
|
|
value:
|
|
selectbox.title,
|
|
callback: function(
|
|
$$v
|
|
) {
|
|
_vm.$set(
|
|
selectbox,
|
|
"title",
|
|
$$v
|
|
)
|
|
},
|
|
expression:
|
|
"selectbox.title"
|
|
}
|
|
}),
|
|
_vm._v(" "),
|
|
keySelect >= 1
|
|
? _c(
|
|
"v-btn",
|
|
{
|
|
attrs: {
|
|
absolute: "",
|
|
small: "",
|
|
right: "",
|
|
bottom: "",
|
|
color: "pink"
|
|
},
|
|
on: {
|
|
click: function(
|
|
$event
|
|
) {
|
|
return _vm.removeSelectboxForm(
|
|
keyForm,
|
|
keySelect,
|
|
keychildren
|
|
)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[
|
|
_vm._v(
|
|
"fas fa-times"
|
|
)
|
|
]
|
|
),
|
|
_vm._v(
|
|
"REMOVE\n "
|
|
)
|
|
],
|
|
1
|
|
)
|
|
: _vm._e()
|
|
],
|
|
1
|
|
)
|
|
}
|
|
),
|
|
1
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
attrs: {
|
|
absolute: "",
|
|
right: "",
|
|
bottom: "",
|
|
small: "",
|
|
color: "black"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.addSelectboxForm(
|
|
keyForm,
|
|
keychildren
|
|
)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-plus")]
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"span",
|
|
{ staticClass: "white--text" },
|
|
[_vm._v("Add")]
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
attrs: {
|
|
absolute: "",
|
|
small: "",
|
|
right: "",
|
|
top: "",
|
|
color: "pink",
|
|
id: "RemoveFormDuplicator"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.removeForm(
|
|
keyForm,
|
|
keychildren
|
|
)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{
|
|
staticClass:
|
|
"white--text mr-2 caption"
|
|
},
|
|
[_vm._v("fas fa-times")]
|
|
),
|
|
_vm._v("REMOVE\n ")
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
}),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
attrs: {
|
|
absolute: "",
|
|
small: "",
|
|
right: "",
|
|
bottom: "",
|
|
color: "cyan",
|
|
id: "FormDuplicator"
|
|
},
|
|
on: {
|
|
click: function($event) {
|
|
return _vm.duplicateForm(keyForm)
|
|
}
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "white--text mr-2 caption" },
|
|
[_vm._v("fas fa-plus")]
|
|
),
|
|
_vm._v("ADD\n ")
|
|
],
|
|
1
|
|
)
|
|
],
|
|
2
|
|
)
|
|
: _vm._e(),
|
|
_vm._v(" "),
|
|
_vm.form.info.length - 1 == keyForm
|
|
? _c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "mt-4",
|
|
attrs: {
|
|
row: "",
|
|
wrap: "",
|
|
"align-center": "",
|
|
"justify-center": ""
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "mb-2",
|
|
attrs: {
|
|
absolute: "",
|
|
right: "",
|
|
bottom: "",
|
|
small: "",
|
|
color: "pink"
|
|
},
|
|
on: { click: _vm.addInput }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "white--text mr-2 caption" },
|
|
[_vm._v("fas fa-plus")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "white--text" }, [
|
|
_vm._v("Add")
|
|
])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
: _vm._e()
|
|
],
|
|
1
|
|
)
|
|
}),
|
|
_vm._v(" "),
|
|
_c(
|
|
"v-layout",
|
|
{
|
|
staticClass: "mt-4",
|
|
attrs: {
|
|
row: "",
|
|
wrap: "",
|
|
"align-center": "",
|
|
"justify-center": ""
|
|
}
|
|
},
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass: "WM-CyanBlueGradient-BG",
|
|
staticStyle: { padding: "10px 60px" }
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "white--text mr-2 caption" },
|
|
[_vm._v("fas fa-check")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "white--text" }, [
|
|
_vm._v("Generate Form")
|
|
])
|
|
],
|
|
1
|
|
),
|
|
_vm._v(" "),
|
|
_c(
|
|
"router-link",
|
|
{ attrs: { to: "/dashboard" } },
|
|
[
|
|
_c(
|
|
"v-btn",
|
|
{
|
|
staticClass:
|
|
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
|
},
|
|
[
|
|
_c(
|
|
"v-icon",
|
|
{ staticClass: "black--text mr-2 caption" },
|
|
[_vm._v("fas fa-chevron-left")]
|
|
),
|
|
_vm._v(" "),
|
|
_c("span", { staticClass: "black--text" }, [
|
|
_vm._v("Back")
|
|
])
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
2
|
|
)
|
|
],
|
|
1
|
|
)
|
|
],
|
|
1
|
|
)
|
|
}
|
|
var staticRenderFns = []
|
|
render._withStripped = true
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/TestCreator.vue":
|
|
/*!************************************************!*\
|
|
!*** ./resources/js/vue/views/TestCreator.vue ***!
|
|
\************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&");
|
|
/* harmony import */ var _TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport *//* harmony import */ var _TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&");
|
|
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
|
_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
|
_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
|
_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
|
false,
|
|
null,
|
|
"d05735bc",
|
|
null
|
|
|
|
)
|
|
|
|
/* hot reload */
|
|
if (false) { var api; }
|
|
component.options.__file = "resources/js/vue/views/TestCreator.vue"
|
|
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&":
|
|
/*!*************************************************************************!*\
|
|
!*** ./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js& ***!
|
|
\*************************************************************************/
|
|
/*! exports provided: default */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=script&lang=js&");
|
|
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&":
|
|
/*!*********************************************************************************************************!*\
|
|
!*** ./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& ***!
|
|
\*********************************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/style-loader!../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--5-2!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=style&index=0&id=d05735bc&lang=css&scoped=true&");
|
|
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
|
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_style_index_0_id_d05735bc_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&":
|
|
/*!*******************************************************************************************!*\
|
|
!*** ./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& ***!
|
|
\*******************************************************************************************/
|
|
/*! exports provided: render, staticRenderFns */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./TestCreator.vue?vue&type=template&id=d05735bc&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestCreator.vue?vue&type=template&id=d05735bc&scoped=true&");
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_TestCreator_vue_vue_type_template_id_d05735bc_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
}]); |