@formio/vpat 2.6.1
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/README.md +12 -0
- package/dist/vpat.js +1410 -0
- package/dist/vpat.min.js +1 -0
- package/lib/Webform.d.ts +2 -0
- package/lib/Webform.js +105 -0
- package/lib/WebformBuilder.d.ts +2 -0
- package/lib/WebformBuilder.js +145 -0
- package/lib/Wizard.d.ts +2 -0
- package/lib/Wizard.js +87 -0
- package/lib/builders/Builders.d.ts +4 -0
- package/lib/builders/Builders.js +9 -0
- package/lib/builders/index.d.ts +2 -0
- package/lib/builders/index.js +7 -0
- package/lib/components/address/Address.d.ts +5 -0
- package/lib/components/address/Address.js +10 -0
- package/lib/components/button/Button.d.ts +6 -0
- package/lib/components/button/Button.form.d.ts +1 -0
- package/lib/components/button/Button.form.js +25 -0
- package/lib/components/button/Button.js +12 -0
- package/lib/components/button/editForm/Button.edit.display.d.ts +5 -0
- package/lib/components/button/editForm/Button.edit.display.js +32 -0
- package/lib/components/checkbox/Checkbox.d.ts +17 -0
- package/lib/components/checkbox/Checkbox.form.d.ts +1 -0
- package/lib/components/checkbox/Checkbox.form.js +22 -0
- package/lib/components/checkbox/Checkbox.js +33 -0
- package/lib/components/checkbox/editForm/Checkbox.edit.data.d.ts +5 -0
- package/lib/components/checkbox/editForm/Checkbox.edit.data.js +12 -0
- package/lib/components/checkbox/editForm/Checkbox.edit.display.d.ts +5 -0
- package/lib/components/checkbox/editForm/Checkbox.edit.display.js +44 -0
- package/lib/components/columns/Columns.d.ts +6 -0
- package/lib/components/columns/Columns.form.d.ts +1 -0
- package/lib/components/columns/Columns.form.js +17 -0
- package/lib/components/columns/Columns.js +12 -0
- package/lib/components/columns/editForm/Columns.edit.display.d.ts +5 -0
- package/lib/components/columns/editForm/Columns.edit.display.js +16 -0
- package/lib/components/component/Component.d.ts +2 -0
- package/lib/components/component/Component.js +316 -0
- package/lib/components/componentmodal/ComponentModal.d.ts +2 -0
- package/lib/components/componentmodal/ComponentModal.js +217 -0
- package/lib/components/container/Container.d.ts +6 -0
- package/lib/components/container/Container.form.d.ts +1 -0
- package/lib/components/container/Container.form.js +22 -0
- package/lib/components/container/Container.js +12 -0
- package/lib/components/container/editForm/Container.edit.data.d.ts +5 -0
- package/lib/components/container/editForm/Container.edit.data.js +8 -0
- package/lib/components/container/editForm/Container.edit.display.d.ts +5 -0
- package/lib/components/container/editForm/Container.edit.display.js +12 -0
- package/lib/components/content/Content.d.ts +6 -0
- package/lib/components/content/Content.form.d.ts +1 -0
- package/lib/components/content/Content.form.js +8 -0
- package/lib/components/content/Content.js +12 -0
- package/lib/components/currency/Currency.d.ts +6 -0
- package/lib/components/currency/Currency.form.d.ts +1 -0
- package/lib/components/currency/Currency.form.js +26 -0
- package/lib/components/currency/Currency.js +12 -0
- package/lib/components/currency/editForm/Currency.edit.data.d.ts +17 -0
- package/lib/components/currency/editForm/Currency.edit.data.js +188 -0
- package/lib/components/currency/editForm/Currency.edit.display.d.ts +5 -0
- package/lib/components/currency/editForm/Currency.edit.display.js +8 -0
- package/lib/components/currency/editForm/Currency.edit.validation.d.ts +5 -0
- package/lib/components/currency/editForm/Currency.edit.validation.js +24 -0
- package/lib/components/datagrid/DataGrid.d.ts +5 -0
- package/lib/components/datagrid/DataGrid.js +10 -0
- package/lib/components/datamap/DataMap.d.ts +5 -0
- package/lib/components/datamap/DataMap.js +10 -0
- package/lib/components/datatable/DataTable.d.ts +3 -0
- package/lib/components/datatable/DataTable.js +8 -0
- package/lib/components/datetime/DateTime.d.ts +6 -0
- package/lib/components/datetime/DateTime.form.d.ts +1 -0
- package/lib/components/datetime/DateTime.form.js +27 -0
- package/lib/components/datetime/DateTime.js +12 -0
- package/lib/components/datetime/editForm/DateTime.edit.data.d.ts +5 -0
- package/lib/components/datetime/editForm/DateTime.edit.data.js +8 -0
- package/lib/components/datetime/editForm/DateTime.edit.display.d.ts +5 -0
- package/lib/components/datetime/editForm/DateTime.edit.display.js +32 -0
- package/lib/components/datetime/editForm/DateTime.edit.validation.d.ts +5 -0
- package/lib/components/datetime/editForm/DateTime.edit.validation.js +8 -0
- package/lib/components/day/Day.d.ts +13 -0
- package/lib/components/day/Day.form.d.ts +1 -0
- package/lib/components/day/Day.form.js +41 -0
- package/lib/components/day/Day.js +16 -0
- package/lib/components/day/editForm/Day.edit.data.d.ts +5 -0
- package/lib/components/day/editForm/Day.edit.data.js +16 -0
- package/lib/components/day/editForm/Day.edit.day.d.ts +40 -0
- package/lib/components/day/editForm/Day.edit.day.js +48 -0
- package/lib/components/day/editForm/Day.edit.display.d.ts +18 -0
- package/lib/components/day/editForm/Day.edit.display.js +36 -0
- package/lib/components/day/editForm/Day.edit.month.d.ts +40 -0
- package/lib/components/day/editForm/Day.edit.month.js +40 -0
- package/lib/components/day/editForm/Day.edit.validation.d.ts +29 -0
- package/lib/components/day/editForm/Day.edit.validation.js +58 -0
- package/lib/components/day/editForm/Day.edit.year.d.ts +10 -0
- package/lib/components/day/editForm/Day.edit.year.js +22 -0
- package/lib/components/dynamicwizard/DynamicWizard.d.ts +3 -0
- package/lib/components/dynamicwizard/DynamicWizard.js +8 -0
- package/lib/components/editgrid/EditGrid.d.ts +5 -0
- package/lib/components/editgrid/EditGrid.js +10 -0
- package/lib/components/email/Email.d.ts +6 -0
- package/lib/components/email/Email.form.d.ts +1 -0
- package/lib/components/email/Email.form.js +21 -0
- package/lib/components/email/Email.js +12 -0
- package/lib/components/email/editForm/Email.edit.display.d.ts +5 -0
- package/lib/components/email/editForm/Email.edit.display.js +8 -0
- package/lib/components/email/editForm/Email.edit.validation.d.ts +5 -0
- package/lib/components/email/editForm/Email.edit.validation.js +12 -0
- package/lib/components/fieldset/Fieldset.d.ts +6 -0
- package/lib/components/fieldset/Fieldset.form.d.ts +1 -0
- package/lib/components/fieldset/Fieldset.form.js +22 -0
- package/lib/components/fieldset/Fieldset.js +12 -0
- package/lib/components/file/File.d.ts +20 -0
- package/lib/components/file/File.form.d.ts +1 -0
- package/lib/components/file/File.form.js +17 -0
- package/lib/components/file/File.js +87 -0
- package/lib/components/file/editForm/File.edit.display.d.ts +5 -0
- package/lib/components/file/editForm/File.edit.display.js +24 -0
- package/lib/components/form/Form.d.ts +5 -0
- package/lib/components/form/Form.js +10 -0
- package/lib/components/hidden/Hidden.d.ts +6 -0
- package/lib/components/hidden/Hidden.form.d.ts +1 -0
- package/lib/components/hidden/Hidden.form.js +8 -0
- package/lib/components/hidden/Hidden.js +12 -0
- package/lib/components/html/HTML.d.ts +6 -0
- package/lib/components/html/HTML.form.d.ts +1 -0
- package/lib/components/html/HTML.form.js +8 -0
- package/lib/components/html/HTML.js +12 -0
- package/lib/components/index.d.ts +87 -0
- package/lib/components/index.js +95 -0
- package/lib/components/input/Input.d.ts +2 -0
- package/lib/components/input/Input.js +20 -0
- package/lib/components/nested/NestedComponent.d.ts +2 -0
- package/lib/components/nested/NestedComponent.js +18 -0
- package/lib/components/number/Number.d.ts +6 -0
- package/lib/components/number/Number.form.d.ts +1 -0
- package/lib/components/number/Number.form.js +26 -0
- package/lib/components/number/Number.js +12 -0
- package/lib/components/number/editForm/Number.edit.data.d.ts +18 -0
- package/lib/components/number/editForm/Number.edit.data.js +32 -0
- package/lib/components/number/editForm/Number.edit.display.d.ts +5 -0
- package/lib/components/number/editForm/Number.edit.display.js +12 -0
- package/lib/components/number/editForm/Number.edit.validation.d.ts +20 -0
- package/lib/components/number/editForm/Number.edit.validation.js +46 -0
- package/lib/components/panel/Panel.d.ts +6 -0
- package/lib/components/panel/Panel.form.d.ts +1 -0
- package/lib/components/panel/Panel.form.js +17 -0
- package/lib/components/panel/Panel.js +12 -0
- package/lib/components/panel/editForm/Panel.edit.display.d.ts +21 -0
- package/lib/components/panel/editForm/Panel.edit.display.js +29 -0
- package/lib/components/password/Password.d.ts +6 -0
- package/lib/components/password/Password.form.d.ts +1 -0
- package/lib/components/password/Password.form.js +26 -0
- package/lib/components/password/Password.js +12 -0
- package/lib/components/password/editForm/Password.edit.data.d.ts +18 -0
- package/lib/components/password/editForm/Password.edit.data.js +48 -0
- package/lib/components/password/editForm/Password.edit.display.d.ts +5 -0
- package/lib/components/password/editForm/Password.edit.display.js +8 -0
- package/lib/components/password/editForm/Password.edit.validation.d.ts +5 -0
- package/lib/components/password/editForm/Password.edit.validation.js +16 -0
- package/lib/components/phonenumber/PhoneNumber.d.ts +6 -0
- package/lib/components/phonenumber/PhoneNumber.form.d.ts +1 -0
- package/lib/components/phonenumber/PhoneNumber.form.js +21 -0
- package/lib/components/phonenumber/PhoneNumber.js +12 -0
- package/lib/components/phonenumber/editForm/PhoneNumber.edit.display.d.ts +5 -0
- package/lib/components/phonenumber/editForm/PhoneNumber.edit.display.js +8 -0
- package/lib/components/phonenumber/editForm/PhoneNumber.edit.validation.d.ts +5 -0
- package/lib/components/phonenumber/editForm/PhoneNumber.edit.validation.js +28 -0
- package/lib/components/radio/Radio.d.ts +2 -0
- package/lib/components/radio/Radio.form.d.ts +1 -0
- package/lib/components/radio/Radio.form.js +22 -0
- package/lib/components/radio/Radio.js +45 -0
- package/lib/components/radio/editForm/Radio.edit.data.d.ts +13 -0
- package/lib/components/radio/editForm/Radio.edit.data.js +25 -0
- package/lib/components/radio/editForm/Radio.edit.display.d.ts +5 -0
- package/lib/components/radio/editForm/Radio.edit.display.js +32 -0
- package/lib/components/recaptcha/ReCaptcha.d.ts +5 -0
- package/lib/components/recaptcha/ReCaptcha.js +10 -0
- package/lib/components/select/Select.d.ts +17 -0
- package/lib/components/select/Select.form.d.ts +1 -0
- package/lib/components/select/Select.form.js +27 -0
- package/lib/components/select/Select.js +39 -0
- package/lib/components/select/editForm/Select.edit.data.d.ts +5 -0
- package/lib/components/select/editForm/Select.edit.data.js +16 -0
- package/lib/components/select/editForm/Select.edit.display.d.ts +5 -0
- package/lib/components/select/editForm/Select.edit.display.js +32 -0
- package/lib/components/select/editForm/Select.edit.validation.d.ts +5 -0
- package/lib/components/select/editForm/Select.edit.validation.js +8 -0
- package/lib/components/selectboxes/SelectBoxes.d.ts +6 -0
- package/lib/components/selectboxes/SelectBoxes.form.d.ts +1 -0
- package/lib/components/selectboxes/SelectBoxes.form.js +25 -0
- package/lib/components/selectboxes/SelectBoxes.js +12 -0
- package/lib/components/selectboxes/editForm/SelectBoxes.edit.validation.d.ts +9 -0
- package/lib/components/selectboxes/editForm/SelectBoxes.edit.validation.js +36 -0
- package/lib/components/signature/Signature.d.ts +5 -0
- package/lib/components/signature/Signature.js +10 -0
- package/lib/components/sketchpad/Sketchpad.d.ts +3 -0
- package/lib/components/sketchpad/Sketchpad.js +8 -0
- package/lib/components/survey/Survey.d.ts +5 -0
- package/lib/components/survey/Survey.js +10 -0
- package/lib/components/table/Table.d.ts +6 -0
- package/lib/components/table/Table.form.d.ts +1 -0
- package/lib/components/table/Table.form.js +17 -0
- package/lib/components/table/Table.js +12 -0
- package/lib/components/table/editForm/Table.edit.display.d.ts +5 -0
- package/lib/components/table/editForm/Table.edit.display.js +24 -0
- package/lib/components/tabs/Tabs.d.ts +5 -0
- package/lib/components/tabs/Tabs.js +10 -0
- package/lib/components/tagpad/Tagpad.d.ts +3 -0
- package/lib/components/tagpad/Tagpad.js +8 -0
- package/lib/components/tags/Tags.d.ts +5 -0
- package/lib/components/tags/Tags.js +10 -0
- package/lib/components/textarea/TextArea.d.ts +6 -0
- package/lib/components/textarea/TextArea.form.d.ts +1 -0
- package/lib/components/textarea/TextArea.form.js +16 -0
- package/lib/components/textarea/TextArea.js +12 -0
- package/lib/components/textarea/editForm/TextArea.edit.display.d.ts +20 -0
- package/lib/components/textarea/editForm/TextArea.edit.display.js +20 -0
- package/lib/components/textfield/TextField.d.ts +7 -0
- package/lib/components/textfield/TextField.form.d.ts +1 -0
- package/lib/components/textfield/TextField.form.js +27 -0
- package/lib/components/textfield/TextField.js +16 -0
- package/lib/components/textfield/editForm/TextField.edit.data.d.ts +5 -0
- package/lib/components/textfield/editForm/TextField.edit.data.js +16 -0
- package/lib/components/textfield/editForm/TextField.edit.display.d.ts +5 -0
- package/lib/components/textfield/editForm/TextField.edit.display.js +52 -0
- package/lib/components/textfield/editForm/TextField.edit.validation.d.ts +5 -0
- package/lib/components/textfield/editForm/TextField.edit.validation.js +8 -0
- package/lib/components/time/Time.d.ts +10 -0
- package/lib/components/time/Time.form.d.ts +1 -0
- package/lib/components/time/Time.form.js +31 -0
- package/lib/components/time/Time.js +16 -0
- package/lib/components/time/editForm/Time.edit.data.d.ts +5 -0
- package/lib/components/time/editForm/Time.edit.data.js +16 -0
- package/lib/components/time/editForm/Time.edit.display.d.ts +5 -0
- package/lib/components/time/editForm/Time.edit.display.js +28 -0
- package/lib/components/tooltip/Tooltip.d.ts +35 -0
- package/lib/components/tooltip/Tooltip.js +259 -0
- package/lib/components/unknown/Unknown.d.ts +5 -0
- package/lib/components/unknown/Unknown.js +10 -0
- package/lib/components/url/Url.d.ts +6 -0
- package/lib/components/url/Url.form.d.ts +1 -0
- package/lib/components/url/Url.form.js +26 -0
- package/lib/components/url/Url.js +12 -0
- package/lib/components/url/editForm/Url.edit.data.d.ts +5 -0
- package/lib/components/url/editForm/Url.edit.data.js +8 -0
- package/lib/components/url/editForm/Url.edit.display.d.ts +5 -0
- package/lib/components/url/editForm/Url.edit.display.js +8 -0
- package/lib/components/url/editForm/Url.edit.validation.d.ts +5 -0
- package/lib/components/url/editForm/Url.edit.validation.js +12 -0
- package/lib/components/well/Well.d.ts +6 -0
- package/lib/components/well/Well.form.d.ts +1 -0
- package/lib/components/well/Well.form.js +18 -0
- package/lib/components/well/Well.js +12 -0
- package/lib/displays/index.d.ts +5 -0
- package/lib/displays/index.js +11 -0
- package/lib/index.d.ts +65 -0
- package/lib/index.js +21 -0
- package/lib/plugins/index.d.ts +2 -0
- package/lib/plugins/index.js +3 -0
- package/lib/providers/auth/index.d.ts +2 -0
- package/lib/providers/auth/index.js +3 -0
- package/lib/providers/index.d.ts +5 -0
- package/lib/providers/index.js +11 -0
- package/lib/providers/storage/index.d.ts +2 -0
- package/lib/providers/storage/index.js +3 -0
- package/lib/templates/index.d.ts +2 -0
- package/lib/templates/index.js +3 -0
- package/lib/util/index.d.ts +4 -0
- package/lib/util/index.js +23 -0
- package/lib/util/modalUtils.d.ts +3 -0
- package/lib/util/modalUtils.js +62 -0
- package/lib/widgets/CalendarWidget.d.ts +3 -0
- package/lib/widgets/CalendarWidget.js +116 -0
- package/lib/widgets/index.d.ts +4 -0
- package/lib/widgets/index.js +9 -0
- package/package.json +61 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
type?: undefined;
|
|
5
|
+
input?: undefined;
|
|
6
|
+
weight?: undefined;
|
|
7
|
+
label?: undefined;
|
|
8
|
+
tooltip?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
type: string;
|
|
11
|
+
input: boolean;
|
|
12
|
+
weight: number;
|
|
13
|
+
key: string;
|
|
14
|
+
label: string;
|
|
15
|
+
tooltip: string;
|
|
16
|
+
ignore?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'case',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
type: 'checkbox',
|
|
10
|
+
input: true,
|
|
11
|
+
weight: 70,
|
|
12
|
+
key: 'delimiter',
|
|
13
|
+
label: 'Use Thousands Separator',
|
|
14
|
+
tooltip: 'Separate thousands by local delimiter.',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: 'number',
|
|
18
|
+
input: true,
|
|
19
|
+
weight: 80,
|
|
20
|
+
key: 'decimalLimit',
|
|
21
|
+
label: 'Decimal Places',
|
|
22
|
+
tooltip: 'The maximum number of decimal places.',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type: 'checkbox',
|
|
26
|
+
input: true,
|
|
27
|
+
weight: 90,
|
|
28
|
+
key: 'requireDecimal',
|
|
29
|
+
label: 'Require Decimal',
|
|
30
|
+
tooltip: 'Always show decimals, even if trailing zeros.',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
type?: undefined;
|
|
5
|
+
label?: undefined;
|
|
6
|
+
input?: undefined;
|
|
7
|
+
placeholder?: undefined;
|
|
8
|
+
tooltip?: undefined;
|
|
9
|
+
weight?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
type: string;
|
|
12
|
+
label: string;
|
|
13
|
+
key: string;
|
|
14
|
+
input: boolean;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
tooltip: string;
|
|
17
|
+
weight: number;
|
|
18
|
+
ignore?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'unique',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'validate.minLength',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'validate.maxLength',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'validate.minWords',
|
|
18
|
+
ignore: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'validate.maxWords',
|
|
22
|
+
ignore: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'validate.pattern',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'number',
|
|
30
|
+
label: 'Minimum Value',
|
|
31
|
+
key: 'validate.min',
|
|
32
|
+
input: true,
|
|
33
|
+
placeholder: 'Minimum Value',
|
|
34
|
+
tooltip: 'The minimum value this field must have before the form can be submitted.',
|
|
35
|
+
weight: 150,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 'number',
|
|
39
|
+
label: 'Maximum Value',
|
|
40
|
+
key: 'validate.max',
|
|
41
|
+
input: true,
|
|
42
|
+
placeholder: 'Maximum Value',
|
|
43
|
+
tooltip: 'The maximum value this field can have before the form can be submitted.',
|
|
44
|
+
weight: 160,
|
|
45
|
+
},
|
|
46
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const baseEditForm = js_1.Components.components.panel.editForm;
|
|
8
|
+
const Panel_edit_display_1 = __importDefault(require("./editForm/Panel.edit.display"));
|
|
9
|
+
function default_1(...extend) {
|
|
10
|
+
return baseEditForm([
|
|
11
|
+
{
|
|
12
|
+
key: 'display',
|
|
13
|
+
components: Panel_edit_display_1.default,
|
|
14
|
+
},
|
|
15
|
+
], ...extend);
|
|
16
|
+
}
|
|
17
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const Panel_form_1 = __importDefault(require("./Panel.form"));
|
|
8
|
+
const Panel = js_1.Components.components.panel;
|
|
9
|
+
class PanelComponent extends Panel {
|
|
10
|
+
}
|
|
11
|
+
exports.default = PanelComponent;
|
|
12
|
+
PanelComponent.editForm = Panel_form_1.default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
weight?: undefined;
|
|
5
|
+
type?: undefined;
|
|
6
|
+
input?: undefined;
|
|
7
|
+
label?: undefined;
|
|
8
|
+
placeholder?: undefined;
|
|
9
|
+
tooltip?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
weight: number;
|
|
12
|
+
type: string;
|
|
13
|
+
input: boolean;
|
|
14
|
+
key: string;
|
|
15
|
+
label: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
tooltip: string;
|
|
18
|
+
customConditional(context: any): boolean;
|
|
19
|
+
ignore?: undefined;
|
|
20
|
+
})[];
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'hideLabel',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'autofocus',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'hidden',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
weight: 20,
|
|
18
|
+
type: 'textarea',
|
|
19
|
+
input: true,
|
|
20
|
+
key: 'tooltip',
|
|
21
|
+
label: 'Tooltip',
|
|
22
|
+
placeholder: 'To add a tooltip to this field, enter text here.',
|
|
23
|
+
tooltip: 'Adds a tooltip to the side of this field.',
|
|
24
|
+
customConditional(context) {
|
|
25
|
+
const component = context.instance.options.editComponent;
|
|
26
|
+
return !component.hasOwnProperty('buttonSettings');
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
|
|
7
|
+
const Password_edit_data_1 = __importDefault(require("./editForm/Password.edit.data"));
|
|
8
|
+
const Password_edit_display_1 = __importDefault(require("./editForm/Password.edit.display"));
|
|
9
|
+
const Password_edit_validation_1 = __importDefault(require("./editForm/Password.edit.validation"));
|
|
10
|
+
function default_1(...extend) {
|
|
11
|
+
return (0, TextField_form_1.default)([
|
|
12
|
+
{
|
|
13
|
+
key: 'display',
|
|
14
|
+
components: Password_edit_display_1.default,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'data',
|
|
18
|
+
components: Password_edit_data_1.default,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'validation',
|
|
22
|
+
components: Password_edit_validation_1.default,
|
|
23
|
+
},
|
|
24
|
+
], ...extend);
|
|
25
|
+
}
|
|
26
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const Password_form_1 = __importDefault(require("./Password.form"));
|
|
8
|
+
const Password = js_1.Components.components.password;
|
|
9
|
+
class PasswordComponent extends Password {
|
|
10
|
+
}
|
|
11
|
+
exports.default = PasswordComponent;
|
|
12
|
+
PasswordComponent.editForm = Password_form_1.default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
weight?: undefined;
|
|
5
|
+
type?: undefined;
|
|
6
|
+
tag?: undefined;
|
|
7
|
+
className?: undefined;
|
|
8
|
+
content?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
key: string;
|
|
11
|
+
weight: number;
|
|
12
|
+
type: string;
|
|
13
|
+
tag: string;
|
|
14
|
+
className: string;
|
|
15
|
+
content: string;
|
|
16
|
+
ignore?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'inputFormat',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'persistent',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'protected',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'dbIndex',
|
|
18
|
+
ignore: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'encrypted',
|
|
22
|
+
ignore: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'defaultValue',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'case',
|
|
30
|
+
ignore: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: 'customDefaultValuePanel',
|
|
34
|
+
ignore: true,
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
key: 'calculateValuePanel',
|
|
38
|
+
ignore: true,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'passwordInfo',
|
|
42
|
+
weight: 0,
|
|
43
|
+
type: 'htmlelement',
|
|
44
|
+
tag: 'div',
|
|
45
|
+
className: 'alert alert-info',
|
|
46
|
+
content: 'Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API.',
|
|
47
|
+
},
|
|
48
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'unique',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'validate.minWords',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'validate.maxWords',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const TextField_form_1 = __importDefault(require("../textfield/TextField.form"));
|
|
7
|
+
const PhoneNumber_edit_display_1 = __importDefault(require("./editForm/PhoneNumber.edit.display"));
|
|
8
|
+
const PhoneNumber_edit_validation_1 = __importDefault(require("./editForm/PhoneNumber.edit.validation"));
|
|
9
|
+
function default_1(...extend) {
|
|
10
|
+
return (0, TextField_form_1.default)([
|
|
11
|
+
{
|
|
12
|
+
key: 'display',
|
|
13
|
+
components: PhoneNumber_edit_display_1.default,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: 'validation',
|
|
17
|
+
components: PhoneNumber_edit_validation_1.default,
|
|
18
|
+
},
|
|
19
|
+
], ...extend);
|
|
20
|
+
}
|
|
21
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const PhoneNumber_form_1 = __importDefault(require("./PhoneNumber.form"));
|
|
8
|
+
const PhoneNumber = js_1.Components.components.phoneNumber;
|
|
9
|
+
class PhoneNumberComponent extends PhoneNumber {
|
|
10
|
+
}
|
|
11
|
+
exports.default = PhoneNumberComponent;
|
|
12
|
+
PhoneNumberComponent.editForm = PhoneNumber_form_1.default;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'validateOn',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'validate.minLength',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'validate.maxLength',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'validate.pattern',
|
|
18
|
+
ignore: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'validate.minWords',
|
|
22
|
+
ignore: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'validate.maxWords',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const baseEditForm = js_1.Components.components.radio.editForm;
|
|
8
|
+
const Radio_edit_data_1 = __importDefault(require("./editForm/Radio.edit.data"));
|
|
9
|
+
const Radio_edit_display_1 = __importDefault(require("./editForm/Radio.edit.display"));
|
|
10
|
+
function default_1(...extend) {
|
|
11
|
+
return baseEditForm([
|
|
12
|
+
{
|
|
13
|
+
key: 'display',
|
|
14
|
+
components: Radio_edit_display_1.default,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'data',
|
|
18
|
+
components: Radio_edit_data_1.default,
|
|
19
|
+
},
|
|
20
|
+
], ...extend);
|
|
21
|
+
}
|
|
22
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const js_1 = require("@formio/js");
|
|
7
|
+
const Radio_form_1 = __importDefault(require("./Radio.form"));
|
|
8
|
+
const Radio = js_1.Components.components.radio;
|
|
9
|
+
Radio.editForm = Radio_form_1.default;
|
|
10
|
+
const attach = Radio.prototype.attach;
|
|
11
|
+
Radio.prototype.attach = function (element) {
|
|
12
|
+
const superResult = attach.call(this, element);
|
|
13
|
+
this.loadRefs(element, {
|
|
14
|
+
input: 'multiple',
|
|
15
|
+
wrapper: 'multiple',
|
|
16
|
+
radioGroup: 'single',
|
|
17
|
+
messageContainer: 'single',
|
|
18
|
+
label: 'single',
|
|
19
|
+
});
|
|
20
|
+
return superResult;
|
|
21
|
+
};
|
|
22
|
+
const clearErrorClasses = Radio.prototype.clearErrorClasses;
|
|
23
|
+
Radio.prototype.clearErrorClasses = function (elements) {
|
|
24
|
+
clearErrorClasses.call(this, elements);
|
|
25
|
+
const hiddenInvalidEntryMessage = document.getElementById(`invalid-entry-${this.id}`);
|
|
26
|
+
if (hiddenInvalidEntryMessage) {
|
|
27
|
+
this.refs.label.removeChild(hiddenInvalidEntryMessage);
|
|
28
|
+
}
|
|
29
|
+
this.clearErrorID('aria-labelledby', this.refs.radioGroup);
|
|
30
|
+
};
|
|
31
|
+
const setErrorClasses = Radio.prototype.setErrorClasses;
|
|
32
|
+
Radio.prototype.setErrorClasses = function (elements, dirty, hasErrors, hasMessage) {
|
|
33
|
+
this.clearErrorClasses(elements);
|
|
34
|
+
setErrorClasses.call(this, elements, dirty, hasErrors, hasMessage);
|
|
35
|
+
if (hasErrors) {
|
|
36
|
+
const hiddenInvalidEntryMessage = document.getElementById(`invalid-entry-${this.id}`);
|
|
37
|
+
if (!hiddenInvalidEntryMessage) {
|
|
38
|
+
this.addHiddenMessage(', invalid entry, ', this.refs.label);
|
|
39
|
+
}
|
|
40
|
+
if (this.refs.radioGroup) {
|
|
41
|
+
this.addErrorID('aria-labelledby', this.refs.radioGroup);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.default = Radio;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'multiple',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'clearOnHide',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'redrawOn',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'values',
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
key: 'shortcut',
|
|
21
|
+
ignore: true,
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
key: 'labelPosition',
|
|
6
|
+
ignore: true,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
key: 'placeholder',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'autofocus',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'tabindex',
|
|
18
|
+
ignore: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'hidden',
|
|
22
|
+
ignore: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'hideLabel',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'optionsLabelPosition',
|
|
30
|
+
ignore: true,
|
|
31
|
+
},
|
|
32
|
+
];
|