diff --git a/server/schema-server.js b/server/schema-server.js
index a7e88dd..65ebf8d 100644
--- a/server/schema-server.js
+++ b/server/schema-server.js
@@ -53,9 +53,14 @@ router.get("/schemas/:id", function (req, res) {
});
});
router.get("/details", async function (req, res) {
- return res.json(JSON.parse(await fs.promises.readFile(path.join(__dirname, `/schemas/new/details.json`))))
+ return res.json(JSON.parse(await fs.promises.readFile(path.join(__dirname, `/schemas/newSchema/details.json`))))
+});
+router.get("/new-schema", async function (req, res) {
+ return res.json(JSON.parse(await fs.promises.readFile(path.join(__dirname, `/schemas/newSchema/questions.json`))))
+});
+router.get("/add-to-log", async function (req, res) {
+ return res.json(JSON.parse(await fs.promises.readFile(path.join(__dirname, `/schemas/new/addToLog.json`))))
});
-
router.get("/fix-data/:prpId/:part", function (req, res) {
const fixDataStr = fs.readFileSync(
path.join(__dirname, "/schemas/data.json"),
@@ -142,8 +147,8 @@ router.get("/keys", async (req, res) => {
}
return res.status(200).json(data);
});
-router.post("/temp-schema-maker", async (req, res) => {
- const { value } = req.body;
+router.get("/temp-schema-maker", async (req, res) => {
+ const value = req.query.term;
const result = { id: data.length + 1, value, status: "tempKeyWord" };
data.push(result);
return res.status(200).json(result);
@@ -151,8 +156,7 @@ router.post("/temp-schema-maker", async (req, res) => {
router.get("/keywordinfo", async (req, res) => {
const id = Number(req.query.id);
const result = data.find((element) => element.id == id);
- if (result) {
- return res.status(200).json([
+ return res.status(200).json({rows : [
{
culture: "fa",
title: result.value,
@@ -161,8 +165,7 @@ router.get("/keywordinfo", async (req, res) => {
culture: "en",
title: "Value",
},
- ]);
- }
+ ],status: result.status});
});
module.exports = router;
diff --git a/server/schemas/new/questions.json b/server/schemas/new/questions.json
index 740c661..d9f600b 100644
--- a/server/schemas/new/questions.json
+++ b/server/schemas/new/questions.json
@@ -26,9 +26,8 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text",
+ "cssClass": "css_13050_1"
}
]
},
@@ -58,9 +57,12 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text",
+ "validations": {
+ "required": true,
+ "minLength": 3,
+ "maxLength": 50
+ }
}
]
},
@@ -93,7 +95,7 @@
"title": "Is Multi",
"parts": [
{
- "part": 1,
+ "part": 3,
"viewType": "select",
"fixValues": [
{
@@ -147,6 +149,32 @@
]
}
]
+ },
+ {
+ "prpId": 7,
+ "vocab": "AddToLog",
+ "title": "AddToLog",
+ "multi": false,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "checklist",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "",
+ "schema": {
+ "schemaId": 10,
+ "paramUrl": "add-to-log",
+ "lid": 1,
+ "schemaVersion": 1.1
+ }
+ }
+ ],
+ "caption": "",
+ "link": ""
+ }
+ ]
}
]
},
@@ -163,9 +191,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -313,9 +339,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -371,9 +395,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -387,6 +409,122 @@
}
]
},
+ {
+ "prpId": 3,
+ "title": "todayButton",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "yearsList",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "monthList",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 6,
+ "title": "rangeDates",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 7,
+ "title": "switchType",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 8,
+ "title": "style",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
{
"prpId": 3001,
"title": "required",
@@ -413,6 +551,10 @@
{
"id": 1,
"title": "Validations"
+ },
+ {
+ "id": 2,
+ "title": "Options"
}
]
},
@@ -524,9 +666,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -596,9 +736,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -620,17 +758,23 @@
{
"part": 1,
"viewType": "Text",
- "caption": "Value",
+ "caption": "Id",
"validations": {
"dataType": "int"
}
},
{
"part": 2,
- "link": "/server/popup",
- "viewType": "html",
- "multi": true,
+ "viewType": "text",
"caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
}
]
},
@@ -689,9 +833,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -713,17 +855,23 @@
{
"part": 1,
"viewType": "Text",
- "caption": "Value",
+ "caption": "Id",
"validations": {
"dataType": "int"
}
},
{
"part": 2,
- "link": "/server/popup",
- "viewType": "html",
- "multi": true,
+ "viewType": "text",
"caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
}
]
},
@@ -807,9 +955,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -831,17 +977,23 @@
{
"part": 1,
"viewType": "Text",
- "caption": "Value",
+ "caption": "Id",
"validations": {
"dataType": "int"
}
},
{
"part": 2,
- "link": "/server/popup",
- "viewType": "html",
- "multi": true,
+ "viewType": "text",
"caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
}
]
},
@@ -900,9 +1052,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -972,9 +1122,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -1093,9 +1241,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
- "viewType": "html",
- "multi": false
+ "viewType": "text"
}
]
},
@@ -1210,6 +1356,30 @@
"title": "Validations"
}
]
+ },
+ {
+ "paramUrl": "add-to-log",
+ "schemaVersion": 1.1,
+ "lid": 1,
+ "schemaId": "add-to-log",
+ "baseVocab": "http://schema.site/FA/vo",
+ "questions": [
+ {
+ "prpId": 71,
+ "vocab": "LogName",
+ "title": "LogName",
+ "multi": false,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "required": true
+ }
+ }
+ ]
+ }
+ ]
}
]
}
diff --git a/server/schemas/newSchema/defaultQuestions.json b/server/schemas/newSchema/defaultQuestions.json
new file mode 100644
index 0000000..b677929
--- /dev/null
+++ b/server/schemas/newSchema/defaultQuestions.json
@@ -0,0 +1,96 @@
+{
+ "setting": {
+ "keepalive": true
+ },
+ "sources": [
+ {
+ "options": {
+ "tableName": "answer.data",
+ "keyFieldName": "",
+ "statusFieldName": "",
+ "mergeType": 0
+ },
+ "data": [
+ {
+ "lid": 1,
+ "questions": [
+ {
+ "TypeID": 150,
+ "Ord": 700,
+ "multi": false,
+ "class": "css_150",
+ "Url": "FA/vo/عنوان",
+ "title": "عنوان",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "cssClass": "css_150_1",
+ "validations": {
+ "required": true,
+ "minLength": "2",
+ "maxLength": "100"
+ }
+ }
+ ]
+ },
+ {
+ "TypeID": 164,
+ "Ord": 720,
+ "multi": false,
+ "class": "css_164",
+ "Url": "FA/vo/برند",
+ "title": "برند",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "cssClass": "css_164_1",
+ "validations": {
+ "minLength": "2",
+ "maxLength": "4000"
+ }
+ }
+ ]
+ },
+ {
+ "TypeID": 163,
+ "Ord": 740,
+ "multi": false,
+ "class": "css_163",
+ "Url": "FA/vo/مدل",
+ "title": "مدل",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "cssClass": "css_163_1",
+ "validations": {
+ "minLength": "2",
+ "maxLength": "4000"
+ }
+ }
+ ]
+ },
+ {
+ "TypeID": 144,
+ "Ord": 1220,
+ "multi": true,
+ "class": "css_144",
+ "Url": "FA/vo/توضیحات",
+ "title": "توضیحات",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "textarea",
+ "cssClass": "css_144_1",
+ "validations": {}
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
\ No newline at end of file
diff --git a/server/schemas/new/details.json b/server/schemas/newSchema/details.json
similarity index 85%
rename from server/schemas/new/details.json
rename to server/schemas/newSchema/details.json
index 61117c1..55167ab 100644
--- a/server/schemas/new/details.json
+++ b/server/schemas/newSchema/details.json
@@ -17,16 +17,6 @@
"schemaVersion": 1.1,
"lid": 2,
"baseVocab": "http://schema.site/FA/vo",
- "sections": [
- {
- "id": 1,
- "title": "Sec 1",
- "description": "Simple description"
- },
- {
- "id": 2
- }
- ],
"questions": [
{
"prpId": 1,
@@ -34,7 +24,7 @@
"parts": [
{
"part": 1,
- "link": "/server/popup",
+ "link": "/server/popup?isSchema=true",
"viewType": "html",
"multi": false
}
@@ -68,7 +58,6 @@
{
"part": 1,
"viewType": "text"
-
}
]
}
diff --git a/server/schemas/newSchema/questions.json b/server/schemas/newSchema/questions.json
new file mode 100644
index 0000000..b150ac4
--- /dev/null
+++ b/server/schemas/newSchema/questions.json
@@ -0,0 +1,1363 @@
+{
+ "setting": {
+ "keepalive": true
+ },
+ "sources": [
+ {
+ "options": {
+ "tableName": "schema.newdata",
+ "keyFieldName": null,
+ "statusFieldName": null,
+ "mergeType": 0
+ },
+ "data": [
+ {
+ "schemas": [
+ {
+ "schemaId": "section",
+ "paramUrl": "section",
+ "schemaType": "section",
+ "title": "Section",
+ "image": "/assets/images/sections.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Title",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Description",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "textarea",
+ "cssClass": "css_13050_1"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "schemaId": "question",
+ "paramUrl": "question",
+ "schemaType": "question",
+ "title": "Question",
+ "image": "/assets/images/question.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Title",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Parts",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "1"
+ },
+ {
+ "id": 2,
+ "value": "2"
+ },
+ {
+ "id": 3,
+ "value": "3"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3,
+ "title": "Is Multi",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "No"
+ },
+ {
+ "id": 2,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Help",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 6,
+ "title": "Use In List",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "No"
+ },
+ {
+ "id": 2,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "schemaId": "text",
+ "paramUrl": "text",
+ "schemaType": "part",
+ "title": "Short Text",
+ "image": "/assets/images/input.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3002,
+ "title": "minLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3003,
+ "title": "maxLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3004,
+ "title": "min",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3005,
+ "title": "max",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3006,
+ "title": "dataType",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "text"
+ },
+ {
+ "id": "int",
+ "value": "int"
+ },
+ {
+ "id": "float",
+ "value": "float"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3007,
+ "title": "regex",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "color",
+ "paramUrl": "color",
+ "schemaType": "part",
+ "title": "Color",
+ "image": "/assets/images/color.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "datepicker",
+ "paramUrl": "datepicker",
+ "schemaType": "part",
+ "title": "Datepicker",
+ "image": "/assets/images/date.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3,
+ "title": "todayButton",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "yearsList",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "monthList",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 6,
+ "title": "rangeDates",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 7,
+ "title": "switchType",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "false"
+ },
+ {
+ "id": 1,
+ "value": "true"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 8,
+ "title": "style",
+ "sectionId": 2,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ },
+ {
+ "id": 2,
+ "title": "Options"
+ }
+ ]
+ },
+ {
+ "schemaId": "textarea",
+ "paramUrl": "textarea",
+ "schemaType": "part",
+ "title": "Long Text",
+ "image": "/assets/images/text-box.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3002,
+ "title": "minLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3003,
+ "title": "maxLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3007,
+ "title": "regex",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "AutoComplete",
+ "paramUrl": "AutoComplete",
+ "schemaType": "part",
+ "title": "Autocomplete",
+ "image": "/assets/images/autoComplete.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Url",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "required": true,
+ "regex1": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Select",
+ "paramUrl": "Select",
+ "schemaType": "part",
+ "title": "Select",
+ "image": "/assets/images/dropdown.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "Items",
+ "multi": "true",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "Text",
+ "caption": "Id",
+ "validations": {
+ "dataType": "int"
+ }
+ },
+ {
+ "part": 2,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": true,
+ "caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Url",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "regex1": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Checklist",
+ "paramUrl": "Checklist",
+ "schemaType": "part",
+ "title": "Checklist",
+ "image": "/assets/images/checklist.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "Items",
+ "multi": "true",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "Text",
+ "caption": "Id",
+ "validations": {
+ "dataType": "int"
+ }
+ },
+ {
+ "part": 2,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": true,
+ "caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Url",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3002,
+ "title": "minLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3003,
+ "title": "maxLength",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Radio",
+ "paramUrl": "Radio",
+ "schemaType": "part",
+ "title": "Radio",
+ "image": "/assets/images/radio.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "Items",
+ "multi": "true",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "Text",
+ "caption": "Id",
+ "validations": {
+ "dataType": "int"
+ }
+ },
+ {
+ "part": 2,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": true,
+ "caption": "Title"
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "priority",
+ "validations": {
+ "dataType": "float"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Url",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "regex1": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Lookup",
+ "paramUrl": "Lookup",
+ "schemaType": "part",
+ "title": "Lookup",
+ "image": "/assets/images/lookup.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 5,
+ "title": "Url",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "required": true,
+ "regex1": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Upload",
+ "paramUrl": "Upload",
+ "schemaType": "part",
+ "title": "Upload",
+ "image": "/assets/images/upload.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3,
+ "title": "multiple",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "No"
+ },
+ {
+ "id": 2,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3008,
+ "title": "mimes",
+ "multi": "true",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "Text",
+ "caption": "mime"
+ },
+ {
+ "part": 2,
+ "viewType": "text",
+ "caption": "minSize",
+ "validations": {
+ "dataType": "int"
+ }
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "maxSize",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3009,
+ "title": "size",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ },
+ {
+ "schemaId": "Blob",
+ "paramUrl": "Blob",
+ "schemaType": "part",
+ "title": "Upload Multi Part",
+ "image": "/assets/images/upload.png",
+ "questions": [
+ {
+ "prpId": 1,
+ "title": "Caption",
+ "parts": [
+ {
+ "part": 1,
+ "link": "/server/popup?isSchema=false",
+ "viewType": "html",
+ "multi": false
+ }
+ ]
+ },
+ {
+ "prpId": 2,
+ "title": "Css Class",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3,
+ "title": "multiple",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 1,
+ "value": "No"
+ },
+ {
+ "id": 2,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 4,
+ "title": "upload token",
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text"
+ }
+ ]
+ },
+ {
+ "prpId": 3001,
+ "title": "required",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "select",
+ "fixValues": [
+ {
+ "id": 0,
+ "value": "No"
+ },
+ {
+ "id": 1,
+ "value": "Yes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "prpId": 3008,
+ "title": "mimes",
+ "multi": "true",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "Text",
+ "caption": "mime"
+ },
+ {
+ "part": 2,
+ "viewType": "text",
+ "caption": "minSize",
+ "validations": {
+ "dataType": "int"
+ }
+ },
+ {
+ "part": 3,
+ "viewType": "text",
+ "caption": "maxSize",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ },
+ {
+ "prpId": 3009,
+ "title": "size",
+ "sectionId": 1,
+ "parts": [
+ {
+ "part": 1,
+ "viewType": "text",
+ "validations": {
+ "dataType": "int"
+ }
+ }
+ ]
+ }
+ ],
+ "sections": [
+ {
+ "id": 1,
+ "title": "Validations"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
diff --git a/server/schemas/popUp.html b/server/schemas/popUp.html
index 5968624..a186da2 100644
--- a/server/schemas/popUp.html
+++ b/server/schemas/popUp.html
@@ -113,28 +113,34 @@
-
+