not-node 6.3.99 → 6.4.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.3.99",
3
+ "version": "6.4.0",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,6 +2,7 @@ module.exports = {
2
2
  ui: {
3
3
  component: "UISwitch",
4
4
  label: "not-node:field_active_label",
5
+ default: false,
5
6
  },
6
7
  model: {
7
8
  type: Boolean,
@@ -2,6 +2,7 @@ module.exports = {
2
2
  ui: {
3
3
  component: "UISwitch",
4
4
  label: "not-node:field_boolean_label",
5
+ default: false,
5
6
  },
6
7
  model: {
7
8
  type: Boolean,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  placeholder: "not-node:field_codeName_placeholder",
5
5
  label: "not-node:field_codeName_label",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -2,6 +2,7 @@ module.exports = {
2
2
  ui: {
3
3
  component: "UISwitch",
4
4
  label: "not-node:field_default_label",
5
+ default: false,
5
6
  },
6
7
  model: {
7
8
  type: Boolean,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextarea",
4
4
  placeholder: "not-node:field_description_placeholder",
5
5
  label: "not-node:field_description_label",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UIEmail",
4
4
  placeholder: "not-node:field_email_placeholder",
5
5
  label: "not-node:field_email_label",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -2,6 +2,7 @@ module.exports = {
2
2
  ui: {
3
3
  component: "UISwitch",
4
4
  label: "not-node:field_enabled_label",
5
+ default: false,
5
6
  },
6
7
  model: {
7
8
  type: Boolean,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  label: "not-node:field_height_label",
5
5
  placeholder: "not-node:field_height_placeholder",
6
+ default: 0.0,
6
7
  },
7
8
  model: {
8
9
  type: Number,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  label: "not-node:field_IP_label",
5
5
  placeholder: "not-node:field_IP_placeholder",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -4,8 +4,11 @@ module.exports = {
4
4
  model: {
5
5
  type: ObjectId,
6
6
  required: true,
7
- default: {},
7
+ default: null,
8
8
  transformers: ["xss", "__CLEAR__"],
9
9
  safe: require("../safety.protocols").ownerRootAdmin,
10
10
  },
11
+ ui: {
12
+ default: null,
13
+ },
11
14
  };
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  placeholder: "not-node:field_price_placeholder",
5
5
  label: "not-node:field_price_label",
6
+ default: 0.0,
6
7
  },
7
8
  model: {
8
9
  type: Number,
@@ -7,4 +7,7 @@ module.exports = {
7
7
  default: {},
8
8
  safe: require("../safety.protocols").ownerRootAdmin,
9
9
  },
10
+ ui: {
11
+ default: {},
12
+ },
10
13
  };
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  label: "not-node:field_session_label",
5
5
  placeholder: "not-node:field_session_placeholder",
6
+ readonly: true,
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  label: "not-node:field_size_label",
5
5
  placeholder: "not-node:field_size_placeholder",
6
+ default: 0.0,
6
7
  },
7
8
  model: {
8
9
  type: Number,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITelephone",
4
4
  placeholder: "not-node:field_telephone_placeholder",
5
5
  label: "not-node:field_telephone_label",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  label: "not-node:field_title_label",
5
5
  placeholder: "not-node:field_title_placeholder",
6
+ default: "",
6
7
  },
7
8
  model: {
8
9
  type: String,
@@ -5,6 +5,7 @@ module.exports = {
5
5
  component: "UITextfield",
6
6
  label: "not-node:field_userId_label",
7
7
  placeholder: "not-node:field_userId_placeholder",
8
+ readonly: true,
8
9
  },
9
10
  model: {
10
11
  type: Schema.Types.ObjectId,
@@ -4,6 +4,7 @@ module.exports = {
4
4
  placeholder: "not-node:field_UUID_placeholder",
5
5
  label: "not-node:field_UUID_label",
6
6
  readonly: true,
7
+ default: "",
7
8
  },
8
9
  model: {
9
10
  type: String,
@@ -3,6 +3,7 @@ module.exports = {
3
3
  component: "UITextfield",
4
4
  placeholder: "not-node:field_width_placeholder",
5
5
  label: "not-node:field_width_label",
6
+ default: 0.0,
6
7
  },
7
8
  model: {
8
9
  type: Number,
@@ -169,7 +169,7 @@ module.exports.initManifestFields = (
169
169
  * Returns mutation tuple for a field or false
170
170
  * @param {string} name field name
171
171
  * @param {Array} list fields description lists
172
- * @return {boolean|item}
172
+ * @return {boolean|Array<string|Object>}
173
173
  */
174
174
  function getMutationForField(name, list) {
175
175
  for (let item of list) {