@formio/js 5.0.0-rc.7 → 5.0.0-rc.9
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -1 +1 @@
|
|
1
|
-
/*! formiojs v5.0.0-rc.
|
1
|
+
/*! formiojs v5.0.0-rc.9 | https://unpkg.com/formiojs@5.0.0-rc.9/LICENSE.txt */
|
package/dist/formio.form.js
CHANGED
@@ -6350,10 +6350,10 @@ eval("\nconst Rule = __webpack_require__(/*! ./Rule */ \"./lib/cjs/validator/rul
|
|
6350
6350
|
/*!******************************************!*\
|
6351
6351
|
!*** ./lib/cjs/validator/rules/index.js ***!
|
6352
6352
|
\******************************************/
|
6353
|
-
/***/ (function(
|
6353
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
6354
6354
|
|
6355
6355
|
"use strict";
|
6356
|
-
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\");\
|
6356
|
+
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?");
|
6357
6357
|
|
6358
6358
|
/***/ }),
|
6359
6359
|
|
@@ -8136,7 +8136,7 @@ eval("Object.defineProperty(exports, \"__esModule\", ({\n value: true\n}));\nex
|
|
8136
8136
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
8137
8137
|
|
8138
8138
|
"use strict";
|
8139
|
-
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
|
8139
|
+
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?");
|
8140
8140
|
|
8141
8141
|
/***/ }),
|
8142
8142
|
|
@@ -8147,7 +8147,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\ncons
|
|
8147
8147
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
8148
8148
|
|
8149
8149
|
"use strict";
|
8150
|
-
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.
|
8150
|
+
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?");
|
8151
8151
|
|
8152
8152
|
/***/ }),
|
8153
8153
|
|