@formio/js 5.0.0-rc.21 → 5.0.0-rc.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/dist/formio.builder.css +2 -0
  2. package/dist/formio.builder.min.css +1 -1
  3. package/dist/formio.embed.min.js.LICENSE.txt +1 -1
  4. package/dist/formio.form.css +2 -0
  5. package/dist/formio.form.js +12 -12
  6. package/dist/formio.form.min.css +1 -1
  7. package/dist/formio.form.min.js +1 -1
  8. package/dist/formio.form.min.js.LICENSE.txt +1 -1
  9. package/dist/formio.full.css +2 -0
  10. package/dist/formio.full.js +12 -12
  11. package/dist/formio.full.min.css +1 -1
  12. package/dist/formio.full.min.js +1 -1
  13. package/dist/formio.full.min.js.LICENSE.txt +1 -1
  14. package/dist/formio.js +1 -1
  15. package/dist/formio.min.js +1 -1
  16. package/dist/formio.min.js.LICENSE.txt +1 -1
  17. package/dist/formio.utils.js +1 -1
  18. package/dist/formio.utils.min.js.LICENSE.txt +1 -1
  19. package/lib/cjs/Element.js +5 -0
  20. package/lib/cjs/components/_classes/component/Component.js +3 -3
  21. package/lib/cjs/components/_classes/field/Field.d.ts +1 -0
  22. package/lib/cjs/components/_classes/field/Field.js +14 -0
  23. package/lib/cjs/components/_classes/multivalue/Multivalue.d.ts +0 -1
  24. package/lib/cjs/components/_classes/multivalue/Multivalue.js +0 -14
  25. package/lib/cjs/components/day/Day.d.ts +0 -1
  26. package/lib/cjs/components/day/Day.js +35 -11
  27. package/lib/cjs/components/day/fixtures/comp5.d.ts +29 -0
  28. package/lib/cjs/components/day/fixtures/comp5.js +32 -0
  29. package/lib/cjs/components/day/fixtures/comp6.d.ts +81 -0
  30. package/lib/cjs/components/day/fixtures/comp6.js +76 -0
  31. package/lib/cjs/components/day/fixtures/index.d.ts +3 -1
  32. package/lib/cjs/components/day/fixtures/index.js +5 -1
  33. package/lib/cjs/components/form/Form.js +2 -1
  34. package/lib/cjs/components/select/Select.js +2 -1
  35. package/lib/cjs/components/select/fixtures/comp19.d.ts +23 -0
  36. package/lib/cjs/components/select/fixtures/comp19.js +36 -0
  37. package/lib/cjs/components/select/fixtures/index.d.ts +2 -1
  38. package/lib/cjs/components/select/fixtures/index.js +3 -1
  39. package/lib/cjs/components/tags/Tags.js +2 -0
  40. package/lib/cjs/components/tags/fixtures/comp6.d.ts +17 -0
  41. package/lib/cjs/components/tags/fixtures/comp6.js +20 -0
  42. package/lib/cjs/components/tags/fixtures/index.d.ts +2 -1
  43. package/lib/cjs/components/tags/fixtures/index.js +3 -1
  44. package/lib/cjs/utils/utils.js +3 -3
  45. package/lib/mjs/Element.js +5 -0
  46. package/lib/mjs/components/_classes/component/Component.js +3 -3
  47. package/lib/mjs/components/_classes/field/Field.d.ts +1 -0
  48. package/lib/mjs/components/_classes/field/Field.js +13 -0
  49. package/lib/mjs/components/_classes/multivalue/Multivalue.d.ts +0 -1
  50. package/lib/mjs/components/_classes/multivalue/Multivalue.js +0 -13
  51. package/lib/mjs/components/day/Day.d.ts +0 -1
  52. package/lib/mjs/components/day/Day.js +34 -11
  53. package/lib/mjs/components/day/fixtures/comp5.d.ts +29 -0
  54. package/lib/mjs/components/day/fixtures/comp5.js +30 -0
  55. package/lib/mjs/components/day/fixtures/comp6.d.ts +81 -0
  56. package/lib/mjs/components/day/fixtures/comp6.js +74 -0
  57. package/lib/mjs/components/day/fixtures/index.d.ts +3 -1
  58. package/lib/mjs/components/day/fixtures/index.js +3 -1
  59. package/lib/mjs/components/form/Form.js +2 -1
  60. package/lib/mjs/components/select/Select.js +2 -1
  61. package/lib/mjs/components/select/fixtures/comp19.d.ts +23 -0
  62. package/lib/mjs/components/select/fixtures/comp19.js +34 -0
  63. package/lib/mjs/components/select/fixtures/index.d.ts +2 -1
  64. package/lib/mjs/components/select/fixtures/index.js +2 -1
  65. package/lib/mjs/components/tags/Tags.js +2 -0
  66. package/lib/mjs/components/tags/fixtures/comp6.d.ts +17 -0
  67. package/lib/mjs/components/tags/fixtures/comp6.js +18 -0
  68. package/lib/mjs/components/tags/fixtures/index.d.ts +2 -1
  69. package/lib/mjs/components/tags/fixtures/index.js +2 -1
  70. package/lib/mjs/utils/utils.js +3 -3
  71. package/package.json +2 -2
@@ -19,7 +19,7 @@
19
19
 
20
20
  /*! @license DOMPurify 3.0.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.0.5/LICENSE */
21
21
 
22
- /*! formiojs v5.0.0-rc.21 | https://unpkg.com/formiojs@5.0.0-rc.21/LICENSE.txt */
22
+ /*! formiojs v5.0.0-rc.23 | https://unpkg.com/formiojs@5.0.0-rc.23/LICENSE.txt */
23
23
 
24
24
  /**
25
25
  * @license
package/dist/formio.js CHANGED
@@ -2740,7 +2740,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
2740
2740
  /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2741
2741
 
2742
2742
  "use strict";
2743
- eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Formio = void 0;\nconst core_1 = __webpack_require__(/*! @formio/core */ \"./node_modules/@formio/core/lib/index.js\");\nObject.defineProperty(exports, \"Formio\", ({ enumerable: true, get: function () { return core_1.Formio; } }));\nconst CDN_1 = __importDefault(__webpack_require__(/*! ./CDN */ \"./lib/cjs/CDN.js\"));\nconst providers_1 = __importDefault(__webpack_require__(/*! ./providers */ \"./lib/cjs/providers/index.js\"));\ncore_1.Formio.cdn = new CDN_1.default();\ncore_1.Formio.Providers = providers_1.default;\ncore_1.Formio.version = '5.0.0-rc.21';\nconst isNil = (val) => val === null || val === undefined;\ncore_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, uploadStartCallback, abortCallback) {\n const requestArgs = {\n provider: storage,\n method: 'upload',\n file: file,\n fileName: fileName,\n dir: dir\n };\n fileKey = fileKey || 'file';\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', storage);\n if (Provider) {\n const provider = new Provider(this);\n if (uploadStartCallback) {\n uploadStartCallback();\n }\n return provider.uploadFile(file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, abortCallback);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\ncore_1.Formio.prototype.downloadFile = function (file, options) {\n const requestArgs = {\n method: 'download',\n file: file\n };\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (file.storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', file.storage);\n if (Provider) {\n const provider = new Provider(this);\n return provider.downloadFile(file, options);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\ncore_1.Formio.prototype.deleteFile = function (file, options) {\n const requestArgs = {\n method: 'delete',\n file: file\n };\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (file.storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', file.storage);\n if (Provider) {\n const provider = new Provider(this);\n return provider.deleteFile(file, options);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\n// For reverse compatability.\ncore_1.Formio.Promise = Promise;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/Formio.js?");
2743
+ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.Formio = void 0;\nconst core_1 = __webpack_require__(/*! @formio/core */ \"./node_modules/@formio/core/lib/index.js\");\nObject.defineProperty(exports, \"Formio\", ({ enumerable: true, get: function () { return core_1.Formio; } }));\nconst CDN_1 = __importDefault(__webpack_require__(/*! ./CDN */ \"./lib/cjs/CDN.js\"));\nconst providers_1 = __importDefault(__webpack_require__(/*! ./providers */ \"./lib/cjs/providers/index.js\"));\ncore_1.Formio.cdn = new CDN_1.default();\ncore_1.Formio.Providers = providers_1.default;\ncore_1.Formio.version = '5.0.0-rc.23';\nconst isNil = (val) => val === null || val === undefined;\ncore_1.Formio.prototype.uploadFile = function (storage, file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, uploadStartCallback, abortCallback) {\n const requestArgs = {\n provider: storage,\n method: 'upload',\n file: file,\n fileName: fileName,\n dir: dir\n };\n fileKey = fileKey || 'file';\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', storage);\n if (Provider) {\n const provider = new Provider(this);\n if (uploadStartCallback) {\n uploadStartCallback();\n }\n return provider.uploadFile(file, fileName, dir, progressCallback, url, options, fileKey, groupPermissions, groupId, abortCallback);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\ncore_1.Formio.prototype.downloadFile = function (file, options) {\n const requestArgs = {\n method: 'download',\n file: file\n };\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (file.storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', file.storage);\n if (Provider) {\n const provider = new Provider(this);\n return provider.downloadFile(file, options);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\ncore_1.Formio.prototype.deleteFile = function (file, options) {\n const requestArgs = {\n method: 'delete',\n file: file\n };\n const request = core_1.Formio.pluginWait('preRequest', requestArgs)\n .then(() => {\n return core_1.Formio.pluginGet('fileRequest', requestArgs)\n .then((result) => {\n if (file.storage && isNil(result)) {\n const Provider = providers_1.default.getProvider('storage', file.storage);\n if (Provider) {\n const provider = new Provider(this);\n return provider.deleteFile(file, options);\n }\n else {\n throw ('Storage provider not found');\n }\n }\n return result || { url: '' };\n });\n });\n return core_1.Formio.pluginAlter('wrapFileRequestPromise', request, requestArgs);\n};\n// For reverse compatability.\ncore_1.Formio.Promise = Promise;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/Formio.js?");
2744
2744
 
2745
2745
  /***/ })
2746
2746