formeo 5.0.1 → 5.0.2

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.
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.0.0
4
+ Version: 5.0.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -436,7 +436,7 @@ Author: Draggable https://draggable.io
436
436
  window.SmartTooltip = SmartTooltip;
437
437
  }
438
438
  const name$1 = "formeo";
439
- const version$2 = "5.0.0";
439
+ const version$2 = "5.0.1";
440
440
  const pkg = {
441
441
  name: name$1,
442
442
  version: version$2
@@ -1208,9 +1208,9 @@ Author: Draggable https://draggable.io
1208
1208
  function require_cloneBuffer() {
1209
1209
  if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
1210
1210
  hasRequired_cloneBuffer = 1;
1211
- (function(module2, exports3) {
1211
+ (function(module2, exports$1) {
1212
1212
  var root = require_root();
1213
- var freeExports = exports3 && !exports3.nodeType && exports3;
1213
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1214
1214
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1215
1215
  var moduleExports = freeModule && freeModule.exports === freeExports;
1216
1216
  var Buffer = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
@@ -1456,9 +1456,9 @@ Author: Draggable https://draggable.io
1456
1456
  function requireIsBuffer() {
1457
1457
  if (hasRequiredIsBuffer) return isBuffer.exports;
1458
1458
  hasRequiredIsBuffer = 1;
1459
- (function(module2, exports3) {
1459
+ (function(module2, exports$1) {
1460
1460
  var root = require_root(), stubFalse = requireStubFalse();
1461
- var freeExports = exports3 && !exports3.nodeType && exports3;
1461
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1462
1462
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1463
1463
  var moduleExports = freeModule && freeModule.exports === freeExports;
1464
1464
  var Buffer = moduleExports ? root.Buffer : void 0;
@@ -1529,9 +1529,9 @@ Author: Draggable https://draggable.io
1529
1529
  function require_nodeUtil() {
1530
1530
  if (hasRequired_nodeUtil) return _nodeUtil.exports;
1531
1531
  hasRequired_nodeUtil = 1;
1532
- (function(module2, exports3) {
1532
+ (function(module2, exports$1) {
1533
1533
  var freeGlobal = require_freeGlobal();
1534
- var freeExports = exports3 && !exports3.nodeType && exports3;
1534
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1535
1535
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1536
1536
  var moduleExports = freeModule && freeModule.exports === freeExports;
1537
1537
  var freeProcess = moduleExports && freeGlobal.process;
@@ -10857,6 +10857,8 @@ Author: Draggable https://draggable.io
10857
10857
  },
10858
10858
  onAdd: () => {
10859
10859
  },
10860
+ onRemove: () => {
10861
+ },
10860
10862
  onChange: (evt) => events.opts?.debug && console.log(evt),
10861
10863
  onUpdate: (evt) => events.opts?.debug && console.log(evt),
10862
10864
  onUpdateStage: (evt) => events.opts?.debug && console.log(evt),
@@ -10949,31 +10951,37 @@ Author: Draggable https://draggable.io
10949
10951
  document.addEventListener(EVENT_FORMEO_ADDED_ROW, (evt) => {
10950
10952
  const { timeStamp, type, detail } = evt;
10951
10953
  const eventData = { timeStamp, type, detail };
10954
+ events.opts.onAdd(eventData);
10952
10955
  events.opts.onAddRow(eventData);
10953
10956
  });
10954
10957
  document.addEventListener(EVENT_FORMEO_ADDED_COLUMN, (evt) => {
10955
10958
  const { timeStamp, type, detail } = evt;
10956
10959
  const eventData = { timeStamp, type, detail };
10960
+ events.opts.onAdd(eventData);
10957
10961
  events.opts.onAddColumn(eventData);
10958
10962
  });
10959
10963
  document.addEventListener(EVENT_FORMEO_ADDED_FIELD, (evt) => {
10960
10964
  const { timeStamp, type, detail } = evt;
10961
10965
  const eventData = { timeStamp, type, detail };
10966
+ events.opts.onAdd(eventData);
10962
10967
  events.opts.onAddField(eventData);
10963
10968
  });
10964
10969
  document.addEventListener(EVENT_FORMEO_REMOVED_ROW, (evt) => {
10965
10970
  const { timeStamp, type, detail } = evt;
10966
10971
  const eventData = { timeStamp, type, detail };
10972
+ events.opts.onRemove(eventData);
10967
10973
  events.opts.onRemoveRow(eventData);
10968
10974
  });
10969
10975
  document.addEventListener(EVENT_FORMEO_REMOVED_COLUMN, (evt) => {
10970
10976
  const { timeStamp, type, detail } = evt;
10971
10977
  const eventData = { timeStamp, type, detail };
10978
+ events.opts.onRemove(eventData);
10972
10979
  events.opts.onRemoveColumn(eventData);
10973
10980
  });
10974
10981
  document.addEventListener(EVENT_FORMEO_REMOVED_FIELD, (evt) => {
10975
10982
  const { timeStamp, type, detail } = evt;
10976
10983
  const eventData = { timeStamp, type, detail };
10984
+ events.opts.onRemove(eventData);
10977
10985
  events.opts.onRemoveField(eventData);
10978
10986
  });
10979
10987
  document.addEventListener(EVENT_FORMEO_ON_RENDER, (evt) => {
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.0.0
4
+ Version: 5.0.1
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.0.0
4
+ Version: 5.0.1
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.0.0
4
+ Version: 5.0.1
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.0.0
4
+ Version: 5.0.1
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.0.0
4
+ Version: 5.0.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -1 +1 @@
1
- <!doctype html><html lang="en" xml:lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"><meta name="description" content="Vanilla Javascript form building module"><meta name="theme-color" content="#232323"><title>Formeo | Drag &amp; Drop Form Creation</title><script type="module" crossorigin src="/formeo/assets/js/demo.min.js"></script><link rel="stylesheet" crossorigin href="/formeo/assets/css/demo.min.css"></head><body><div class="site-wrap"><header id="demo-header"><div class="header-inner"><img id="formeo-logo" src="/formeo/assets/img/formeo-logo.svg" alt="Formeo Logo" width="100"><nav aria-label="Framework navigation"><ul><li><label for="framework-select">Framework:</label> <select name="framework-select" id="framework-select" class="form-control"><option value="vanilla">Vanilla JavaScript</option><option value="angular">Angular</option><option value="react">React</option></select></li><li><label for="locale">Language</label> <select name="locale" id="locale" class="form-control"><option value="af-ZA" dir="ltr">Afrikaans (Suid-Afrika)</option><option value="ar-TN" dir="rtl">العربية (تونس)</option><option value="cs-CZ" dir="ltr">čeština (Česko)</option><option value="de-DE" dir="ltr">Deutsch (Deutschland)</option><option value="en-US" dir="ltr">English</option><option value="es-ES" dir="ltr">español de España</option><option value="fa-IR" dir="rtl">فارسی (ایران)</option><option value="fi-FI" dir="ltr">suomi (Suomi)</option><option value="fr-FR" dir="ltr">français (France)</option><option value="he-IL" dir="rtl">עברית (ישראל)</option><option value="hi-IN" dir="ltr">हिन्दी (भारत)</option><option value="hu-HU" dir="ltr">magyar (Magyarország)</option><option value="it-IT" dir="ltr">italiano (Italia)</option><option value="ja-JP" dir="ltr">日本語 (日本)</option><option value="nb-NO" dir="ltr">norsk bokmål (Norge)</option><option value="pl-PL" dir="ltr">polski (Polska)</option><option value="pt-BR" dir="ltr">português (Brasil)</option><option value="pt-PT" dir="ltr">português europeu</option><option value="ro-RO" dir="ltr">română (România)</option><option value="ru-RU" dir="ltr">русский (Россия)</option><option value="th-TH" dir="ltr">ไทย (ไทย)</option><option value="tr-TR" dir="ltr">Türkçe (Türkiye)</option><option value="zh-CN" dir="ltr">中文(中国)</option><option value="zh-HK" dir="ltr">中文(中國香港特別行政區)</option></select></li><li><label for="control-filter">Control Filter:</label> <input id="control-filter" placeholder="ex. text" class="form-control"></li><li style="float:right">v5.0.0</li></ul></nav></div></header><section id="main_content" class="inner"><div id="framework-container"></div></section><div class="container render-btn-wrap" id="editor-action-buttons"></div><div id="formData-popover" popover><div class="popover-header"><h3>Test formData</h3><div><button type="button" id="format-json">Format</button> <button type="button" id="collapse-json">Collapse</button> <button type="button" id="copy-json">Copy to Clipboard</button></div></div><pre id="formData-editor"></pre><div class="formData-actions"><button popovertarget="formData-popover" popovertargetaction="hide" type="button">Cancel</button> <button id="submit-formData" type="button">Submit</button></div></div><footer id="demo-footer"><nav aria-label="Footer navigation"><ul><li><a href="https://github.com/Draggable/formeo" target="_blank" title="View project on GitHub"><img src="/formeo/assets/img/github.png" width="77" alt="GitHub"></a></li></ul></nav></footer></div></body></html>
1
+ <!doctype html><html lang="en" xml:lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="chrome=1"><meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1"><meta name="description" content="Vanilla Javascript form building module"><meta name="theme-color" content="#232323"><title>Formeo | Drag &amp; Drop Form Creation</title><script type="module" crossorigin src="/formeo/assets/js/demo.min.js"></script><link rel="stylesheet" crossorigin href="/formeo/assets/css/demo.min.css"></head><body><div class="site-wrap"><header id="demo-header"><div class="header-inner"><img id="formeo-logo" src="/formeo/assets/img/formeo-logo.svg" alt="Formeo Logo" width="100"><nav aria-label="Framework navigation"><ul><li><label for="framework-select">Framework:</label> <select name="framework-select" id="framework-select" class="form-control"><option value="vanilla">Vanilla JavaScript</option><option value="angular">Angular</option><option value="react">React</option></select></li><li><label for="locale">Language</label> <select name="locale" id="locale" class="form-control"><option value="af-ZA" dir="ltr">Afrikaans (Suid-Afrika)</option><option value="ar-TN" dir="rtl">العربية (تونس)</option><option value="cs-CZ" dir="ltr">čeština (Česko)</option><option value="de-DE" dir="ltr">Deutsch (Deutschland)</option><option value="en-US" dir="ltr">English</option><option value="es-ES" dir="ltr">español de España</option><option value="fa-IR" dir="rtl">فارسی (ایران)</option><option value="fi-FI" dir="ltr">suomi (Suomi)</option><option value="fr-FR" dir="ltr">français (France)</option><option value="he-IL" dir="rtl">עברית (ישראל)</option><option value="hi-IN" dir="ltr">हिन्दी (भारत)</option><option value="hu-HU" dir="ltr">magyar (Magyarország)</option><option value="it-IT" dir="ltr">italiano (Italia)</option><option value="ja-JP" dir="ltr">日本語 (日本)</option><option value="nb-NO" dir="ltr">norsk bokmål (Norge)</option><option value="pl-PL" dir="ltr">polski (Polska)</option><option value="pt-BR" dir="ltr">português (Brasil)</option><option value="pt-PT" dir="ltr">português europeu</option><option value="ro-RO" dir="ltr">română (România)</option><option value="ru-RU" dir="ltr">русский (Россия)</option><option value="th-TH" dir="ltr">ไทย (ไทย)</option><option value="tr-TR" dir="ltr">Türkçe (Türkiye)</option><option value="zh-CN" dir="ltr">中文(中国)</option><option value="zh-HK" dir="ltr">中文(中國香港特別行政區)</option></select></li><li><label for="control-filter">Control Filter:</label> <input id="control-filter" placeholder="ex. text" class="form-control"></li><li style="float:right">v5.0.1</li></ul></nav></div></header><section id="main_content" class="inner"><div id="framework-container"></div></section><div class="container render-btn-wrap" id="editor-action-buttons"></div><div id="formData-popover" popover><div class="popover-header"><h3>Test formData</h3><div><button type="button" id="format-json">Format</button> <button type="button" id="collapse-json">Collapse</button> <button type="button" id="copy-json">Copy to Clipboard</button></div></div><pre id="formData-editor"></pre><div class="formData-actions"><button popovertarget="formData-popover" popovertargetaction="hide" type="button">Cancel</button> <button id="submit-formData" type="button">Submit</button></div></div><footer id="demo-footer"><nav aria-label="Footer navigation"><ul><li><a href="https://github.com/Draggable/formeo" target="_blank" title="View project on GitHub"><img src="/formeo/assets/img/github.png" width="77" alt="GitHub"></a></li></ul></nav></footer></div></body></html>
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.0.0
4
+ Version: 5.0.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -434,7 +434,7 @@ if (window !== void 0) {
434
434
  window.SmartTooltip = SmartTooltip;
435
435
  }
436
436
  const name$1 = "formeo";
437
- const version$2 = "5.0.0";
437
+ const version$2 = "5.0.1";
438
438
  const pkg = {
439
439
  name: name$1,
440
440
  version: version$2
@@ -1206,9 +1206,9 @@ var hasRequired_cloneBuffer;
1206
1206
  function require_cloneBuffer() {
1207
1207
  if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
1208
1208
  hasRequired_cloneBuffer = 1;
1209
- (function(module2, exports2) {
1209
+ (function(module2, exports$1) {
1210
1210
  var root = require_root();
1211
- var freeExports = exports2 && !exports2.nodeType && exports2;
1211
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1212
1212
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1213
1213
  var moduleExports = freeModule && freeModule.exports === freeExports;
1214
1214
  var Buffer = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
@@ -1454,9 +1454,9 @@ var hasRequiredIsBuffer;
1454
1454
  function requireIsBuffer() {
1455
1455
  if (hasRequiredIsBuffer) return isBuffer.exports;
1456
1456
  hasRequiredIsBuffer = 1;
1457
- (function(module2, exports2) {
1457
+ (function(module2, exports$1) {
1458
1458
  var root = require_root(), stubFalse = requireStubFalse();
1459
- var freeExports = exports2 && !exports2.nodeType && exports2;
1459
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1460
1460
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1461
1461
  var moduleExports = freeModule && freeModule.exports === freeExports;
1462
1462
  var Buffer = moduleExports ? root.Buffer : void 0;
@@ -1527,9 +1527,9 @@ var hasRequired_nodeUtil;
1527
1527
  function require_nodeUtil() {
1528
1528
  if (hasRequired_nodeUtil) return _nodeUtil.exports;
1529
1529
  hasRequired_nodeUtil = 1;
1530
- (function(module2, exports2) {
1530
+ (function(module2, exports$1) {
1531
1531
  var freeGlobal = require_freeGlobal();
1532
- var freeExports = exports2 && !exports2.nodeType && exports2;
1532
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1533
1533
  var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
1534
1534
  var moduleExports = freeModule && freeModule.exports === freeExports;
1535
1535
  var freeProcess = moduleExports && freeGlobal.process;
@@ -10063,12 +10063,12 @@ class Control {
10063
10063
  // will auto navigated between the groups
10064
10064
  focus: ({ target }) => {
10065
10065
  const group = target.closest(`.${CONTROL_GROUP_CLASSNAME}`);
10066
- return group && Controls$2.panels.nav.refresh(indexOfNode(group));
10066
+ return group && Controls$1.panels.nav.refresh(indexOfNode(group));
10067
10067
  },
10068
10068
  click: ({ target }) => {
10069
10069
  const controlId = target.closest(".field-control")?.id;
10070
10070
  if (controlId) {
10071
- Controls$2.addElement(controlId);
10071
+ Controls$1.addElement(controlId);
10072
10072
  }
10073
10073
  }
10074
10074
  }
@@ -10130,7 +10130,7 @@ const defaultOptions = Object.freeze({
10130
10130
  container: null,
10131
10131
  panels: { displayType: "slider" }
10132
10132
  });
10133
- let Controls$1 = class Controls {
10133
+ let Controls$2 = class Controls {
10134
10134
  constructor() {
10135
10135
  this.data = /* @__PURE__ */ new Map();
10136
10136
  this.buttonActions = {
@@ -10440,11 +10440,11 @@ let Controls$1 = class Controls {
10440
10440
  return Promise.all(this.registerControls([...allControls, ...elements]));
10441
10441
  };
10442
10442
  };
10443
- const Controls$2 = new Controls$1();
10443
+ const Controls$1 = new Controls$2();
10444
10444
  const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10445
10445
  __proto__: null,
10446
- Controls: Controls$1,
10447
- default: Controls$2
10446
+ Controls: Controls$2,
10447
+ default: Controls$1
10448
10448
  }, Symbol.toStringTag, { value: "Module" }));
10449
10449
  const checkableTypes = /* @__PURE__ */ new Set(["checkbox", "radio"]);
10450
10450
  const isSelectableType = /* @__PURE__ */ new Set(["radio", "checkbox", "select-one", "select-multiple"]);
@@ -10672,7 +10672,7 @@ let Fields$1 = class Fields extends ComponentData {
10672
10672
  get = (path) => {
10673
10673
  let found = path && get(this.data, path);
10674
10674
  if (!found) {
10675
- const control = Controls$2.get(path);
10675
+ const control = Controls$1.get(path);
10676
10676
  if (control) {
10677
10677
  found = this.add(null, control.controlData);
10678
10678
  }
@@ -10714,7 +10714,7 @@ const Stages2 = stages;
10714
10714
  const Rows2 = rows;
10715
10715
  const Columns2 = columns;
10716
10716
  const Fields2 = fields;
10717
- const Controls2 = Controls$2;
10717
+ const Controls2 = Controls$1;
10718
10718
  const getFormData = (formData, useSessionStorage = false) => {
10719
10719
  if (formData !== void 0 && formData !== null) {
10720
10720
  const parsed = parseData(formData);
@@ -10855,6 +10855,8 @@ const defaults$1 = {
10855
10855
  },
10856
10856
  onAdd: () => {
10857
10857
  },
10858
+ onRemove: () => {
10859
+ },
10858
10860
  onChange: (evt) => events.opts?.debug && console.log(evt),
10859
10861
  onUpdate: (evt) => events.opts?.debug && console.log(evt),
10860
10862
  onUpdateStage: (evt) => events.opts?.debug && console.log(evt),
@@ -10947,31 +10949,37 @@ document.addEventListener(EVENT_FORMEO_UPDATED_FIELD, (evt) => {
10947
10949
  document.addEventListener(EVENT_FORMEO_ADDED_ROW, (evt) => {
10948
10950
  const { timeStamp, type, detail } = evt;
10949
10951
  const eventData = { timeStamp, type, detail };
10952
+ events.opts.onAdd(eventData);
10950
10953
  events.opts.onAddRow(eventData);
10951
10954
  });
10952
10955
  document.addEventListener(EVENT_FORMEO_ADDED_COLUMN, (evt) => {
10953
10956
  const { timeStamp, type, detail } = evt;
10954
10957
  const eventData = { timeStamp, type, detail };
10958
+ events.opts.onAdd(eventData);
10955
10959
  events.opts.onAddColumn(eventData);
10956
10960
  });
10957
10961
  document.addEventListener(EVENT_FORMEO_ADDED_FIELD, (evt) => {
10958
10962
  const { timeStamp, type, detail } = evt;
10959
10963
  const eventData = { timeStamp, type, detail };
10964
+ events.opts.onAdd(eventData);
10960
10965
  events.opts.onAddField(eventData);
10961
10966
  });
10962
10967
  document.addEventListener(EVENT_FORMEO_REMOVED_ROW, (evt) => {
10963
10968
  const { timeStamp, type, detail } = evt;
10964
10969
  const eventData = { timeStamp, type, detail };
10970
+ events.opts.onRemove(eventData);
10965
10971
  events.opts.onRemoveRow(eventData);
10966
10972
  });
10967
10973
  document.addEventListener(EVENT_FORMEO_REMOVED_COLUMN, (evt) => {
10968
10974
  const { timeStamp, type, detail } = evt;
10969
10975
  const eventData = { timeStamp, type, detail };
10976
+ events.opts.onRemove(eventData);
10970
10977
  events.opts.onRemoveColumn(eventData);
10971
10978
  });
10972
10979
  document.addEventListener(EVENT_FORMEO_REMOVED_FIELD, (evt) => {
10973
10980
  const { timeStamp, type, detail } = evt;
10974
10981
  const eventData = { timeStamp, type, detail };
10982
+ events.opts.onRemove(eventData);
10975
10983
  events.opts.onRemoveField(eventData);
10976
10984
  });
10977
10985
  document.addEventListener(EVENT_FORMEO_ON_RENDER, (evt) => {
@@ -11243,7 +11251,7 @@ let FormeoEditor$1 = class FormeoEditor {
11243
11251
  return this.#refreshUI();
11244
11252
  }
11245
11253
  this.#initState = INIT_STATES.INITIALIZING;
11246
- this.#initPromise = Controls$2.init(this.opts.controls, this.opts.stickyControls).then((controls) => {
11254
+ this.#initPromise = Controls$1.init(this.opts.controls, this.opts.stickyControls).then((controls) => {
11247
11255
  this.controls = controls;
11248
11256
  if (!this.#dataLoadedOnce) {
11249
11257
  this.#loadInitialData();
@@ -11280,7 +11288,7 @@ let FormeoEditor$1 = class FormeoEditor {
11280
11288
  * @return {Promise}
11281
11289
  */
11282
11290
  async #refreshUI() {
11283
- this.controls = await Controls$2.init(this.opts.controls, this.opts.stickyControls);
11291
+ this.controls = await Controls$1.init(this.opts.controls, this.opts.stickyControls);
11284
11292
  this.render();
11285
11293
  return this;
11286
11294
  }
package/dist/formeo.css CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.0.0
4
+ Version: 5.0.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
package/dist/formeo.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 5.0.0
4
+ Version: 5.0.1
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -432,7 +432,7 @@ if (window !== void 0) {
432
432
  window.SmartTooltip = SmartTooltip;
433
433
  }
434
434
  const name$1 = "formeo";
435
- const version$2 = "5.0.0";
435
+ const version$2 = "5.0.1";
436
436
  const pkg = {
437
437
  name: name$1,
438
438
  version: version$2
@@ -1204,9 +1204,9 @@ var hasRequired_cloneBuffer;
1204
1204
  function require_cloneBuffer() {
1205
1205
  if (hasRequired_cloneBuffer) return _cloneBuffer.exports;
1206
1206
  hasRequired_cloneBuffer = 1;
1207
- (function(module, exports) {
1207
+ (function(module, exports$1) {
1208
1208
  var root = require_root();
1209
- var freeExports = exports && !exports.nodeType && exports;
1209
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1210
1210
  var freeModule = freeExports && true && module && !module.nodeType && module;
1211
1211
  var moduleExports = freeModule && freeModule.exports === freeExports;
1212
1212
  var Buffer = moduleExports ? root.Buffer : void 0, allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
@@ -1452,9 +1452,9 @@ var hasRequiredIsBuffer;
1452
1452
  function requireIsBuffer() {
1453
1453
  if (hasRequiredIsBuffer) return isBuffer.exports;
1454
1454
  hasRequiredIsBuffer = 1;
1455
- (function(module, exports) {
1455
+ (function(module, exports$1) {
1456
1456
  var root = require_root(), stubFalse = requireStubFalse();
1457
- var freeExports = exports && !exports.nodeType && exports;
1457
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1458
1458
  var freeModule = freeExports && true && module && !module.nodeType && module;
1459
1459
  var moduleExports = freeModule && freeModule.exports === freeExports;
1460
1460
  var Buffer = moduleExports ? root.Buffer : void 0;
@@ -1525,9 +1525,9 @@ var hasRequired_nodeUtil;
1525
1525
  function require_nodeUtil() {
1526
1526
  if (hasRequired_nodeUtil) return _nodeUtil.exports;
1527
1527
  hasRequired_nodeUtil = 1;
1528
- (function(module, exports) {
1528
+ (function(module, exports$1) {
1529
1529
  var freeGlobal = require_freeGlobal();
1530
- var freeExports = exports && !exports.nodeType && exports;
1530
+ var freeExports = exports$1 && !exports$1.nodeType && exports$1;
1531
1531
  var freeModule = freeExports && true && module && !module.nodeType && module;
1532
1532
  var moduleExports = freeModule && freeModule.exports === freeExports;
1533
1533
  var freeProcess = moduleExports && freeGlobal.process;
@@ -10853,6 +10853,8 @@ const defaults$1 = {
10853
10853
  },
10854
10854
  onAdd: () => {
10855
10855
  },
10856
+ onRemove: () => {
10857
+ },
10856
10858
  onChange: (evt) => events.opts?.debug && console.log(evt),
10857
10859
  onUpdate: (evt) => events.opts?.debug && console.log(evt),
10858
10860
  onUpdateStage: (evt) => events.opts?.debug && console.log(evt),
@@ -10945,31 +10947,37 @@ document.addEventListener(EVENT_FORMEO_UPDATED_FIELD, (evt) => {
10945
10947
  document.addEventListener(EVENT_FORMEO_ADDED_ROW, (evt) => {
10946
10948
  const { timeStamp, type, detail } = evt;
10947
10949
  const eventData = { timeStamp, type, detail };
10950
+ events.opts.onAdd(eventData);
10948
10951
  events.opts.onAddRow(eventData);
10949
10952
  });
10950
10953
  document.addEventListener(EVENT_FORMEO_ADDED_COLUMN, (evt) => {
10951
10954
  const { timeStamp, type, detail } = evt;
10952
10955
  const eventData = { timeStamp, type, detail };
10956
+ events.opts.onAdd(eventData);
10953
10957
  events.opts.onAddColumn(eventData);
10954
10958
  });
10955
10959
  document.addEventListener(EVENT_FORMEO_ADDED_FIELD, (evt) => {
10956
10960
  const { timeStamp, type, detail } = evt;
10957
10961
  const eventData = { timeStamp, type, detail };
10962
+ events.opts.onAdd(eventData);
10958
10963
  events.opts.onAddField(eventData);
10959
10964
  });
10960
10965
  document.addEventListener(EVENT_FORMEO_REMOVED_ROW, (evt) => {
10961
10966
  const { timeStamp, type, detail } = evt;
10962
10967
  const eventData = { timeStamp, type, detail };
10968
+ events.opts.onRemove(eventData);
10963
10969
  events.opts.onRemoveRow(eventData);
10964
10970
  });
10965
10971
  document.addEventListener(EVENT_FORMEO_REMOVED_COLUMN, (evt) => {
10966
10972
  const { timeStamp, type, detail } = evt;
10967
10973
  const eventData = { timeStamp, type, detail };
10974
+ events.opts.onRemove(eventData);
10968
10975
  events.opts.onRemoveColumn(eventData);
10969
10976
  });
10970
10977
  document.addEventListener(EVENT_FORMEO_REMOVED_FIELD, (evt) => {
10971
10978
  const { timeStamp, type, detail } = evt;
10972
10979
  const eventData = { timeStamp, type, detail };
10980
+ events.opts.onRemove(eventData);
10973
10981
  events.opts.onRemoveField(eventData);
10974
10982
  });
10975
10983
  document.addEventListener(EVENT_FORMEO_ON_RENDER, (evt) => {