@mapomodule/uikit 1.0.0-alpha.30 → 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 CHANGED
@@ -3,6 +3,28 @@
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
+
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)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fix emits of form inputs in heavly nested conditions ([2b143fd](https://github.com/lotrekagency/mapo/commit/2b143fdbee7c8797143c54b3a474e3462aff7321))
23
+
24
+
25
+
26
+
27
+
6
28
  # [1.0.0-alpha.30](https://github.com/lotrekagency/mapo/compare/v1.0.0-alpha.29...v1.0.0-alpha.30) (2022-09-13)
7
29
 
8
30
 
@@ -131,8 +131,7 @@ export default {
131
131
  }
132
132
  },
133
133
  model(val) {
134
- if (JSON.stringify(this.value) !== JSON.stringify(val))
135
- this.immediate ? this.$emit("input", val) : this.debouncedEmit("input", val);
134
+ this.immediate ? this.$emit("input", val) : this.debouncedEmit("input", val);
136
135
  },
137
136
  },
138
137
  methods: {
@@ -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 = val || [];
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.30",
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": "f648aac2fc02b28e687f4631cfbaf4cde6999a8b"
18
+ "gitHead": "a2dbae1a4fedc354c793b65a8466b83252bf1d26"
19
19
  }