@formio/js 5.2.1-dev.6202.2449b29 → 5.2.1-dev.6236.96bf618
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/Changelog.md +43 -0
- package/README.md +34 -1
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +10 -10
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +12 -12
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1 -1
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Element.js +2 -2
- package/lib/cjs/Embed.js +1 -1
- package/lib/cjs/Formio.js +1 -1
- package/lib/cjs/WebformBuilder.d.ts +1 -0
- package/lib/cjs/WebformBuilder.js +15 -0
- package/lib/cjs/Wizard.js +2 -6
- package/lib/cjs/WizardBuilder.js +4 -0
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.js +4 -2
- package/lib/cjs/components/editgrid/EditGrid.d.ts +2 -2
- package/lib/cjs/components/form/Form.d.ts +2 -1
- package/lib/cjs/components/form/Form.js +32 -20
- package/lib/cjs/components/select/Select.js +1 -1
- package/lib/cjs/components/tags/Tags.js +7 -0
- package/lib/cjs/formio.form.d.ts +2 -1
- package/lib/cjs/formio.form.js +3 -1
- package/lib/cjs/utils/index.d.ts +3 -2
- package/lib/cjs/utils/index.js +2 -1
- package/lib/mjs/Element.js +2 -2
- package/lib/mjs/Embed.js +1 -1
- package/lib/mjs/Formio.js +1 -1
- package/lib/mjs/WebformBuilder.d.ts +1 -0
- package/lib/mjs/WebformBuilder.js +14 -0
- package/lib/mjs/Wizard.js +2 -6
- package/lib/mjs/WizardBuilder.js +4 -0
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.js +4 -2
- package/lib/mjs/components/editgrid/EditGrid.d.ts +2 -2
- package/lib/mjs/components/form/Form.d.ts +2 -1
- package/lib/mjs/components/form/Form.js +32 -20
- package/lib/mjs/components/select/Select.js +1 -1
- package/lib/mjs/components/tags/Tags.js +7 -0
- package/lib/mjs/formio.form.d.ts +2 -1
- package/lib/mjs/formio.form.js +3 -2
- package/lib/mjs/utils/index.d.ts +3 -2
- package/lib/mjs/utils/index.js +2 -2
- package/package.json +3 -3
@@ -158,6 +158,13 @@ export default class TagsComponent extends Input {
|
|
158
158
|
this.refs.input[0].parentNode.lastChild.focus();
|
159
159
|
}
|
160
160
|
}
|
161
|
+
getValue() {
|
162
|
+
if (this.choices) {
|
163
|
+
const value = this.choices.getValue(true);
|
164
|
+
return value.join(`${this.delimiter}`);
|
165
|
+
}
|
166
|
+
return super.getValue();
|
167
|
+
}
|
161
168
|
getValueAsString(value) {
|
162
169
|
if (!value) {
|
163
170
|
return '';
|
package/lib/mjs/formio.form.d.ts
CHANGED
@@ -23,4 +23,5 @@ import { Formio } from './Formio';
|
|
23
23
|
import Licenses from './licenses';
|
24
24
|
import EventEmitter from './EventEmitter';
|
25
25
|
import Webform from './Webform';
|
26
|
-
|
26
|
+
import { DefaultEvaluator } from './utils';
|
27
|
+
export { Components, Displays, Providers, Widgets, Templates, Utils, Form, Formio, Licenses, EventEmitter, Webform, DefaultEvaluator };
|
package/lib/mjs/formio.form.js
CHANGED
@@ -11,7 +11,7 @@ import Utils from './utils';
|
|
11
11
|
import Licenses from './licenses';
|
12
12
|
import EventEmitter from './EventEmitter';
|
13
13
|
import Webform from './Webform';
|
14
|
-
import { Evaluator, registerEvaluator } from './utils';
|
14
|
+
import { Evaluator, registerEvaluator, DefaultEvaluator } from './utils';
|
15
15
|
Formio.loadModules = (path = `${Formio.getApiUrl()}/externalModules.js`, name = 'externalModules') => {
|
16
16
|
Formio.requireLibrary(name, name, path, true)
|
17
17
|
.then((modules) => {
|
@@ -30,6 +30,7 @@ Formio.Widgets = Widgets;
|
|
30
30
|
Formio.Evaluator = Evaluator;
|
31
31
|
Formio.AllComponents = AllComponents;
|
32
32
|
Formio.Licenses = Licenses;
|
33
|
+
Formio.DefaultEvaluator = DefaultEvaluator;
|
33
34
|
// This is strange, but is needed for "premium" components to import correctly.
|
34
35
|
Formio.Formio = Formio;
|
35
36
|
Formio.Components.setComponents(AllComponents);
|
@@ -126,4 +127,4 @@ export function useModule(defaultFn = null) {
|
|
126
127
|
Formio.use = useModule();
|
127
128
|
export { Formio as FormioCore } from './Formio';
|
128
129
|
// Export the components.
|
129
|
-
export { Components, Displays, Providers, Widgets, Templates, Utils, Form, Formio, Licenses, EventEmitter, Webform };
|
130
|
+
export { Components, Displays, Providers, Widgets, Templates, Utils, Form, Formio, Licenses, EventEmitter, Webform, DefaultEvaluator };
|
package/lib/mjs/utils/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ export * from "./utils";
|
|
2
2
|
export * from "./formUtils";
|
3
3
|
export default FormioUtils;
|
4
4
|
declare const FormioUtils: {
|
5
|
-
Evaluator:
|
5
|
+
Evaluator: DefaultEvaluator;
|
6
6
|
interpolate: typeof interpolate;
|
7
7
|
ConditionOperators: {
|
8
8
|
[x: string]: typeof import("./conditionOperators/IsEqualTo").default | typeof import("./conditionOperators/DateGreaterThan").default;
|
@@ -163,6 +163,7 @@ declare const FormioUtils: {
|
|
163
163
|
};
|
164
164
|
import { Evaluator } from './Evaluator';
|
165
165
|
import { registerEvaluator } from './Evaluator';
|
166
|
+
import { DefaultEvaluator } from './Evaluator';
|
166
167
|
import { interpolate } from './Evaluator';
|
167
168
|
import moment from 'moment';
|
168
|
-
export { FormioUtils as Utils, Evaluator, registerEvaluator };
|
169
|
+
export { FormioUtils as Utils, Evaluator, registerEvaluator, DefaultEvaluator };
|
package/lib/mjs/utils/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as utils from './utils';
|
2
2
|
import * as formUtils from './formUtils';
|
3
|
-
import { Evaluator, registerEvaluator, interpolate } from './Evaluator';
|
3
|
+
import { Evaluator, registerEvaluator, interpolate, DefaultEvaluator } from './Evaluator';
|
4
4
|
import ConditionOperators from './conditionOperators';
|
5
5
|
import _ from 'lodash';
|
6
6
|
import moment from 'moment';
|
@@ -17,7 +17,7 @@ if (typeof global === 'object') {
|
|
17
17
|
global.FormioUtils = FormioUtils;
|
18
18
|
}
|
19
19
|
export { FormioUtils as Utils };
|
20
|
-
export { Evaluator, registerEvaluator };
|
20
|
+
export { Evaluator, registerEvaluator, DefaultEvaluator };
|
21
21
|
export * from './utils';
|
22
22
|
export * from './formUtils';
|
23
23
|
export default FormioUtils;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@formio/js",
|
3
|
-
"version": "5.2.1-dev.
|
3
|
+
"version": "5.2.1-dev.6236.96bf618",
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
5
5
|
"main": "lib/cjs/index.js",
|
6
6
|
"exports": {
|
@@ -79,8 +79,8 @@
|
|
79
79
|
},
|
80
80
|
"homepage": "https://github.com/formio/formio.js#readme",
|
81
81
|
"dependencies": {
|
82
|
-
"@formio/bootstrap": "3.1.2
|
83
|
-
"@formio/core": "2.5.1
|
82
|
+
"@formio/bootstrap": "3.1.2",
|
83
|
+
"@formio/core": "2.5.1",
|
84
84
|
"@formio/text-mask-addons": "^3.8.0-formio.4",
|
85
85
|
"@formio/vanilla-text-mask": "^5.1.1-formio.1",
|
86
86
|
"abortcontroller-polyfill": "^1.7.5",
|