@formio/js 5.0.0-rc.8 → 5.0.0-rc.9
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 +4 -4
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +4 -4
- 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/lib/cjs/validator/Rules.d.ts +112 -3
- package/lib/cjs/validator/rules/index.d.ts +25 -1
- package/lib/cjs/validator/rules/index.js +2 -1
- package/lib/mjs/validator/Rules.d.ts +112 -3
- package/lib/mjs/validator/rules/index.d.ts +25 -1
- package/lib/mjs/validator/rules/index.js +1 -2
- package/package.json +2 -2
package/dist/formio.full.js
CHANGED
@@ -8326,10 +8326,10 @@ eval("\nconst Rule = __webpack_require__(/*! ./Rule */ \"./lib/cjs/validator/rul
|
|
8326
8326
|
/*!******************************************!*\
|
8327
8327
|
!*** ./lib/cjs/validator/rules/index.js ***!
|
8328
8328
|
\******************************************/
|
8329
|
-
/***/ (function(
|
8329
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
8330
8330
|
|
8331
8331
|
"use strict";
|
8332
|
-
eval("\nconst custom = __webpack_require__(/*! ./Custom */ \"./lib/cjs/validator/rules/Custom.js\");\nconst date = __webpack_require__(/*! ./Date */ \"./lib/cjs/validator/rules/Date.js\");\nconst day = __webpack_require__(/*! ./Day */ \"./lib/cjs/validator/rules/Day.js\");\nconst email = __webpack_require__(/*! ./Email */ \"./lib/cjs/validator/rules/Email.js\");\nconst json = __webpack_require__(/*! ./JSON */ \"./lib/cjs/validator/rules/JSON.js\");\nconst mask = __webpack_require__(/*! ./Mask */ \"./lib/cjs/validator/rules/Mask.js\");\nconst max = __webpack_require__(/*! ./Max */ \"./lib/cjs/validator/rules/Max.js\");\nconst maxDate = __webpack_require__(/*! ./MaxDate */ \"./lib/cjs/validator/rules/MaxDate.js\");\nconst maxLength = __webpack_require__(/*! ./MaxLength */ \"./lib/cjs/validator/rules/MaxLength.js\");\nconst maxWords = __webpack_require__(/*! ./MaxWords */ \"./lib/cjs/validator/rules/MaxWords.js\");\nconst min = __webpack_require__(/*! ./Min */ \"./lib/cjs/validator/rules/Min.js\");\nconst minDate = __webpack_require__(/*! ./MinDate */ \"./lib/cjs/validator/rules/MinDate.js\");\nconst minLength = __webpack_require__(/*! ./MinLength */ \"./lib/cjs/validator/rules/MinLength.js\");\nconst minWords = __webpack_require__(/*! ./MinWords */ \"./lib/cjs/validator/rules/MinWords.js\");\nconst pattern = __webpack_require__(/*! ./Pattern */ \"./lib/cjs/validator/rules/Pattern.js\");\nconst required = __webpack_require__(/*! ./Required */ \"./lib/cjs/validator/rules/Required.js\");\nconst select = __webpack_require__(/*! ./Select */ \"./lib/cjs/validator/rules/Select.js\");\nconst unique = __webpack_require__(/*! ./Unique */ \"./lib/cjs/validator/rules/Unique.js\");\nconst url = __webpack_require__(/*! ./Url */ \"./lib/cjs/validator/rules/Url.js\");\nconst minYear = __webpack_require__(/*! ./MinYear */ \"./lib/cjs/validator/rules/MinYear.js\");\nconst maxYear = __webpack_require__(/*! ./MaxYear */ \"./lib/cjs/validator/rules/MaxYear.js\");\nconst time = __webpack_require__(/*! ./Time */ \"./lib/cjs/validator/rules/Time.js\");\
|
8332
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst custom = __webpack_require__(/*! ./Custom */ \"./lib/cjs/validator/rules/Custom.js\");\nconst date = __webpack_require__(/*! ./Date */ \"./lib/cjs/validator/rules/Date.js\");\nconst day = __webpack_require__(/*! ./Day */ \"./lib/cjs/validator/rules/Day.js\");\nconst email = __webpack_require__(/*! ./Email */ \"./lib/cjs/validator/rules/Email.js\");\nconst json = __webpack_require__(/*! ./JSON */ \"./lib/cjs/validator/rules/JSON.js\");\nconst mask = __webpack_require__(/*! ./Mask */ \"./lib/cjs/validator/rules/Mask.js\");\nconst max = __webpack_require__(/*! ./Max */ \"./lib/cjs/validator/rules/Max.js\");\nconst maxDate = __webpack_require__(/*! ./MaxDate */ \"./lib/cjs/validator/rules/MaxDate.js\");\nconst maxLength = __webpack_require__(/*! ./MaxLength */ \"./lib/cjs/validator/rules/MaxLength.js\");\nconst maxWords = __webpack_require__(/*! ./MaxWords */ \"./lib/cjs/validator/rules/MaxWords.js\");\nconst min = __webpack_require__(/*! ./Min */ \"./lib/cjs/validator/rules/Min.js\");\nconst minDate = __webpack_require__(/*! ./MinDate */ \"./lib/cjs/validator/rules/MinDate.js\");\nconst minLength = __webpack_require__(/*! ./MinLength */ \"./lib/cjs/validator/rules/MinLength.js\");\nconst minWords = __webpack_require__(/*! ./MinWords */ \"./lib/cjs/validator/rules/MinWords.js\");\nconst pattern = __webpack_require__(/*! ./Pattern */ \"./lib/cjs/validator/rules/Pattern.js\");\nconst required = __webpack_require__(/*! ./Required */ \"./lib/cjs/validator/rules/Required.js\");\nconst select = __webpack_require__(/*! ./Select */ \"./lib/cjs/validator/rules/Select.js\");\nconst unique = __webpack_require__(/*! ./Unique */ \"./lib/cjs/validator/rules/Unique.js\");\nconst url = __webpack_require__(/*! ./Url */ \"./lib/cjs/validator/rules/Url.js\");\nconst minYear = __webpack_require__(/*! ./MinYear */ \"./lib/cjs/validator/rules/MinYear.js\");\nconst maxYear = __webpack_require__(/*! ./MaxYear */ \"./lib/cjs/validator/rules/MaxYear.js\");\nconst time = __webpack_require__(/*! ./Time */ \"./lib/cjs/validator/rules/Time.js\");\nexports[\"default\"] = {\n custom,\n date,\n day,\n email,\n json,\n mask,\n max,\n maxDate,\n maxLength,\n maxWords,\n min,\n minDate,\n minLength,\n minWords,\n pattern,\n required,\n select,\n unique,\n url,\n minYear,\n maxYear,\n time,\n};\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/validator/rules/index.js?");
|
8333
8333
|
|
8334
8334
|
/***/ }),
|
8335
8335
|
|
@@ -10112,7 +10112,7 @@ eval("Object.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nex
|
|
10112
10112
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
10113
10113
|
|
10114
10114
|
"use strict";
|
10115
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst editgrid_1 = __webpack_require__(/*! ./editgrid */ \"./node_modules/@formio/bootstrap/lib/cjs/templates/components/editgrid/index.js\");\nexports
|
10115
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.editgrid = void 0;\nconst editgrid_1 = __webpack_require__(/*! ./editgrid */ \"./node_modules/@formio/bootstrap/lib/cjs/templates/components/editgrid/index.js\");\nexports.editgrid = editgrid_1.default;\n\n\n//# sourceURL=webpack://Formio/./node_modules/@formio/bootstrap/lib/cjs/templates/components/index.js?");
|
10116
10116
|
|
10117
10117
|
/***/ }),
|
10118
10118
|
|
@@ -10123,7 +10123,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\ncons
|
|
10123
10123
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
10124
10124
|
|
10125
10125
|
"use strict";
|
10126
|
-
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.
|
10126
|
+
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.9';\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?");
|
10127
10127
|
|
10128
10128
|
/***/ }),
|
10129
10129
|
|