@mapomodule/uikit 1.0.0-alpha.32 → 1.0.0-alpha.33
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/CHANGELOG.md +11 -0
- package/components/Form/fields/Repeater.vue +5 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-alpha.33](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.32...v1.0.0-alpha.33) (2022-10-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **repeater:** keep cloned array in repeater ([2d9254c](https://github.com/lotrekagency/mapo/commit/2d9254cef9a9ac17b488d3bac440dbde9bfc60cf))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [1.0.0-alpha.32](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.31...v1.0.0-alpha.32) (2022-09-28)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
|
|
248
248
|
<script>
|
|
249
249
|
import draggable from "vuedraggable";
|
|
250
|
-
import { getPointed } from "@mapomodule/utils/helpers/objHelpers";
|
|
250
|
+
import { getPointed, deepClone } from "@mapomodule/utils/helpers/objHelpers";
|
|
251
251
|
import { titleCase } from "@mapomodule/utils/helpers/formatters";
|
|
252
252
|
import { nameSpacedSlots } from "@mapomodule/utils/helpers/slots";
|
|
253
253
|
|
|
@@ -318,12 +318,13 @@ export default {
|
|
|
318
318
|
},
|
|
319
319
|
watch: {
|
|
320
320
|
value(val) {
|
|
321
|
-
this.items
|
|
321
|
+
if (JSON.stringify(val) === JSON.stringify(this.items)) return;
|
|
322
|
+
this.items = (val && deepClone(val)) || [];
|
|
322
323
|
if (val.length != this.collapsedStack.length)
|
|
323
324
|
this.collapsedStack = (val || []).map(() => !!this.collapsable);
|
|
324
325
|
},
|
|
325
326
|
items(val) {
|
|
326
|
-
this.$emit("input", val);
|
|
327
|
+
this.$emit("input", deepClone(val));
|
|
327
328
|
},
|
|
328
329
|
tModalOpen(val) {
|
|
329
330
|
!val && this.tModalCallback();
|
|
@@ -451,7 +452,7 @@ export default {
|
|
|
451
452
|
},
|
|
452
453
|
},
|
|
453
454
|
mounted() {
|
|
454
|
-
this.items = this.value || [];
|
|
455
|
+
this.items = (this.value && deepClone(this.value)) || [];
|
|
455
456
|
},
|
|
456
457
|
};
|
|
457
458
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapomodule/uikit",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "This is part of Mapo nuxt module. Injects Mapo ui components in the nuxt component discovery system.",
|
|
6
6
|
"author": "bnznamco <gabriele.baldi.01@gmail.com>",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "a2dbae1a4fedc354c793b65a8466b83252bf1d26"
|
|
19
19
|
}
|