formeo 5.1.2 → 5.1.3

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.
Binary file
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.1.1
4
+ Version: 5.1.2
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.1.1
4
+ Version: 5.1.2
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -6061,7 +6061,7 @@ if (globalThis !== void 0) globalThis.SmartTooltip = SmartTooltip;
6061
6061
  var name$1, version$2, type, main, module$1, unpkg, exports$1, files, homepage, repository, author, contributors, bugs, description, keywords, ignore, config, scripts, devDependencies, dependencies, release, commitlint, package_default;
6062
6062
  var init_package = __esmMin((() => {
6063
6063
  name$1 = "formeo";
6064
- version$2 = "5.1.1";
6064
+ version$2 = "5.1.2";
6065
6065
  type = "module";
6066
6066
  main = "dist/formeo.cjs.js";
6067
6067
  module$1 = "dist/formeo.es.js";
@@ -16668,7 +16668,9 @@ var init_component = __esmMin((() => {
16668
16668
  }
16669
16669
  const { controlData: { meta: { id: metaId }, ...elementData } } = Controls$1.get(item.id);
16670
16670
  set(elementData, "config.controlId", metaId);
16671
- const controlType = metaId.startsWith("layout-") ? metaId.replace(/^layout-/, "") : "field";
16671
+ const isLayoutControl = metaId.startsWith("layout-");
16672
+ const controlType = isLayoutControl ? metaId.replace(/^layout-/, "") : "field";
16673
+ const componentData = isLayoutControl ? {} : elementData;
16672
16674
  const depth = get({
16673
16675
  stage: {
16674
16676
  row: 0,
@@ -16689,7 +16691,7 @@ var init_component = __esmMin((() => {
16689
16691
  }, `${this.name}.${controlType}`);
16690
16692
  const action = depthMap.get(depth)();
16691
16693
  dom.remove(item);
16692
- return action(elementData, newIndex);
16694
+ return action(componentData, newIndex);
16693
16695
  },
16694
16696
  row: () => {
16695
16697
  return (depthMap.get({
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.1.1
4
+ Version: 5.1.2
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -6060,7 +6060,7 @@ if (globalThis !== void 0) globalThis.SmartTooltip = SmartTooltip;
6060
6060
  var name$1, version$2, type, main, module$1, unpkg, exports$1, files, homepage, repository, author, contributors, bugs, description, keywords, ignore, config, scripts, devDependencies, dependencies, release, commitlint, package_default;
6061
6061
  var init_package = __esmMin((() => {
6062
6062
  name$1 = "formeo";
6063
- version$2 = "5.1.1";
6063
+ version$2 = "5.1.2";
6064
6064
  type = "module";
6065
6065
  main = "dist/formeo.cjs.js";
6066
6066
  module$1 = "dist/formeo.es.js";
@@ -16667,7 +16667,9 @@ var init_component = __esmMin((() => {
16667
16667
  }
16668
16668
  const { controlData: { meta: { id: metaId }, ...elementData } } = Controls$1.get(item.id);
16669
16669
  set(elementData, "config.controlId", metaId);
16670
- const controlType = metaId.startsWith("layout-") ? metaId.replace(/^layout-/, "") : "field";
16670
+ const isLayoutControl = metaId.startsWith("layout-");
16671
+ const controlType = isLayoutControl ? metaId.replace(/^layout-/, "") : "field";
16672
+ const componentData = isLayoutControl ? {} : elementData;
16671
16673
  const depth = get({
16672
16674
  stage: {
16673
16675
  row: 0,
@@ -16688,7 +16690,7 @@ var init_component = __esmMin((() => {
16688
16690
  }, `${this.name}.${controlType}`);
16689
16691
  const action = depthMap.get(depth)();
16690
16692
  dom.remove(item);
16691
- return action(elementData, newIndex);
16693
+ return action(componentData, newIndex);
16692
16694
  },
16693
16695
  row: () => {
16694
16696
  return (depthMap.get({