not-options 0.2.7 → 0.2.8
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/package.json +1 -1
- package/src/fields/id.js +10 -9
- package/src/fields/value.js +13 -12
package/package.json
CHANGED
package/src/fields/id.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
parent: "not-node//codeName",
|
|
3
|
+
ui: {
|
|
4
|
+
component: "UITextfield",
|
|
5
|
+
placeholder: "идентификатор настройки",
|
|
6
|
+
label: "Название",
|
|
7
|
+
},
|
|
8
|
+
model: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true,
|
|
11
|
+
},
|
|
11
12
|
};
|
package/src/fields/value.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
const Schema = require(
|
|
1
|
+
const Schema = require("mongoose").Schema;
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
parent: "not-node//requiredObject",
|
|
5
|
+
model: {
|
|
6
|
+
type: Schema.Types.Mixed,
|
|
7
|
+
searchable: true,
|
|
8
|
+
required: true,
|
|
9
|
+
},
|
|
10
|
+
ui: {
|
|
11
|
+
component: "UITextarea",
|
|
12
|
+
placeholder: "Настройки",
|
|
13
|
+
label: "Значение",
|
|
14
|
+
readonly: false,
|
|
15
|
+
},
|
|
15
16
|
};
|