aloha-vue 1.0.374 → 1.0.375

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.
@@ -292,6 +292,12 @@ export default {
292
292
  classColumn: "a_column_8",
293
293
  html: "<strong>TEMPLATE</strong>",
294
294
  },
295
+ {
296
+ type: "text",
297
+ label: "test.test.test",
298
+ id: "test.test.test",
299
+ required: true,
300
+ },
295
301
  ];
296
302
  },
297
303
  },
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "Vue.js"
15
15
  ],
16
16
  "homepage": "https://github.com/ilia-brykin/aloha/#README.md",
17
- "version": "1.0.374",
17
+ "version": "1.0.375",
18
18
  "author": {
19
19
  "name": "Ilia Brykin",
20
20
  "email": "brykin.ilia@gmail.com"
@@ -17,8 +17,9 @@ import UiStyleHideAPI from "../compositionApi/UiStyleHideAPI";
17
17
 
18
18
  import AUiTypesContainer from "../const/AUiTypesContainer";
19
19
  import {
20
- cloneDeep,
20
+ cloneDeep, get,
21
21
  isNil,
22
+ set,
22
23
  } from "lodash-es";
23
24
 
24
25
  export default {
@@ -76,7 +77,7 @@ export default {
76
77
  context.emit("update:modelValue", model);
77
78
  } else {
78
79
  const MODEL_VALUE = cloneDeep(modelValue.value);
79
- MODEL_VALUE[item.id] = cloneDeep(model);
80
+ set(MODEL_VALUE, item.id, cloneDeep(model));
80
81
  context.emit("update:modelValue", MODEL_VALUE);
81
82
  }
82
83
  };
@@ -134,7 +135,7 @@ export default {
134
135
  }
135
136
  return h(this.componentTypesMapping[item.type], {
136
137
  key: itemIndex,
137
- modelValue: IS_CONTAINER ? this.modelValue : this.modelValue[item.id],
138
+ modelValue: IS_CONTAINER ? this.modelValue : get(this.modelValue, item.id),
138
139
  modelDependencies: this.modelValue,
139
140
  class: classColumn,
140
141
  errors: this.errorsAll[item.id],
@@ -14,7 +14,9 @@ import AUiTypesContainer from "../const/AUiTypesContainer";
14
14
  import {
15
15
  cloneDeep,
16
16
  forEach,
17
+ get,
17
18
  isNil,
19
+ set,
18
20
  } from "lodash-es";
19
21
 
20
22
  export default {
@@ -88,7 +90,7 @@ export default {
88
90
  emit("update:modelValue", model);
89
91
  } else {
90
92
  const MODEL_VALUE = cloneDeep(modelValueLocal.value);
91
- MODEL_VALUE[item.id] = cloneDeep(model);
93
+ set(MODEL_VALUE, item.id, cloneDeep(model));
92
94
  emit("update:modelValue", MODEL_VALUE);
93
95
  }
94
96
  };
@@ -152,7 +154,7 @@ export default {
152
154
  }
153
155
  return h(this.componentTypesMapping[item.type], {
154
156
  key: itemIndex,
155
- modelValue: IS_CONTAINER ? this.modelValueLocal : this.modelValueLocal[item.id],
157
+ modelValue: IS_CONTAINER ? this.modelValueLocal : get(this.modelValueLocal, item.id),
156
158
  modelDependencies: this.modelValueLocal,
157
159
  class: classColumn,
158
160
  errors: this.errors[item.id],
@@ -17,7 +17,10 @@ import UiAPI, { getHtmlId } from "../compositionApi/UiAPI";
17
17
  import UiStyleHideAPI from "../compositionApi/UiStyleHideAPI";
18
18
 
19
19
  import {
20
- cloneDeep, isNil,
20
+ cloneDeep,
21
+ get,
22
+ isNil,
23
+ set,
21
24
  } from "lodash-es";
22
25
 
23
26
  export default {
@@ -68,7 +71,7 @@ export default {
68
71
 
69
72
  const onUpdateModelLocal = ({ item, model }) => {
70
73
  const MODEL_VALUE = cloneDeep(modelValue.value);
71
- MODEL_VALUE[item.id] = cloneDeep(model);
74
+ set(MODEL_VALUE, item.id, cloneDeep(model));
72
75
  context.emit("update:modelValue", MODEL_VALUE);
73
76
  };
74
77
 
@@ -142,7 +145,7 @@ export default {
142
145
  }
143
146
  return h(this.componentTypesMapping[item.type], {
144
147
  key: itemIndex,
145
- modelValue: this.modelValue[item.id],
148
+ modelValue: get(this.modelValue, item.id),
146
149
  modelDependencies: this.modelValue,
147
150
  class: classColumn,
148
151
  errors: this.errorsAll[item.id],