@formio/js 5.1.0-dev.6056.ba6432d → 5.1.0-dev.6058.189ce78
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.form.js +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +16 -16
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +0 -13
- package/lib/cjs/components/content/editForm/Content.edit.display.js +0 -8
- package/lib/cjs/components/currency/editForm/Currency.edit.display.js +0 -12
- package/lib/cjs/components/day/editForm/Day.edit.display.js +0 -8
- package/lib/cjs/components/email/editForm/Email.edit.display.js +0 -12
- package/lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -8
- package/lib/cjs/components/hidden/editForm/Hidden.edit.display.js +0 -8
- package/lib/cjs/components/html/editForm/HTML.edit.display.js +0 -8
- package/lib/cjs/components/number/editForm/Number.edit.display.js +0 -12
- package/lib/cjs/components/password/editForm/Password.edit.display.js +1 -13
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -9
- package/lib/cjs/components/tabs/editForm/Tabs.edit.display.js +0 -8
- package/lib/cjs/components/textarea/editForm/TextArea.edit.display.js +0 -12
- package/lib/cjs/components/url/editForm/Url.edit.display.js +0 -12
- package/lib/cjs/components/well/editForm/Well.edit.display.js +0 -8
- package/lib/mjs/components/_classes/component/editForm/Component.edit.data.js +19 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.form.js +0 -13
- package/lib/mjs/components/content/editForm/Content.edit.display.js +0 -8
- package/lib/mjs/components/currency/editForm/Currency.edit.display.js +0 -12
- package/lib/mjs/components/day/editForm/Day.edit.display.js +0 -8
- package/lib/mjs/components/email/editForm/Email.edit.display.js +0 -12
- package/lib/mjs/components/fieldset/editForm/Fieldset.edit.display.js +0 -8
- package/lib/mjs/components/hidden/editForm/Hidden.edit.display.js +0 -8
- package/lib/mjs/components/html/editForm/HTML.edit.display.js +0 -8
- package/lib/mjs/components/number/editForm/Number.edit.display.js +0 -12
- package/lib/mjs/components/password/editForm/Password.edit.display.js +1 -13
- package/lib/mjs/components/phonenumber/PhoneNumber.form.js +1 -9
- package/lib/mjs/components/tabs/editForm/Tabs.edit.display.js +0 -8
- package/lib/mjs/components/textarea/editForm/TextArea.edit.display.js +0 -12
- package/lib/mjs/components/url/editForm/Url.edit.display.js +0 -12
- package/lib/mjs/components/well/editForm/Well.edit.display.js +0 -8
- package/package.json +1 -1
package/dist/formio.full.js
CHANGED
@@ -5556,7 +5556,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5556
5556
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
5557
5557
|
|
5558
5558
|
"use strict";
|
5559
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst utils_1 = __importDefault(__webpack_require__(/*! ./utils */ \"./lib/cjs/components/_classes/component/editForm/utils.js\"));\n/* eslint-disable max-len */\nexports[\"default\"] = [\n {\n weight: 0,\n type: 'checkbox',\n label: 'Multiple Values',\n tooltip: 'Allows multiple values to be entered for this field.',\n key: 'multiple',\n input: true\n },\n {\n type: 'textfield',\n label: 'Default Value',\n key: 'defaultValue',\n weight: 5,\n placeholder: 'Default Value',\n tooltip: 'The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.',\n input: true\n },\n {\n weight: 30,\n type: 'radio',\n label: 'Persistent',\n tooltip: 'A persistent field will be stored in database when the form is submitted.',\n key: 'persistent',\n input: true,\n inline: true,\n defaultValue: true,\n values: [\n { label: 'None', value: false },\n { label: 'Server', value: true },\n { label: 'Client', value: 'client-only' },\n ]\n },\n {\n weight: 150,\n type: 'checkbox',\n label: 'Protected',\n tooltip: 'A protected field will not be returned when queried via API.',\n key: 'protected',\n input: true\n },\n {\n type: 'checkbox',\n input: true,\n weight: 200,\n key: 'dbIndex',\n label: 'Database Index',\n tooltip: 'Set this field as an index within the database. Increases performance for submission queries.'\n },\n {\n weight: 400,\n type: 'checkbox',\n label: 'Encrypted',\n tooltip: 'Encrypt this field on the server. This is two way encryption which is not suitable for passwords.',\n key: 'encrypted',\n input: true,\n logic: [\n {\n name: 'disabled',\n trigger: {\n type: 'javascript',\n javascript: 'result = !instance.root.options.sac;'\n },\n actions: [\n {\n name: 'disabled',\n type: 'property',\n property: {\n label: 'Disabled',\n value: 'disabled',\n type: 'boolean'\n },\n state: true\n }\n ]\n },\n {\n name: 'disabledToolTip',\n trigger: {\n type: 'javascript',\n javascript: 'result = !instance.root.options.sac;'\n },\n actions: [\n {\n name: 'addDisabledTooltip',\n type: 'property',\n property: {\n label: 'Tooltip',\n value: 'tooltip',\n type: 'string'\n },\n text: 'Only available with Security Module. Contact sales@form.io for more information.'\n }\n ]\n }\n ]\n },\n {\n type: 'select',\n input: true,\n key: 'redrawOn',\n label: 'Redraw On',\n weight: 600,\n tooltip: 'Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.',\n dataSrc: 'custom',\n valueProperty: 'value',\n data: {\n custom(context) {\n var values = [];\n values.push({ label: 'Any Change', value: 'data' });\n context.utils.eachComponent(context.instance.options.editForm.components, function (component, path) {\n if (component.key !== context.data.key) {\n values.push({\n label: component.label || component.key,\n value: path\n });\n }\n });\n return values;\n }\n },\n conditional: {\n json: { '!': [{ var: 'data.dataSrc' }] },\n },\n },\n {\n weight: 700,\n type: 'checkbox',\n label: 'Omit Value From Submission Data When Conditionally Hidden',\n key: 'clearOnHide',\n defaultValue: true,\n tooltip: 'When a field is conditionally hidden, omit the value from the submission data.',\n input: true\n },\n utils_1.default.javaScriptValue('Custom Default Value', 'customDefaultValue', 'customDefaultValue', 1000, '<p><h4>Example:</h4><pre>value = data.firstName + \" \" + data.lastName;</pre></p>', '<p><h4>Example:</h4><pre>{\"cat\": [{\"var\": \"data.firstName\"}, \" \", {\"var\": \"data.lastName\"}]}</pre>'),\n utils_1.default.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 1100, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{\"+\": [{\"var\": \"data.a\"}, {\"var\": \"data.b\"}, {\"var\": \"data.c\"}]}</pre><p><a href=\"https://help.form.io/userguide/form-building/logic-and-conditions#calculated-values\" target=\"_blank\" rel=\"noopener noreferrer\">Click here for an example</a></p>', utils_1.default.tokenVariableDescription()),\n {\n type: 'checkbox',\n input: true,\n weight: 1100,\n key: 'calculateServer',\n label: 'Calculate Value on server',\n tooltip: 'Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server.'\n },\n {\n type: 'checkbox',\n input: true,\n weight: 1200,\n key: 'allowCalculateOverride',\n label: 'Allow Manual Override of Calculated Value',\n tooltip: 'When checked, this will allow the user to manually override the calculated value.'\n },\n {\n type: 'textarea',\n as: 'json',\n editor: 'ace',\n weight: 1400,\n input: true,\n key: 'serverOverride',\n label: 'Server Override',\n tooltip: 'A JSON object containing the component settings that should be overriden when the form submission is processed on the server side.',\n defaultValue: {},\n description: '<b>Example</b>: { \"clearOnHide\": true }',\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/_classes/component/editForm/Component.edit.data.js?");
|
5559
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst utils_1 = __importDefault(__webpack_require__(/*! ./utils */ \"./lib/cjs/components/_classes/component/editForm/utils.js\"));\n/* eslint-disable max-len */\nexports[\"default\"] = [\n {\n weight: 0,\n type: 'checkbox',\n label: 'Multiple Values',\n tooltip: 'Allows multiple values to be entered for this field.',\n key: 'multiple',\n input: true\n },\n {\n type: 'textfield',\n label: 'Default Value',\n key: 'defaultValue',\n weight: 5,\n placeholder: 'Default Value',\n tooltip: 'The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.',\n input: true\n },\n {\n weight: 30,\n type: 'radio',\n label: 'Persistent',\n tooltip: 'A persistent field will be stored in database when the form is submitted.',\n key: 'persistent',\n input: true,\n inline: true,\n defaultValue: true,\n values: [\n { label: 'None', value: false },\n { label: 'Server', value: true },\n { label: 'Client', value: 'client-only' },\n ]\n },\n {\n weight: 150,\n type: 'checkbox',\n label: 'Protected',\n tooltip: 'A protected field will not be returned when queried via API.',\n key: 'protected',\n input: true\n },\n {\n type: 'checkbox',\n input: true,\n weight: 200,\n key: 'dbIndex',\n label: 'Database Index',\n tooltip: 'Set this field as an index within the database. Increases performance for submission queries.'\n },\n {\n weight: 400,\n type: 'checkbox',\n label: 'Encrypted',\n tooltip: 'Encrypt this field on the server. This is two way encryption which is not suitable for passwords.',\n key: 'encrypted',\n input: true,\n logic: [\n {\n name: 'disabled',\n trigger: {\n type: 'javascript',\n javascript: 'result = !instance.root.options.sac;'\n },\n actions: [\n {\n name: 'disabled',\n type: 'property',\n property: {\n label: 'Disabled',\n value: 'disabled',\n type: 'boolean'\n },\n state: true\n }\n ]\n },\n {\n name: 'hide',\n trigger: {\n type: 'javascript',\n javascript: 'result = instance.root.options.editJson === false;'\n },\n actions: [\n {\n name: 'hide',\n type: 'property',\n property: {\n label: 'Hidden',\n value: 'hidden',\n type: 'boolean'\n },\n state: true\n }\n ]\n },\n {\n name: 'disabledToolTip',\n trigger: {\n type: 'javascript',\n javascript: 'result = !instance.root.options.sac;'\n },\n actions: [\n {\n name: 'addDisabledTooltip',\n type: 'property',\n property: {\n label: 'Tooltip',\n value: 'tooltip',\n type: 'string'\n },\n text: 'Only available with Security Module. Contact sales@form.io for more information.'\n }\n ]\n }\n ]\n },\n {\n type: 'select',\n input: true,\n key: 'redrawOn',\n label: 'Redraw On',\n weight: 600,\n tooltip: 'Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.',\n dataSrc: 'custom',\n valueProperty: 'value',\n data: {\n custom(context) {\n var values = [];\n values.push({ label: 'Any Change', value: 'data' });\n context.utils.eachComponent(context.instance.options.editForm.components, function (component, path) {\n if (component.key !== context.data.key) {\n values.push({\n label: component.label || component.key,\n value: path\n });\n }\n });\n return values;\n }\n },\n conditional: {\n json: { '!': [{ var: 'data.dataSrc' }] },\n },\n },\n {\n weight: 700,\n type: 'checkbox',\n label: 'Omit Value From Submission Data When Conditionally Hidden',\n key: 'clearOnHide',\n defaultValue: true,\n tooltip: 'When a field is conditionally hidden, omit the value from the submission data.',\n input: true\n },\n utils_1.default.javaScriptValue('Custom Default Value', 'customDefaultValue', 'customDefaultValue', 1000, '<p><h4>Example:</h4><pre>value = data.firstName + \" \" + data.lastName;</pre></p>', '<p><h4>Example:</h4><pre>{\"cat\": [{\"var\": \"data.firstName\"}, \" \", {\"var\": \"data.lastName\"}]}</pre>'),\n utils_1.default.javaScriptValue('Calculated Value', 'calculateValue', 'calculateValue', 1100, '<p><h4>Example:</h4><pre>value = data.a + data.b + data.c;</pre></p>', '<p><h4>Example:</h4><pre>{\"+\": [{\"var\": \"data.a\"}, {\"var\": \"data.b\"}, {\"var\": \"data.c\"}]}</pre><p><a href=\"https://help.form.io/userguide/form-building/logic-and-conditions#calculated-values\" target=\"_blank\" rel=\"noopener noreferrer\">Click here for an example</a></p>', utils_1.default.tokenVariableDescription()),\n {\n type: 'checkbox',\n input: true,\n weight: 1100,\n key: 'calculateServer',\n label: 'Calculate Value on server',\n tooltip: 'Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server.'\n },\n {\n type: 'checkbox',\n input: true,\n weight: 1200,\n key: 'allowCalculateOverride',\n label: 'Allow Manual Override of Calculated Value',\n tooltip: 'When checked, this will allow the user to manually override the calculated value.'\n },\n {\n type: 'textarea',\n as: 'json',\n editor: 'ace',\n weight: 1400,\n input: true,\n key: 'serverOverride',\n label: 'Server Override',\n tooltip: 'A JSON object containing the component settings that should be overriden when the form submission is processed on the server side.',\n defaultValue: {},\n description: '<b>Example</b>: { \"clearOnHide\": true }',\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/_classes/component/editForm/Component.edit.data.js?");
|
5560
5560
|
|
5561
5561
|
/***/ }),
|
5562
5562
|
|
@@ -5699,7 +5699,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5699
5699
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
5700
5700
|
|
5701
5701
|
"use strict";
|
5702
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst Components_1 = __importDefault(__webpack_require__(/*! ../../Components */ \"./lib/cjs/components/Components.js\"));\n/**\n * The Edit Form function.\n * @param {...any} extend - The components that extend the edit form.\n * @returns {import('@formio/core').Component[]} - The edit form components.\n */\nfunction default_1(...extend) {\n return Components_1.default.baseEditForm([\n {\n key: '
|
5702
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst Components_1 = __importDefault(__webpack_require__(/*! ../../Components */ \"./lib/cjs/components/Components.js\"));\n/**\n * The Edit Form function.\n * @param {...any} extend - The components that extend the edit form.\n * @returns {import('@formio/core').Component[]} - The edit form components.\n */\nfunction default_1(...extend) {\n return Components_1.default.baseEditForm([\n {\n key: 'data',\n ignore: true\n },\n {\n key: 'validation',\n ignore: true\n }\n ], ...extend);\n}\nexports[\"default\"] = default_1;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/_classes/nested/NestedComponent.form.js?");
|
5703
5703
|
|
5704
5704
|
/***/ }),
|
5705
5705
|
|
@@ -6007,7 +6007,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6007
6007
|
/***/ (function(__unused_webpack_module, exports) {
|
6008
6008
|
|
6009
6009
|
"use strict";
|
6010
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
6010
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'tooltip',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'disabled',\n ignore: true\n },\n {\n key: 'tabindex',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n weight: 700,\n type: 'checkbox',\n label: 'Refresh On Change',\n tooltip: 'Rerender the field whenever a value on the form changes.',\n key: 'refreshOnChange',\n input: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/content/editForm/Content.edit.display.js?");
|
6011
6011
|
|
6012
6012
|
/***/ }),
|
6013
6013
|
|
@@ -6062,7 +6062,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
6062
6062
|
/***/ (function(__unused_webpack_module, exports) {
|
6063
6063
|
|
6064
6064
|
"use strict";
|
6065
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: '
|
6065
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: 'showWordCount',\n ignore: true\n },\n {\n key: 'showCharCount',\n ignore: true\n },\n {\n key: 'spellcheck',\n ignore: true\n },\n {\n type: 'textfield',\n input: true,\n weight: 310,\n key: 'prefix',\n label: 'prefix',\n tooltip: 'Specify the prefix symbol after the component (e.g.: USD, EUR)'\n },\n {\n type: 'textfield',\n input: true,\n weight: 320,\n key: 'suffix',\n label: 'suffix',\n tooltip: 'Specify the suffix symbol after the component (e.g.: USD, EUR).'\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/currency/editForm/Currency.edit.display.js?");
|
6066
6066
|
|
6067
6067
|
/***/ }),
|
6068
6068
|
|
@@ -6293,7 +6293,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6293
6293
|
/***/ (function(__unused_webpack_module, exports) {
|
6294
6294
|
|
6295
6295
|
"use strict";
|
6296
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n
|
6296
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n weight: 15,\n type: 'checkbox',\n label: 'Hide Input Labels',\n tooltip: 'Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.',\n key: 'hideInputLabels',\n input: true\n },\n {\n type: 'select',\n input: true,\n key: 'inputsLabelPosition',\n label: 'Inputs Label Position',\n tooltip: 'Position for the labels for inputs for this field.',\n weight: 40,\n defaultValue: 'top',\n dataSrc: 'values',\n data: {\n values: [\n { label: 'Top', value: 'top' },\n { label: 'Left', value: 'left' },\n { label: 'Right', value: 'right' },\n { label: 'Bottom', value: 'bottom' }\n ]\n }\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n weight: 213,\n type: 'checkbox',\n label: 'Use Locale Settings',\n tooltip: 'Use locale settings to display day.',\n key: 'useLocaleSettings',\n input: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/day/editForm/Day.edit.display.js?");
|
6297
6297
|
|
6298
6298
|
/***/ }),
|
6299
6299
|
|
@@ -6425,7 +6425,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6425
6425
|
/***/ (function(__unused_webpack_module, exports) {
|
6426
6426
|
|
6427
6427
|
"use strict";
|
6428
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true,\n },\n {\n key: 'allowMultipleMasks',\n ignore: true,\n },\n {\n key: '
|
6428
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true,\n },\n {\n key: 'allowMultipleMasks',\n ignore: true,\n },\n {\n key: 'showWordCount',\n ignore: true\n },\n {\n key: 'showCharCount',\n ignore: true\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/email/editForm/Email.edit.display.js?");
|
6429
6429
|
|
6430
6430
|
/***/ }),
|
6431
6431
|
|
@@ -6469,7 +6469,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6469
6469
|
/***/ (function(__unused_webpack_module, exports) {
|
6470
6470
|
|
6471
6471
|
"use strict";
|
6472
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
6472
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n key: 'label',\n hidden: true,\n calculateValue(context) {\n return context.data.legend;\n }\n },\n {\n weight: 1,\n type: 'textfield',\n input: true,\n key: 'legend',\n label: 'Legend',\n placeholder: 'Legend',\n tooltip: 'The legend for this Fieldset.'\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/fieldset/editForm/Fieldset.edit.display.js?");
|
6473
6473
|
|
6474
6474
|
/***/ }),
|
6475
6475
|
|
@@ -6634,7 +6634,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
6634
6634
|
/***/ (function(__unused_webpack_module, exports) {
|
6635
6635
|
|
6636
6636
|
"use strict";
|
6637
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
6637
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'tooltip',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'tabindex',\n ignore: true\n },\n {\n key: 'hidden',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n key: 'disabled',\n ignore: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/hidden/editForm/Hidden.edit.display.js?");
|
6638
6638
|
|
6639
6639
|
/***/ }),
|
6640
6640
|
|
@@ -6667,7 +6667,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6667
6667
|
/***/ (function(__unused_webpack_module, exports) {
|
6668
6668
|
|
6669
6669
|
"use strict";
|
6670
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
6670
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'tooltip',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'disabled',\n ignore: true\n },\n {\n key: 'tabindex',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n type: 'textfield',\n input: true,\n key: 'tag',\n weight: 50,\n label: 'HTML Tag',\n placeholder: 'HTML Element Tag',\n tooltip: 'The tag of this HTML element.'\n },\n {\n type: 'textfield',\n input: true,\n key: 'className',\n weight: 60,\n label: 'CSS Class',\n placeholder: 'CSS Class',\n tooltip: 'The CSS class for this HTML element.'\n },\n {\n type: 'datagrid',\n input: true,\n label: 'Attributes',\n key: 'attrs',\n tooltip: 'The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.',\n weight: 70,\n components: [\n {\n label: 'Attribute',\n key: 'attr',\n input: true,\n type: 'textfield'\n },\n {\n label: 'Value',\n key: 'value',\n input: true,\n type: 'textfield'\n }\n ]\n },\n {\n type: 'textarea',\n input: true,\n editor: 'ace',\n rows: 10,\n as: 'html',\n label: 'Content',\n tooltip: 'The content of this HTML element.',\n defaultValue: '<div class=\"well\">Content</div>',\n key: 'content',\n weight: 80\n },\n {\n weight: 85,\n type: 'checkbox',\n label: 'Refresh On Change',\n tooltip: 'Rerender the field whenever a value on the form changes.',\n key: 'refreshOnChange',\n input: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/html/editForm/HTML.edit.display.js?");
|
6671
6671
|
|
6672
6672
|
/***/ }),
|
6673
6673
|
|
@@ -6733,7 +6733,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
6733
6733
|
/***/ (function(__unused_webpack_module, exports) {
|
6734
6734
|
|
6735
6735
|
"use strict";
|
6736
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'spellcheck',\n ignore: true\n },\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: '
|
6736
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'spellcheck',\n ignore: true\n },\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: 'showWordCount',\n ignore: true,\n },\n {\n key: 'showCharCount',\n ignore: true,\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/number/editForm/Number.edit.display.js?");
|
6737
6737
|
|
6738
6738
|
/***/ }),
|
6739
6739
|
|
@@ -6832,7 +6832,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
6832
6832
|
/***/ (function(__unused_webpack_module, exports) {
|
6833
6833
|
|
6834
6834
|
"use strict";
|
6835
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n ignore: true,\n key: 'mask',\n },\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n }
|
6835
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n ignore: true,\n key: 'mask',\n },\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/password/editForm/Password.edit.display.js?");
|
6836
6836
|
|
6837
6837
|
/***/ }),
|
6838
6838
|
|
@@ -6854,7 +6854,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
6854
6854
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
6855
6855
|
|
6856
6856
|
"use strict";
|
6857
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst TextField_form_1 = __importDefault(__webpack_require__(/*! ../textfield/TextField.form */ \"./lib/cjs/components/textfield/TextField.form.js\"));\nconst PhoneNumber_edit_validation_1 = __importDefault(__webpack_require__(/*! ./editForm/PhoneNumber.edit.validation */ \"./lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js\"));\n/**\n * The Edit Form function.\n * @param {...any} extend - The components that extend the edit form.\n * @returns {import('@formio/core').Component[]} - The edit form components.\n */\nfunction default_1(...extend) {\n return (0, TextField_form_1.default)([\n {\n key: 'display',\n components: [\n {\n key: 'showWordCount',\n ignore: true\n },\n {\n key: 'showCharCount',\n ignore: true\n }
|
6857
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst TextField_form_1 = __importDefault(__webpack_require__(/*! ../textfield/TextField.form */ \"./lib/cjs/components/textfield/TextField.form.js\"));\nconst PhoneNumber_edit_validation_1 = __importDefault(__webpack_require__(/*! ./editForm/PhoneNumber.edit.validation */ \"./lib/cjs/components/phonenumber/editForm/PhoneNumber.edit.validation.js\"));\n/**\n * The Edit Form function.\n * @param {...any} extend - The components that extend the edit form.\n * @returns {import('@formio/core').Component[]} - The edit form components.\n */\nfunction default_1(...extend) {\n return (0, TextField_form_1.default)([\n {\n key: 'display',\n components: [\n {\n key: 'showWordCount',\n ignore: true\n },\n {\n key: 'showCharCount',\n ignore: true\n }\n ]\n },\n {\n key: 'data',\n components: [\n {\n key: 'case',\n ignore: true\n }\n ]\n },\n {\n key: 'validation',\n components: PhoneNumber_edit_validation_1.default\n },\n ], ...extend);\n}\nexports[\"default\"] = default_1;\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/phonenumber/PhoneNumber.form.js?");
|
6858
6858
|
|
6859
6859
|
/***/ }),
|
6860
6860
|
|
@@ -7228,7 +7228,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7228
7228
|
/***/ (function(__unused_webpack_module, exports) {
|
7229
7229
|
|
7230
7230
|
"use strict";
|
7231
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
7231
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'tooltip',\n ignore: true\n },\n {\n key: 'tabindex',\n ignore: true\n },\n {\n key: 'disabled',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n weight: 0,\n type: 'textfield',\n input: true,\n key: 'label',\n label: 'Label',\n placeholder: 'Field Label',\n tooltip: 'The label for this field.',\n validate: {\n required: true\n },\n autofocus: true,\n overrideEditForm: true\n },\n {\n key: 'components',\n type: 'datagrid',\n input: true,\n label: 'Tabs',\n weight: 50,\n reorder: true,\n components: [\n {\n type: 'textfield',\n input: true,\n key: 'label',\n label: 'Label'\n },\n {\n type: 'textfield',\n input: true,\n key: 'key',\n label: 'Key',\n allowCalculateOverride: true,\n calculateValue: { _camelCase: [{ var: 'row.label' }] }\n }\n ]\n },\n {\n weight: 1100,\n type: 'checkbox',\n label: 'Vertical Layout',\n tooltip: 'Make this field display in vertical orientation.',\n key: 'verticalLayout',\n input: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/tabs/editForm/Tabs.edit.display.js?");
|
7232
7232
|
|
7233
7233
|
/***/ }),
|
7234
7234
|
|
@@ -7294,7 +7294,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7294
7294
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
7295
7295
|
|
7296
7296
|
"use strict";
|
7297
|
-
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\"));\nconst Formio_1 = __webpack_require__(/*! ../../../Formio */ \"./lib/cjs/Formio.js\");\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: '
|
7297
|
+
eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nconst lodash_1 = __importDefault(__webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\"));\nconst Formio_1 = __webpack_require__(/*! ../../../Formio */ \"./lib/cjs/Formio.js\");\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: 'mask',\n ignore: true\n },\n {\n type: 'number',\n input: true,\n key: 'rows',\n label: 'Rows',\n weight: 210,\n tooltip: 'This allows control over how many rows are visible in the text area.',\n placeholder: 'Enter the amount of rows'\n },\n {\n weight: 1350,\n type: 'checkbox',\n input: true,\n key: 'spellcheck',\n defaultValue: true,\n label: 'Allow Spellcheck'\n },\n {\n type: 'select',\n input: true,\n key: 'editor',\n label: 'Editor',\n tooltip: 'Select the type of WYSIWYG editor to use for this text area.',\n dataSrc: 'values',\n data: {\n values: [\n { label: 'None', value: '' },\n { label: 'ACE', value: 'ace' },\n { label: 'CKEditor', value: 'ckeditor' },\n { label: 'Quill', value: 'quill' },\n ]\n },\n weight: 415\n },\n {\n type: 'checkbox',\n input: true,\n key: 'autoExpand',\n label: 'Auto Expand',\n tooltip: 'This will make the TextArea auto expand it\\'s height as the user is typing into the area.',\n weight: 415,\n conditional: {\n json: {\n '==': [\n { var: 'data.editor' },\n ''\n ]\n }\n }\n },\n {\n type: 'checkbox',\n input: true,\n key: 'isUploadEnabled',\n label: 'Enable Image Upload',\n weight: 415.1,\n conditional: {\n json: {\n or: [\n {\n '===': [\n { var: 'data.editor' },\n 'quill'\n ],\n },\n {\n '===': [\n { var: 'data.editor' },\n 'ckeditor'\n ],\n }\n ]\n }\n }\n },\n {\n type: 'select',\n input: true,\n key: 'uploadStorage',\n label: 'Image Upload Storage',\n placeholder: 'Select your file storage provider',\n weight: 415.2,\n tooltip: 'Which storage to save the files in.',\n valueProperty: 'value',\n dataSrc: 'custom',\n data: {\n custom() {\n return lodash_1.default.map(Formio_1.Formio.Providers.getProviders('storage'), (storage, key) => ({\n label: storage.title,\n value: key\n }));\n }\n },\n conditional: {\n json: {\n '===': [\n { var: 'data.isUploadEnabled' },\n true\n ]\n }\n }\n },\n {\n type: 'textfield',\n input: true,\n key: 'uploadUrl',\n label: 'Image Upload Url',\n weight: 415.3,\n placeholder: 'Enter the url to post the files to.',\n tooltip: 'See <a href=\\'https://github.com/danialfarid/ng-file-upload#server-side\\' target=\\'_blank\\'>https://github.com/danialfarid/ng-file-upload#server-side</a> for how to set up the server.',\n conditional: {\n json: { '===': [{ var: 'data.uploadStorage' }, 'url'] }\n }\n },\n {\n type: 'textarea',\n key: 'uploadOptions',\n label: 'Image Upload Custom request options',\n tooltip: 'Pass your custom xhr options(optional)',\n rows: 5,\n editor: 'ace',\n input: true,\n weight: 415.4,\n placeholder: `{\n \"withCredentials\": true\n }`,\n conditional: {\n json: {\n '===': [{\n var: 'data.uploadStorage'\n }, 'url']\n }\n }\n },\n {\n type: 'textfield',\n input: true,\n key: 'uploadDir',\n label: 'Image Upload Directory',\n placeholder: '(optional) Enter a directory for the files',\n tooltip: 'This will place all the files uploaded in this field in the directory',\n weight: 415.5,\n conditional: {\n json: {\n '===': [\n { var: 'data.isUploadEnabled' },\n true\n ]\n }\n }\n },\n {\n type: 'textfield',\n key: 'fileKey',\n input: true,\n label: 'File form-data Key',\n tooltip: 'Key name that you would like to modify for the file while calling API request.',\n rows: 5,\n weight: 415.6,\n placeholder: 'Enter the key name of a file for form data.',\n conditional: {\n json: {\n and: [\n { '===': [\n { var: 'data.editor' },\n 'quill'\n ] },\n { '===': [\n { var: 'data.isUploadEnabled' },\n true\n ] },\n { '===': [\n { var: 'data.uploadStorage' },\n 'url'\n ] },\n ]\n }\n }\n },\n {\n type: 'select',\n input: true,\n key: 'as',\n label: 'Save As',\n dataSrc: 'values',\n tooltip: 'This setting determines how the value should be entered and stored in the database.',\n clearOnHide: true,\n data: {\n values: [\n { label: 'String', value: 'string' },\n { label: 'JSON', value: 'json' },\n { label: 'HTML', value: 'html' }\n ]\n },\n conditional: {\n json: {\n or: [\n { '===': [\n { var: 'data.editor' },\n 'quill'\n ] },\n { '===': [\n { var: 'data.editor' },\n 'ace'\n ] }\n ]\n }\n },\n weight: 416\n },\n {\n type: 'textarea',\n input: true,\n editor: 'ace',\n rows: 10,\n as: 'json',\n label: 'Editor Settings',\n tooltip: 'Enter the WYSIWYG editor JSON configuration.',\n key: 'wysiwyg',\n customDefaultValue(value, component, row, data, instance) {\n return instance ? instance.wysiwygDefault : '';\n },\n conditional: {\n json: {\n or: [\n { '===': [\n { var: 'data.editor' },\n 'ace'\n ] },\n { '===': [\n { var: 'data.editor' },\n 'ckeditor'\n ] },\n { '===': [\n { var: 'data.editor' },\n 'quill'\n ] },\n ]\n }\n },\n weight: 417\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/textarea/editForm/TextArea.edit.display.js?");
|
7298
7298
|
|
7299
7299
|
/***/ }),
|
7300
7300
|
|
@@ -7481,7 +7481,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexpo
|
|
7481
7481
|
/***/ (function(__unused_webpack_module, exports) {
|
7482
7482
|
|
7483
7483
|
"use strict";
|
7484
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: '
|
7484
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'inputMask',\n ignore: true\n },\n {\n key: 'allowMultipleMasks',\n ignore: true\n },\n {\n key: 'showWordCount',\n ignore: true,\n },\n {\n key: 'showCharCount',\n ignore: true,\n }\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/url/editForm/Url.edit.display.js?");
|
7485
7485
|
|
7486
7486
|
/***/ }),
|
7487
7487
|
|
@@ -7525,7 +7525,7 @@ eval("\nvar __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7525
7525
|
/***/ (function(__unused_webpack_module, exports) {
|
7526
7526
|
|
7527
7527
|
"use strict";
|
7528
|
-
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: '
|
7528
|
+
eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports[\"default\"] = [\n {\n key: 'labelPosition',\n ignore: true\n },\n {\n key: 'placeholder',\n ignore: true\n },\n {\n key: 'description',\n ignore: true\n },\n {\n key: 'autofocus',\n ignore: true\n },\n {\n key: 'tooltip',\n ignore: true\n },\n {\n key: 'tabindex',\n ignore: true\n },\n {\n key: 'tableView',\n ignore: true\n },\n {\n key: 'hideLabel',\n ignore: true\n },\n {\n weight: 0,\n type: 'textfield',\n input: true,\n key: 'label',\n label: 'Label',\n placeholder: 'Field Label',\n tooltip: 'The label for this field.',\n validate: {\n required: true\n },\n autofocus: true,\n overrideEditForm: true\n },\n];\n\n\n//# sourceURL=webpack://Formio/./lib/cjs/components/well/editForm/Well.edit.display.js?");
|
7529
7529
|
|
7530
7530
|
/***/ }),
|
7531
7531
|
|