@formio/js 5.0.0-rc.59 → 5.0.0-rc.60
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formio.builder.css +8 -8
- package/dist/formio.builder.min.css +1 -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.css +8 -8
- package/dist/formio.form.js +24 -24
- package/dist/formio.form.min.css +1 -1
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.css +8 -8
- package/dist/formio.full.js +64 -64
- package/dist/formio.full.min.css +1 -1
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +4 -4
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +2 -2
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/Element.d.ts +1 -1
- package/lib/cjs/Embed.d.ts +2 -2
- package/lib/cjs/Embed.js +10 -10
- package/lib/cjs/Form.d.ts +3 -3
- package/lib/cjs/FormBuilder.d.ts +42 -3
- package/lib/cjs/InlineEmbed.js +2 -2
- package/lib/cjs/PDF.d.ts +1 -1
- package/lib/cjs/Webform.d.ts +4 -3
- package/lib/cjs/Webform.js +2 -1
- package/lib/cjs/WebformBuilder.d.ts +1 -1
- package/lib/cjs/WebformBuilder.js +8 -2
- package/lib/cjs/components/_classes/component/Component.form.d.ts +1 -1
- package/lib/cjs/components/_classes/component/Component.form.js +1 -1
- package/lib/cjs/components/_classes/component/Component.js +2 -5
- package/lib/cjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/cjs/components/_classes/component/fixtures/comp6.js +59 -0
- package/lib/cjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/_classes/component/fixtures/index.js +3 -1
- package/lib/cjs/components/_classes/input/Input.js +6 -4
- package/lib/cjs/components/_classes/list/ListComponent.form.d.ts +1 -1
- package/lib/cjs/components/_classes/list/ListComponent.form.js +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.d.ts +7 -7
- package/lib/cjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
- package/lib/cjs/components/_classes/nested/NestedComponent.form.js +1 -1
- package/lib/cjs/components/address/Address.form.d.ts +1 -1
- package/lib/cjs/components/address/Address.form.js +1 -1
- package/lib/cjs/components/button/Button.form.d.ts +1 -1
- package/lib/cjs/components/button/Button.form.js +1 -1
- package/lib/cjs/components/checkbox/Checkbox.form.d.ts +1 -1
- package/lib/cjs/components/checkbox/Checkbox.form.js +1 -1
- package/lib/cjs/components/columns/Columns.form.d.ts +1 -1
- package/lib/cjs/components/columns/Columns.form.js +1 -1
- package/lib/cjs/components/container/Container.form.d.ts +1 -1
- package/lib/cjs/components/container/Container.form.js +1 -1
- package/lib/cjs/components/content/Content.form.d.ts +1 -1
- package/lib/cjs/components/content/Content.form.js +1 -1
- package/lib/cjs/components/currency/Currency.form.d.ts +1 -1
- package/lib/cjs/components/currency/Currency.form.js +1 -1
- package/lib/cjs/components/datagrid/DataGrid.form.d.ts +1 -1
- package/lib/cjs/components/datagrid/DataGrid.form.js +1 -1
- package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/cjs/components/datagrid/fixtures/comp-with-checkboxes.js +36 -0
- package/lib/cjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/datagrid/fixtures/index.js +3 -1
- package/lib/cjs/components/datamap/DataMap.form.d.ts +1 -1
- package/lib/cjs/components/datamap/DataMap.form.js +1 -1
- package/lib/cjs/components/datetime/DateTime.form.d.ts +1 -1
- package/lib/cjs/components/datetime/DateTime.form.js +1 -1
- package/lib/cjs/components/day/Day.d.ts +1 -1
- package/lib/cjs/components/day/Day.form.d.ts +1 -1
- package/lib/cjs/components/day/Day.form.js +1 -1
- package/lib/cjs/components/day/Day.js +1 -1
- package/lib/cjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/cjs/components/day/fixtures/comp7.js +109 -0
- package/lib/cjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/cjs/components/day/fixtures/index.js +3 -1
- package/lib/cjs/components/editgrid/EditGrid.form.d.ts +1 -1
- package/lib/cjs/components/editgrid/EditGrid.form.js +1 -1
- package/lib/cjs/components/email/Email.form.d.ts +1 -1
- package/lib/cjs/components/email/Email.form.js +1 -1
- package/lib/cjs/components/fieldset/Fieldset.form.d.ts +1 -1
- package/lib/cjs/components/fieldset/Fieldset.form.js +1 -1
- package/lib/cjs/components/file/File.form.d.ts +1 -1
- package/lib/cjs/components/file/File.form.js +1 -1
- package/lib/cjs/components/file/File.js +1 -2
- package/lib/cjs/components/form/Form.form.d.ts +1 -1
- package/lib/cjs/components/form/Form.form.js +1 -1
- package/lib/cjs/components/form/Form.js +7 -6
- package/lib/cjs/components/hidden/Hidden.form.d.ts +1 -1
- package/lib/cjs/components/hidden/Hidden.form.js +1 -1
- package/lib/cjs/components/html/HTML.form.d.ts +1 -1
- package/lib/cjs/components/html/HTML.form.js +1 -1
- package/lib/cjs/components/number/Number.form.d.ts +1 -1
- package/lib/cjs/components/number/Number.form.js +1 -1
- package/lib/cjs/components/panel/Panel.form.d.ts +1 -1
- package/lib/cjs/components/panel/Panel.form.js +1 -1
- package/lib/cjs/components/password/Password.form.d.ts +1 -1
- package/lib/cjs/components/password/Password.form.js +1 -1
- package/lib/cjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
- package/lib/cjs/components/phonenumber/PhoneNumber.form.js +1 -1
- package/lib/cjs/components/radio/Radio.form.d.ts +1 -1
- package/lib/cjs/components/radio/Radio.form.js +1 -1
- package/lib/cjs/components/radio/Radio.js +3 -2
- package/lib/cjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
- package/lib/cjs/components/recaptcha/ReCaptcha.form.js +1 -1
- package/lib/cjs/components/select/Select.form.d.ts +1 -1
- package/lib/cjs/components/select/Select.form.js +1 -1
- package/lib/cjs/components/select/Select.js +1 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
- package/lib/cjs/components/selectboxes/SelectBoxes.form.js +1 -1
- package/lib/cjs/components/signature/Signature.form.d.ts +1 -1
- package/lib/cjs/components/signature/Signature.form.js +1 -1
- package/lib/cjs/components/survey/Survey.form.d.ts +1 -1
- package/lib/cjs/components/survey/Survey.form.js +1 -1
- package/lib/cjs/components/table/Table.form.d.ts +1 -1
- package/lib/cjs/components/table/Table.form.js +1 -1
- package/lib/cjs/components/tabs/Tabs.form.d.ts +1 -1
- package/lib/cjs/components/tabs/Tabs.form.js +1 -1
- package/lib/cjs/components/tags/Tags.form.d.ts +1 -1
- package/lib/cjs/components/tags/Tags.form.js +1 -1
- package/lib/cjs/components/textarea/TextArea.form.d.ts +1 -1
- package/lib/cjs/components/textarea/TextArea.form.js +1 -1
- package/lib/cjs/components/textfield/TextField.form.d.ts +1 -1
- package/lib/cjs/components/textfield/TextField.form.js +1 -1
- package/lib/cjs/components/textfield/TextField.js +3 -1
- package/lib/cjs/components/time/Time.form.d.ts +1 -1
- package/lib/cjs/components/time/Time.form.js +1 -1
- package/lib/cjs/components/unknown/Unknown.form.js +1 -1
- package/lib/cjs/components/url/Url.form.d.ts +1 -1
- package/lib/cjs/components/url/Url.form.js +1 -1
- package/lib/cjs/components/well/Well.form.d.ts +1 -1
- package/lib/cjs/components/well/Well.form.js +1 -1
- package/lib/cjs/formio.form.js +3 -3
- package/lib/cjs/providers/address/AzureAddressProvider.d.ts +1 -1
- package/lib/cjs/providers/address/GoogleAddressProvider.js +1 -1
- package/lib/cjs/providers/storage/util.js +3 -4
- package/lib/cjs/templates/index.d.ts +14 -14
- package/lib/cjs/translations/en.d.ts +2 -0
- package/lib/cjs/translations/en.js +3 -1
- package/lib/cjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/cjs/utils/ChoicesWrapper.js +13 -2
- package/lib/cjs/utils/calendarUtils.js +3 -3
- package/lib/cjs/utils/formUtils.d.ts +3 -3
- package/lib/cjs/utils/formUtils.js +2 -2
- package/lib/cjs/utils/utils.d.ts +20 -14
- package/lib/cjs/utils/utils.js +82 -72
- package/lib/mjs/Element.d.ts +1 -1
- package/lib/mjs/Embed.d.ts +2 -2
- package/lib/mjs/Form.d.ts +3 -3
- package/lib/mjs/FormBuilder.d.ts +42 -3
- package/lib/mjs/PDF.d.ts +1 -1
- package/lib/mjs/Webform.d.ts +4 -3
- package/lib/mjs/Webform.js +2 -1
- package/lib/mjs/WebformBuilder.d.ts +1 -1
- package/lib/mjs/WebformBuilder.js +8 -2
- package/lib/mjs/components/_classes/component/Component.form.d.ts +1 -1
- package/lib/mjs/components/_classes/component/Component.js +2 -5
- package/lib/mjs/components/_classes/component/fixtures/comp6.d.ts +77 -0
- package/lib/mjs/components/_classes/component/fixtures/comp6.js +57 -0
- package/lib/mjs/components/_classes/component/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/_classes/component/fixtures/index.js +2 -1
- package/lib/mjs/components/_classes/input/Input.js +6 -4
- package/lib/mjs/components/_classes/list/ListComponent.form.d.ts +1 -1
- package/lib/mjs/components/_classes/nested/NestedComponent.d.ts +7 -7
- package/lib/mjs/components/_classes/nested/NestedComponent.form.d.ts +1 -1
- package/lib/mjs/components/address/Address.form.d.ts +1 -1
- package/lib/mjs/components/button/Button.form.d.ts +1 -1
- package/lib/mjs/components/checkbox/Checkbox.form.d.ts +1 -1
- package/lib/mjs/components/columns/Columns.form.d.ts +1 -1
- package/lib/mjs/components/container/Container.form.d.ts +1 -1
- package/lib/mjs/components/content/Content.form.d.ts +1 -1
- package/lib/mjs/components/currency/Currency.form.d.ts +1 -1
- package/lib/mjs/components/datagrid/DataGrid.form.d.ts +1 -1
- package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.d.ts +29 -0
- package/lib/mjs/components/datagrid/fixtures/comp-with-checkboxes.js +34 -0
- package/lib/mjs/components/datagrid/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/datagrid/fixtures/index.js +2 -1
- package/lib/mjs/components/datamap/DataMap.form.d.ts +1 -1
- package/lib/mjs/components/datetime/DateTime.form.d.ts +1 -1
- package/lib/mjs/components/day/Day.d.ts +1 -1
- package/lib/mjs/components/day/Day.form.d.ts +1 -1
- package/lib/mjs/components/day/Day.js +1 -1
- package/lib/mjs/components/day/fixtures/comp7.d.ts +109 -0
- package/lib/mjs/components/day/fixtures/comp7.js +107 -0
- package/lib/mjs/components/day/fixtures/index.d.ts +2 -1
- package/lib/mjs/components/day/fixtures/index.js +2 -1
- package/lib/mjs/components/editgrid/EditGrid.form.d.ts +1 -1
- package/lib/mjs/components/email/Email.form.d.ts +1 -1
- package/lib/mjs/components/fieldset/Fieldset.form.d.ts +1 -1
- package/lib/mjs/components/file/File.form.d.ts +1 -1
- package/lib/mjs/components/file/File.js +1 -2
- package/lib/mjs/components/form/Form.form.d.ts +1 -1
- package/lib/mjs/components/form/Form.js +5 -4
- package/lib/mjs/components/hidden/Hidden.form.d.ts +1 -1
- package/lib/mjs/components/html/HTML.form.d.ts +1 -1
- package/lib/mjs/components/number/Number.form.d.ts +1 -1
- package/lib/mjs/components/panel/Panel.form.d.ts +1 -1
- package/lib/mjs/components/password/Password.form.d.ts +1 -1
- package/lib/mjs/components/phonenumber/PhoneNumber.form.d.ts +1 -1
- package/lib/mjs/components/radio/Radio.form.d.ts +1 -1
- package/lib/mjs/components/radio/Radio.js +3 -2
- package/lib/mjs/components/recaptcha/ReCaptcha.form.d.ts +1 -1
- package/lib/mjs/components/select/Select.form.d.ts +1 -1
- package/lib/mjs/components/select/Select.js +2 -2
- package/lib/mjs/components/selectboxes/SelectBoxes.form.d.ts +1 -1
- package/lib/mjs/components/signature/Signature.form.d.ts +1 -1
- package/lib/mjs/components/survey/Survey.form.d.ts +1 -1
- package/lib/mjs/components/table/Table.form.d.ts +1 -1
- package/lib/mjs/components/tabs/Tabs.form.d.ts +1 -1
- package/lib/mjs/components/tags/Tags.form.d.ts +1 -1
- package/lib/mjs/components/textarea/TextArea.form.d.ts +1 -1
- package/lib/mjs/components/textfield/TextField.form.d.ts +1 -1
- package/lib/mjs/components/textfield/TextField.js +3 -1
- package/lib/mjs/components/time/Time.form.d.ts +1 -1
- package/lib/mjs/components/url/Url.form.d.ts +1 -1
- package/lib/mjs/components/well/Well.form.d.ts +1 -1
- package/lib/mjs/providers/address/AzureAddressProvider.d.ts +1 -1
- package/lib/mjs/providers/address/GoogleAddressProvider.js +1 -1
- package/lib/mjs/templates/index.d.ts +14 -14
- package/lib/mjs/translations/en.d.ts +2 -0
- package/lib/mjs/translations/en.js +3 -1
- package/lib/mjs/utils/ChoicesWrapper.d.ts +1 -1
- package/lib/mjs/utils/ChoicesWrapper.js +13 -2
- package/lib/mjs/utils/formUtils.d.ts +3 -3
- package/lib/mjs/utils/utils.d.ts +20 -14
- package/lib/mjs/utils/utils.js +12 -2
- package/package.json +11 -11
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -122,7 +122,7 @@ export default class DayComponent extends Field {
|
|
122
122
|
id: `${this.component.key}-${name}`,
|
123
123
|
class: `form-control ${this.transform('class', `formio-day-component-${name}`)}`,
|
124
124
|
type: this.component.fields[name].type === 'select' ? 'select' : 'number',
|
125
|
-
placeholder: this.component.fields[name].placeholder,
|
125
|
+
placeholder: this.t(this.component.fields[name].placeholder),
|
126
126
|
step: 1,
|
127
127
|
min,
|
128
128
|
max,
|
@@ -0,0 +1,109 @@
|
|
1
|
+
declare namespace _default {
|
2
|
+
let components: ({
|
3
|
+
type: string;
|
4
|
+
key: string;
|
5
|
+
label: string;
|
6
|
+
placeholder: string;
|
7
|
+
input: boolean;
|
8
|
+
applyMaskOn?: undefined;
|
9
|
+
tableView?: undefined;
|
10
|
+
hideInputLabels?: undefined;
|
11
|
+
inputsLabelPosition?: undefined;
|
12
|
+
useLocaleSettings?: undefined;
|
13
|
+
fields?: undefined;
|
14
|
+
defaultValue?: undefined;
|
15
|
+
values?: undefined;
|
16
|
+
questions?: undefined;
|
17
|
+
action?: undefined;
|
18
|
+
theme?: undefined;
|
19
|
+
} | {
|
20
|
+
label: string;
|
21
|
+
placeholder: string;
|
22
|
+
applyMaskOn: string;
|
23
|
+
tableView: boolean;
|
24
|
+
key: string;
|
25
|
+
type: string;
|
26
|
+
input: boolean;
|
27
|
+
hideInputLabels?: undefined;
|
28
|
+
inputsLabelPosition?: undefined;
|
29
|
+
useLocaleSettings?: undefined;
|
30
|
+
fields?: undefined;
|
31
|
+
defaultValue?: undefined;
|
32
|
+
values?: undefined;
|
33
|
+
questions?: undefined;
|
34
|
+
action?: undefined;
|
35
|
+
theme?: undefined;
|
36
|
+
} | {
|
37
|
+
label: string;
|
38
|
+
hideInputLabels: boolean;
|
39
|
+
inputsLabelPosition: string;
|
40
|
+
useLocaleSettings: boolean;
|
41
|
+
tableView: boolean;
|
42
|
+
fields: {
|
43
|
+
day: {
|
44
|
+
placeholder: string;
|
45
|
+
hide: boolean;
|
46
|
+
};
|
47
|
+
month: {
|
48
|
+
type: string;
|
49
|
+
placeholder: string;
|
50
|
+
hide: boolean;
|
51
|
+
};
|
52
|
+
year: {
|
53
|
+
placeholder: string;
|
54
|
+
hide: boolean;
|
55
|
+
};
|
56
|
+
};
|
57
|
+
key: string;
|
58
|
+
type: string;
|
59
|
+
input: boolean;
|
60
|
+
defaultValue: string;
|
61
|
+
placeholder?: undefined;
|
62
|
+
applyMaskOn?: undefined;
|
63
|
+
values?: undefined;
|
64
|
+
questions?: undefined;
|
65
|
+
action?: undefined;
|
66
|
+
theme?: undefined;
|
67
|
+
} | {
|
68
|
+
type: string;
|
69
|
+
key: string;
|
70
|
+
label: string;
|
71
|
+
values: {
|
72
|
+
label: string;
|
73
|
+
value: string;
|
74
|
+
}[];
|
75
|
+
questions: {
|
76
|
+
label: string;
|
77
|
+
value: string;
|
78
|
+
}[];
|
79
|
+
placeholder?: undefined;
|
80
|
+
input?: undefined;
|
81
|
+
applyMaskOn?: undefined;
|
82
|
+
tableView?: undefined;
|
83
|
+
hideInputLabels?: undefined;
|
84
|
+
inputsLabelPosition?: undefined;
|
85
|
+
useLocaleSettings?: undefined;
|
86
|
+
fields?: undefined;
|
87
|
+
defaultValue?: undefined;
|
88
|
+
action?: undefined;
|
89
|
+
theme?: undefined;
|
90
|
+
} | {
|
91
|
+
type: string;
|
92
|
+
action: string;
|
93
|
+
label: string;
|
94
|
+
theme: string;
|
95
|
+
key?: undefined;
|
96
|
+
placeholder?: undefined;
|
97
|
+
input?: undefined;
|
98
|
+
applyMaskOn?: undefined;
|
99
|
+
tableView?: undefined;
|
100
|
+
hideInputLabels?: undefined;
|
101
|
+
inputsLabelPosition?: undefined;
|
102
|
+
useLocaleSettings?: undefined;
|
103
|
+
fields?: undefined;
|
104
|
+
defaultValue?: undefined;
|
105
|
+
values?: undefined;
|
106
|
+
questions?: undefined;
|
107
|
+
})[];
|
108
|
+
}
|
109
|
+
export default _default;
|
@@ -0,0 +1,107 @@
|
|
1
|
+
export default {
|
2
|
+
components: [
|
3
|
+
{
|
4
|
+
type: 'textfield',
|
5
|
+
key: 'firstName',
|
6
|
+
label: 'First Name',
|
7
|
+
placeholder: 'Enter your first name',
|
8
|
+
input: true
|
9
|
+
}, {
|
10
|
+
"label": "Day",
|
11
|
+
"placeholder": "Day",
|
12
|
+
"applyMaskOn": "change",
|
13
|
+
"tableView": true,
|
14
|
+
"key": "day2",
|
15
|
+
"type": "textfield",
|
16
|
+
"input": true
|
17
|
+
}, {
|
18
|
+
"label": "Month",
|
19
|
+
"placeholder": "Month",
|
20
|
+
"applyMaskOn": "change",
|
21
|
+
"tableView": true,
|
22
|
+
"key": "month2",
|
23
|
+
"type": "textfield",
|
24
|
+
"input": true
|
25
|
+
}, {
|
26
|
+
"label": "Year",
|
27
|
+
"placeholder": "Year",
|
28
|
+
"applyMaskOn": "change",
|
29
|
+
"tableView": true,
|
30
|
+
"key": "year2",
|
31
|
+
"type": "textfield",
|
32
|
+
"input": true
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"label": "Day",
|
36
|
+
"hideInputLabels": false,
|
37
|
+
"inputsLabelPosition": "top",
|
38
|
+
"useLocaleSettings": false,
|
39
|
+
"tableView": false,
|
40
|
+
"fields": {
|
41
|
+
"day": {
|
42
|
+
"placeholder": "Day",
|
43
|
+
"hide": false
|
44
|
+
},
|
45
|
+
"month": {
|
46
|
+
"type": "number",
|
47
|
+
"placeholder": "Month",
|
48
|
+
"hide": false
|
49
|
+
},
|
50
|
+
"year": {
|
51
|
+
"placeholder": "Year",
|
52
|
+
"hide": false
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"key": "day",
|
56
|
+
"type": "day",
|
57
|
+
"input": true,
|
58
|
+
"defaultValue": "00/00/0000"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
type: 'textfield',
|
62
|
+
key: 'lastName',
|
63
|
+
label: 'Last Name',
|
64
|
+
placeholder: 'Enter your last name',
|
65
|
+
input: true
|
66
|
+
},
|
67
|
+
{
|
68
|
+
type: 'survey',
|
69
|
+
key: 'questions',
|
70
|
+
label: 'Survey',
|
71
|
+
values: [
|
72
|
+
{
|
73
|
+
label: 'Great',
|
74
|
+
value: 'great'
|
75
|
+
},
|
76
|
+
{
|
77
|
+
label: 'Good',
|
78
|
+
value: 'good'
|
79
|
+
},
|
80
|
+
{
|
81
|
+
label: 'Poor',
|
82
|
+
value: 'poor'
|
83
|
+
}
|
84
|
+
],
|
85
|
+
questions: [
|
86
|
+
{
|
87
|
+
label: 'How would you rate the Form.io platform?',
|
88
|
+
value: 'howWouldYouRateTheFormIoPlatform'
|
89
|
+
},
|
90
|
+
{
|
91
|
+
label: 'How was Customer Support?',
|
92
|
+
value: 'howWasCustomerSupport'
|
93
|
+
},
|
94
|
+
{
|
95
|
+
label: 'Overall Experience?',
|
96
|
+
value: 'overallExperience'
|
97
|
+
}
|
98
|
+
]
|
99
|
+
},
|
100
|
+
{
|
101
|
+
type: 'button',
|
102
|
+
action: 'submit',
|
103
|
+
label: 'Submit',
|
104
|
+
theme: 'primary'
|
105
|
+
}
|
106
|
+
]
|
107
|
+
};
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -649,8 +649,7 @@ export default class FileComponent extends Field {
|
|
649
649
|
// Check if file with the same name is being uploaded
|
650
650
|
const fileWithSameNameUploading = this.filesToSync.filesToUpload
|
651
651
|
.some(fileToSync => fileToSync.file?.name === file.name);
|
652
|
-
const fileWithSameNameUploaded = this.dataValue
|
653
|
-
.some(fileStatus => fileStatus.originalName === file.name);
|
652
|
+
const fileWithSameNameUploaded = _.some(this.dataValue, fileStatus => fileStatus.originalName === file.name);
|
654
653
|
return fileWithSameNameUploaded || fileWithSameNameUploading
|
655
654
|
? {
|
656
655
|
status: 'error',
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -442,7 +442,7 @@ export default class FormComponent extends Component {
|
|
442
442
|
}
|
443
443
|
else if (this.formSrc) {
|
444
444
|
this.subFormLoading = true;
|
445
|
-
const options = this.root
|
445
|
+
const options = this.root?.formio?.base && this.root?.formio?.projectUrl
|
446
446
|
? {
|
447
447
|
base: this.root.formio.base,
|
448
448
|
project: this.root.formio.projectUrl,
|
@@ -623,10 +623,11 @@ export default class FormComponent extends Component {
|
|
623
623
|
&& submission._id
|
624
624
|
&& this.subForm.formio
|
625
625
|
&& _.isEmpty(submission.data);
|
626
|
-
|
626
|
+
const shouldLoadDraftById = this.options.saveDraft && _.isEmpty(submission.data) && _.get(this.subForm, 'submission._id');
|
627
|
+
if (shouldLoadSubmissionById || shouldLoadDraftById) {
|
627
628
|
const formId = submission.form || this.formObj.form || this.component.form;
|
628
|
-
const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id}`;
|
629
|
-
const options = this.root
|
629
|
+
const submissionUrl = `${this.subForm.formio.formsUrl}/${formId}/submission/${submission._id || this.subForm.submission._id}`;
|
630
|
+
const options = this.root?.formio?.base && this.root?.formio?.projectUrl
|
630
631
|
? {
|
631
632
|
base: this.root.formio.base,
|
632
633
|
project: this.root.formio.projectUrl,
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -200,7 +200,8 @@ export default class RadioComponent extends ListComponent {
|
|
200
200
|
if (this.viewOnly || !this.refs.input || !this.refs.input.length) {
|
201
201
|
return this.dataValue;
|
202
202
|
}
|
203
|
-
|
203
|
+
// If the input type of the component is checkbox the value should be determined by the checkboxes checked property
|
204
|
+
let value = this.component.inputType === 'checkbox' ? '' : this.dataValue;
|
204
205
|
this.refs.input.forEach((input, index) => {
|
205
206
|
if (input.checked) {
|
206
207
|
value = (this.isSelectURL && _.isObject(this.loadedOptions[index].value)) ?
|
@@ -322,7 +323,7 @@ export default class RadioComponent extends ListComponent {
|
|
322
323
|
const value = this.dataValue;
|
323
324
|
this.refs.wrapper.forEach((wrapper, index) => {
|
324
325
|
const input = this.refs.input[index];
|
325
|
-
const checked = (input.type === 'checkbox') ? value[input.value] : (input.value.toString() === value.toString());
|
326
|
+
const checked = (input.type === 'checkbox') ? value[input.value] || input.checked : (input.value.toString() === value.toString());
|
326
327
|
if (checked) {
|
327
328
|
//add class to container when selected
|
328
329
|
this.addClass(wrapper, this.optionSelectedClass);
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,7 +3,7 @@ import { Formio } from '../../Formio';
|
|
3
3
|
import ListComponent from '../_classes/list/ListComponent';
|
4
4
|
import Input from '../_classes/input/Input';
|
5
5
|
import Form from '../../Form';
|
6
|
-
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes,
|
6
|
+
import { getRandomComponentId, boolValue, isPromise, componentValueTypes, getComponentSavedTypes, isSelectResourceWithObjectValue, removeHTML } from '../../utils/utils';
|
7
7
|
import Choices from '../../utils/ChoicesWrapper';
|
8
8
|
export default class SelectComponent extends ListComponent {
|
9
9
|
static schema(...extend) {
|
@@ -1548,7 +1548,7 @@ export default class SelectComponent extends ListComponent {
|
|
1548
1548
|
const getTemplateValue = (v) => {
|
1549
1549
|
const itemTemplate = this.itemTemplate(v);
|
1550
1550
|
return options.csv && itemTemplate
|
1551
|
-
?
|
1551
|
+
? removeHTML(itemTemplate)
|
1552
1552
|
: itemTemplate;
|
1553
1553
|
};
|
1554
1554
|
if (Array.isArray(value)) {
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -147,6 +147,9 @@ export default class TextFieldComponent extends Input {
|
|
147
147
|
const maskInput = this.refs.select ? this.refs.select[index] : null;
|
148
148
|
const mask = this.getMaskPattern(value.maskName);
|
149
149
|
if (textInput && maskInput && mask) {
|
150
|
+
// We need to set the maskInput (select dropdown) value before calling inputmask.setValue because, this
|
151
|
+
// function will trigger a "change" event, which was calling updateValue setting the mask type to an incorrect value.
|
152
|
+
maskInput.value = value.maskName;
|
150
153
|
if (textInput.inputmask) {
|
151
154
|
this.setInputMask(textInput, mask);
|
152
155
|
textInput.inputmask.setValue(textValue);
|
@@ -155,7 +158,6 @@ export default class TextFieldComponent extends Input {
|
|
155
158
|
const placeholderChar = this.placeholderChar;
|
156
159
|
textInput.value = conformToMask(textValue, FormioUtils.getInputMask(mask), { placeholderChar }).conformedValue;
|
157
160
|
}
|
158
|
-
maskInput.value = value.maskName;
|
159
161
|
}
|
160
162
|
else {
|
161
163
|
return super.setValueAt(index, textValue, flags);
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* @param {...any} extend - The components that extend the edit form.
|
4
4
|
* @returns {import('@formio/core').Component[]} - The edit form components.
|
5
5
|
*/
|
6
|
-
export default function _default(...extend: any[]): import(
|
6
|
+
export default function _default(...extend: any[]): import("@formio/core").Component[];
|
@@ -48,7 +48,7 @@ export class GoogleAddressProvider extends AddressProvider {
|
|
48
48
|
constructor(options = {}) {
|
49
49
|
super(options);
|
50
50
|
this.setAutocompleteOptions();
|
51
|
-
let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&callback=googleMapsCallback';
|
51
|
+
let src = 'https://maps.googleapis.com/maps/api/js?v=quarterly&libraries=places&loading=async&callback=googleMapsCallback';
|
52
52
|
if (options.params?.key) {
|
53
53
|
src += `&key=${options.params.key}`;
|
54
54
|
}
|
@@ -39,20 +39,20 @@ declare namespace _default {
|
|
39
39
|
defaultIconset: string;
|
40
40
|
iconClass: (iconset: any, name: any, spinning: any) => string;
|
41
41
|
cssClasses: {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
42
|
+
"border-default": string;
|
43
|
+
"formio-tab-panel-active": string;
|
44
|
+
"formio-tab-link-active": string;
|
45
|
+
"formio-tab-link-container-active": string;
|
46
|
+
"formio-form-error": string;
|
47
|
+
"formio-form-alert": string;
|
48
|
+
"formio-label-error": string;
|
49
|
+
"formio-input-error": string;
|
50
|
+
"formio-alert-danger": string;
|
51
|
+
"formio-alert-success": string;
|
52
|
+
"formio-alert-warning": string;
|
53
|
+
"formio-modal-cancel-button": string;
|
54
|
+
"formio-modal-confirm-button": string;
|
55
|
+
"form-group": string;
|
56
56
|
};
|
57
57
|
address: {
|
58
58
|
form: string;
|
@@ -71,5 +71,7 @@ export default {
|
|
71
71
|
submitButtonAriaLabel: 'Submit Form button. Click to submit the form',
|
72
72
|
reCaptchaTokenValidationError: 'ReCAPTCHA: Token validation error',
|
73
73
|
reCaptchaTokenNotSpecifiedError: 'ReCAPTCHA: Token is not specified in submission',
|
74
|
-
apiKey: 'API Key is not unique: {{key}}'
|
74
|
+
apiKey: 'API Key is not unique: {{key}}',
|
75
|
+
typeRemaining: '{{ remaining }} {{ type }} remaining.',
|
76
|
+
typeCount: '{{ count }} {{ type }}'
|
75
77
|
};
|
@@ -24,7 +24,7 @@ declare class ChoicesWrapper extends Choices {
|
|
24
24
|
_onEnterKey(args: any): void;
|
25
25
|
_onDirectionKey(...args: any[]): void;
|
26
26
|
timeout: NodeJS.Timeout | undefined;
|
27
|
-
_selectHighlightedChoice(
|
27
|
+
_selectHighlightedChoice(): void;
|
28
28
|
_onKeyDown(event: any): void;
|
29
29
|
onSelectValue({ event, activeItems, hasActiveDropdown }: {
|
30
30
|
event: any;
|