@formio/js 5.0.0-rc.72 → 5.0.0-rc.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/formio.embed.js +1 -1
  2. package/dist/formio.embed.min.js +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.js +9 -9
  5. package/dist/formio.form.min.js +1 -1
  6. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  7. package/dist/formio.full.js +10 -10
  8. package/dist/formio.full.min.js +1 -1
  9. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  10. package/dist/formio.js +4 -4
  11. package/dist/formio.min.js +1 -1
  12. package/dist/formio.min.js.LICENSE.txt +1 -1
  13. package/dist/formio.utils.js +1 -1
  14. package/dist/formio.utils.min.js +1 -1
  15. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  16. package/lib/cjs/CDN.js +1 -2
  17. package/lib/cjs/Form.js +2 -2
  18. package/lib/cjs/Wizard.js +1 -1
  19. package/lib/cjs/components/day/Day.d.ts +2 -2
  20. package/lib/cjs/components/day/Day.js +3 -3
  21. package/lib/cjs/components/form/fixtures/index.d.ts +2 -1
  22. package/lib/cjs/components/form/fixtures/index.js +3 -1
  23. package/lib/cjs/components/form/fixtures/nestedWizardForm.d.ts +771 -0
  24. package/lib/cjs/components/form/fixtures/nestedWizardForm.js +765 -0
  25. package/lib/cjs/components/time/Time.form.js +2 -2
  26. package/lib/cjs/templates/Templates.js +1 -1
  27. package/lib/cjs/translations/en.d.ts +1 -0
  28. package/lib/cjs/translations/en.js +1 -0
  29. package/lib/mjs/CDN.js +1 -2
  30. package/lib/mjs/Form.js +2 -2
  31. package/lib/mjs/Wizard.js +1 -1
  32. package/lib/mjs/components/day/Day.d.ts +2 -2
  33. package/lib/mjs/components/day/Day.js +3 -3
  34. package/lib/mjs/components/form/fixtures/index.d.ts +2 -1
  35. package/lib/mjs/components/form/fixtures/index.js +2 -1
  36. package/lib/mjs/components/form/fixtures/nestedWizardForm.d.ts +771 -0
  37. package/lib/mjs/components/form/fixtures/nestedWizardForm.js +763 -0
  38. package/lib/mjs/components/time/Time.form.js +2 -2
  39. package/lib/mjs/templates/Templates.js +1 -1
  40. package/lib/mjs/translations/en.d.ts +1 -0
  41. package/lib/mjs/translations/en.js +1 -0
  42. package/package.json +2 -2
@@ -20,7 +20,7 @@
20
20
 
21
21
  /*! @license DOMPurify 3.1.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.5/LICENSE */
22
22
 
23
- /*! formiojs v5.0.0-rc.72 | https://unpkg.com/formiojs@5.0.0-rc.72/LICENSE.txt */
23
+ /*! formiojs v5.0.0-rc.74 | https://unpkg.com/formiojs@5.0.0-rc.74/LICENSE.txt */
24
24
 
25
25
  /**
26
26
  * @license
package/lib/cjs/CDN.js CHANGED
@@ -63,8 +63,7 @@ class CDN {
63
63
  url += `/${lib}`;
64
64
  }
65
65
  // Only attach the version if this is the hosted cdn.
66
- if (cdnUrl.includes('form.io') &&
67
- version && version !== 'latest') {
66
+ if (cdnUrl.match(/cdn\.(test-)?form.io/) && version && version !== 'latest') {
68
67
  url += `/${version}`;
69
68
  }
70
69
  return url;
package/lib/cjs/Form.js CHANGED
@@ -65,13 +65,13 @@ class Form extends Element_1.default {
65
65
  else {
66
66
  this.element = null;
67
67
  }
68
+ this.options = formOptions;
69
+ this.options.events = this.events;
68
70
  if (form) {
69
71
  this.setForm(form)
70
72
  .then(() => this.readyResolve(this.instance))
71
73
  .catch(this.readyReject);
72
74
  }
73
- this.options = formOptions;
74
- this.options.events = this.events;
75
75
  this.display = '';
76
76
  }
77
77
  createElement(tag, attrs, children) {
package/lib/cjs/Wizard.js CHANGED
@@ -18,7 +18,7 @@ class Wizard extends Webform_1.default {
18
18
  */
19
19
  constructor(elementOrOptions = undefined, _options = undefined) {
20
20
  let element, options;
21
- if (elementOrOptions instanceof HTMLElement || options) {
21
+ if (elementOrOptions instanceof HTMLElement || _options) {
22
22
  element = elementOrOptions;
23
23
  options = _options || {};
24
24
  }
@@ -17,9 +17,9 @@ export default class DayComponent extends Field {
17
17
  constructor(component: any, options: any, data: any);
18
18
  /**
19
19
  * The empty value for day component.
20
- * @returns {'00/00/0000'} - The empty value of the day component.
20
+ * @returns {''} - The empty value of the day component.
21
21
  */
22
- get emptyValue(): "00/00/0000";
22
+ get emptyValue(): "";
23
23
  get valueMask(): RegExp;
24
24
  get dayRequired(): any;
25
25
  get showDay(): boolean;
@@ -64,10 +64,10 @@ class DayComponent extends Field_1.default {
64
64
  }
65
65
  /**
66
66
  * The empty value for day component.
67
- * @returns {'00/00/0000'} - The empty value of the day component.
67
+ * @returns {''} - The empty value of the day component.
68
68
  */
69
69
  get emptyValue() {
70
- return '00/00/0000';
70
+ return '';
71
71
  }
72
72
  get valueMask() {
73
73
  return /^\d{2}\/\d{2}\/\d{4}$/;
@@ -363,7 +363,7 @@ class DayComponent extends Field_1.default {
363
363
  setValueAt(index, value) {
364
364
  // temporary solution to avoid input reset
365
365
  // on invalid date.
366
- if (!value || value === 'Invalid date') {
366
+ if (value === 'Invalid date') {
367
367
  return null;
368
368
  }
369
369
  const parts = value.split('/');
@@ -7,4 +7,5 @@ import comp5 from './comp5';
7
7
  import comp6 from './comp6';
8
8
  import comp7 from './comp7';
9
9
  import comp8 from './comp8';
10
- export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8 };
10
+ import nestedWizardForm from './nestedWizardForm';
11
+ export { formModalEdit, comp1, comp2, comp3, comp4, comp5, comp6, comp7, comp8, nestedWizardForm };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
6
+ exports.nestedWizardForm = exports.comp8 = exports.comp7 = exports.comp6 = exports.comp5 = exports.comp4 = exports.comp3 = exports.comp2 = exports.comp1 = exports.formModalEdit = void 0;
7
7
  const formModalEdit_1 = __importDefault(require("./formModalEdit"));
8
8
  exports.formModalEdit = formModalEdit_1.default;
9
9
  const comp1_1 = __importDefault(require("./comp1"));
@@ -22,3 +22,5 @@ const comp7_1 = __importDefault(require("./comp7"));
22
22
  exports.comp7 = comp7_1.default;
23
23
  const comp8_1 = __importDefault(require("./comp8"));
24
24
  exports.comp8 = comp8_1.default;
25
+ const nestedWizardForm_1 = __importDefault(require("./nestedWizardForm"));
26
+ exports.nestedWizardForm = nestedWizardForm_1.default;