@formio/js 5.0.0-rc.24 → 5.0.0-rc.25
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/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +2 -2
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +2 -2
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +1 -1
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! formiojs v5.0.0-rc.
|
|
1
|
+
/*! formiojs v5.0.0-rc.25 | https://unpkg.com/formiojs@5.0.0-rc.25/LICENSE.txt */
|
package/dist/formio.form.js
CHANGED
|
@@ -7609,7 +7609,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\ncons
|
|
|
7609
7609
|
\***************************************************************************************/
|
|
7610
7610
|
/***/ (function(__unused_webpack_module, exports) {
|
|
7611
7611
|
|
|
7612
|
-
eval("Object.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports[\"default\"]=function(ctx) {\nvar __t, __p = '', __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n__p += '<div\\n class=\"form-radio radio\"\\n ref=\"radioGroup\"\\n role=\"' +\n((__t = (ctx.component.type === 'selectboxes' ? 'group' : 'radiogroup')) == null ? '' : __t) +\n'\"\\n aria-required=\"' +\n((__t = (ctx.input.component.validate.required)) == null ? '' : __t) +\n'\"\\n aria-labelledby=\"l-' +\n((__t = (ctx.instance.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.component.key)) == null ? '' : __t) +\n'\"\\n ';\n if (ctx.component.description) { ;\n__p += '\\n aria-describedby=\"d-' +\n((__t = (ctx.instance.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.component.key)) == null ? '' : __t) +\n'\"\\n ';\n } ;\n__p += '\\n>\\n ';\n ctx.values.forEach(function(item) { ;\n__p += '\\n <div class=\"' +\n((__t = (ctx.input.attr.type)) == null ? '' : __t) +\n' ' +\n((__t = ( ctx.component.optionsLabelPosition && ctx.component.optionsLabelPosition !== 'right' ? 'ps-0' : '')) == null ? '' : __t) +\n' form-check' +\n((__t = (ctx.inline ? '-inline' : '')) == null ? '' : __t) +\n'\" ref=\"wrapper\">\\n ';\n if (['left', 'top'].includes(ctx.component.optionsLabelPosition)) { ;\n__p += '\\n <label class=\"form-check-label label-position-' +\n((__t = ( ctx.component.optionsLabelPosition )) == null ? '' : __t) +\n'\" for=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = (item.value)) == null ? '' : __t) +\n'\"><span>' +\n((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +\n'</span></label>\\n ';\n } ;\n__p += '\\n <' +\n((__t = (ctx.input.type)) == null ? '' : __t) +\n'\\n ref=\"input\"\\n ';\n for (var attr in ctx.input.attr) { ;\n__p += '\\n ' +\n((__t = (attr)) == null ? '' : __t) +\n'=\"' +\n((__t = (ctx.input.attr[attr])) == null ? '' : __t) +\n'\"\\n ';\n } ;\n__p += '\\n value=\"' +\n((__t = (item.value)) == null ? '' : __t) +\n'\"\\n ';\n if (ctx.value && (ctx.value === item.value || (typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value]))) { ;\n__p += '\\n checked=true\\n ';\n } ;\n__p += '\\n ';\n if (item.disabled) { ;\n__p += '\\n disabled=true\\n ';\n } ;\n__p += '\\n id=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = (item.value)) == null ? '' : __t) +\n'\"\\n role=\"' +\n((__t = (ctx.component.type === 'selectboxes' ? 'checkbox' : 'radio')) == null ? '' : __t) +\n'\"\\n >\\n ';\n if (!ctx.component.optionsLabelPosition || ['right', 'bottom'].includes(ctx.component.optionsLabelPosition)) { ;\n__p += '\\n <label class=\"form-check-label label-position-' +\n((__t = ( ctx.component.optionsLabelPosition )) == null ? '' : __t) +\n'\" for=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = (item.value)) == null ? '' : __t) +\n'\"><span>' +\n((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +\n'</span></label>\\n ';\n } ;\n__p += '\\n </div>\\n ';\n }) ;\n__p += '\\n</div>\\n';\nreturn __p\n}\n\n//# sourceURL=webpack://Formio/./node_modules/@formio/bootstrap/lib/cjs/templates/bootstrap5/radio/form.ejs.js?");
|
|
7612
|
+
eval("Object.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nexports[\"default\"]=function(ctx) {\nvar __t, __p = '', __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n__p += '<div\\n class=\"form-radio radio\"\\n ref=\"radioGroup\"\\n role=\"' +\n((__t = (ctx.component.type === 'selectboxes' ? 'group' : 'radiogroup')) == null ? '' : __t) +\n'\"\\n aria-required=\"' +\n((__t = (ctx.input.component.validate.required)) == null ? '' : __t) +\n'\"\\n aria-labelledby=\"l-' +\n((__t = (ctx.instance.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.component.key)) == null ? '' : __t) +\n'\"\\n ';\n if (ctx.component.description) { ;\n__p += '\\n aria-describedby=\"d-' +\n((__t = (ctx.instance.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.component.key)) == null ? '' : __t) +\n'\"\\n ';\n } ;\n__p += '\\n>\\n ';\n ctx.values.forEach(function(item, index) { ;\n__p += '\\n <div class=\"' +\n((__t = (ctx.input.attr.type)) == null ? '' : __t) +\n' ' +\n((__t = ( ctx.component.optionsLabelPosition && ctx.component.optionsLabelPosition !== 'right' ? 'ps-0' : '')) == null ? '' : __t) +\n' form-check' +\n((__t = (ctx.inline ? '-inline' : '')) == null ? '' : __t) +\n'\" ref=\"wrapper\">\\n ';\n if (['left', 'top'].includes(ctx.component.optionsLabelPosition)) { ;\n__p += '\\n <label class=\"form-check-label label-position-' +\n((__t = ( ctx.component.optionsLabelPosition )) == null ? '' : __t) +\n'\" for=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = ((typeof item.value === 'object') ? item.value + '-' + index : item.value)) == null ? '' : __t) +\n'\"><span>' +\n((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +\n'</span></label>\\n ';\n } ;\n__p += '\\n <' +\n((__t = (ctx.input.type)) == null ? '' : __t) +\n'\\n ref=\"input\"\\n ';\n for (var attr in ctx.input.attr) { ;\n__p += '\\n ' +\n((__t = (attr)) == null ? '' : __t) +\n'=\"' +\n((__t = (ctx.input.attr[attr])) == null ? '' : __t) +\n'\"\\n ';\n } ;\n__p += '\\n value=\"' +\n((__t = (item.value)) == null ? '' : __t) +\n'\"\\n ';\n if (ctx.value && (ctx.value === item.value || (typeof ctx.value === 'object' && ctx.value.hasOwnProperty(item.value) && ctx.value[item.value]))) { ;\n__p += '\\n checked=true\\n ';\n } ;\n__p += '\\n ';\n if (item.disabled) { ;\n__p += '\\n disabled=true\\n ';\n } ;\n__p += '\\n id=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = ((typeof item.value === 'object') ? item.value + '-' + index : item.value)) == null ? '' : __t) +\n'\"\\n role=\"' +\n((__t = (ctx.component.type === 'selectboxes' ? 'checkbox' : 'radio')) == null ? '' : __t) +\n'\"\\n >\\n ';\n if (!ctx.component.optionsLabelPosition || ['right', 'bottom'].includes(ctx.component.optionsLabelPosition)) { ;\n__p += '\\n <label class=\"form-check-label label-position-' +\n((__t = ( ctx.component.optionsLabelPosition )) == null ? '' : __t) +\n'\" for=\"' +\n((__t = (ctx.instance.root && ctx.instance.root.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.id)) == null ? '' : __t) +\n'-' +\n((__t = (ctx.row)) == null ? '' : __t) +\n'-' +\n((__t = ((typeof item.value === 'object') ? item.value + '-' + index : item.value)) == null ? '' : __t) +\n'\"><span>' +\n((__t = (ctx.t(item.label, { _userInput: true }))) == null ? '' : __t) +\n'</span></label>\\n ';\n } ;\n__p += '\\n </div>\\n ';\n }) ;\n__p += '\\n</div>\\n';\nreturn __p\n}\n\n//# sourceURL=webpack://Formio/./node_modules/@formio/bootstrap/lib/cjs/templates/bootstrap5/radio/form.ejs.js?");
|
|
7613
7613
|
|
|
7614
7614
|
/***/ }),
|
|
7615
7615
|
|
|
@@ -8120,7 +8120,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
|
8120
8120
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
8121
8121
|
|
|
8122
8122
|
"use strict";
|
|
8123
|
-
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.
|
|
8123
|
+
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.25';\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?");
|
|
8124
8124
|
|
|
8125
8125
|
/***/ }),
|
|
8126
8126
|
|