@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,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 Email_edit_validation_1 = __importDefault(require("./editForm/Email.edit.validation"));
|
|
8
|
+
const Email_edit_display_1 = __importDefault(require("./editForm/Email.edit.display"));
|
|
9
|
+
function default_1(...extend) {
|
|
10
|
+
return (0, TextField_form_1.default)([
|
|
11
|
+
{
|
|
12
|
+
key: 'display',
|
|
13
|
+
components: Email_edit_display_1.default,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
key: 'validation',
|
|
17
|
+
components: Email_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 Email_form_1 = __importDefault(require("./Email.form"));
|
|
8
|
+
const Email = js_1.Components.components.email;
|
|
9
|
+
class EmailComponent extends Email {
|
|
10
|
+
}
|
|
11
|
+
exports.default = EmailComponent;
|
|
12
|
+
EmailComponent.editForm = Email_form_1.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.fieldset.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm([
|
|
7
|
+
{
|
|
8
|
+
key: 'display',
|
|
9
|
+
components: [
|
|
10
|
+
{
|
|
11
|
+
key: 'placeholder',
|
|
12
|
+
ignore: true
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: 'tabindex',
|
|
16
|
+
ignore: true
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
], ...extend);
|
|
21
|
+
}
|
|
22
|
+
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 Fieldset_form_1 = __importDefault(require("./Fieldset.form"));
|
|
8
|
+
const Fieldset = js_1.Components.components.fieldset;
|
|
9
|
+
class FieldsetComponent extends Fieldset {
|
|
10
|
+
}
|
|
11
|
+
exports.default = FieldsetComponent;
|
|
12
|
+
FieldsetComponent.editForm = Fieldset_form_1.default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import editForm from './File.form';
|
|
2
|
+
interface IFileRefs {
|
|
3
|
+
fileLink: HTMLElement[];
|
|
4
|
+
fileToSyncRemove: HTMLElement[];
|
|
5
|
+
fileBrowse: HTMLElement;
|
|
6
|
+
}
|
|
7
|
+
declare const FileComponent_base: any;
|
|
8
|
+
export default class FileComponent extends FileComponent_base {
|
|
9
|
+
static editForm: typeof editForm;
|
|
10
|
+
refs: IFileRefs;
|
|
11
|
+
activateRemovalAt(element: HTMLElement[], message: string): void;
|
|
12
|
+
activateRemoveLink(event: Event, index: number): void;
|
|
13
|
+
activateFileStatusRemoveLink(event: Event, index: number): void;
|
|
14
|
+
attach(element: HTMLElement): any;
|
|
15
|
+
onUploadDone(fileUpload: {
|
|
16
|
+
status: any;
|
|
17
|
+
}): void;
|
|
18
|
+
handleFilesToUpload(files: any[]): void;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -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.file.editForm;
|
|
8
|
+
const File_edit_display_1 = __importDefault(require("./editForm/File.edit.display"));
|
|
9
|
+
function default_1(...extend) {
|
|
10
|
+
return baseEditForm([
|
|
11
|
+
{
|
|
12
|
+
key: 'display',
|
|
13
|
+
components: File_edit_display_1.default,
|
|
14
|
+
},
|
|
15
|
+
], ...extend);
|
|
16
|
+
}
|
|
17
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,87 @@
|
|
|
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 File_form_1 = __importDefault(require("./File.form"));
|
|
8
|
+
const File = js_1.Components.components.file;
|
|
9
|
+
class FileComponent extends File {
|
|
10
|
+
activateRemovalAt(element, message) {
|
|
11
|
+
let focusedElem;
|
|
12
|
+
if (element && element.length) {
|
|
13
|
+
focusedElem = element[0];
|
|
14
|
+
}
|
|
15
|
+
else if (this.refs.fileBrowse) {
|
|
16
|
+
focusedElem = this.refs.fileBrowse;
|
|
17
|
+
}
|
|
18
|
+
const params = { id: `removed-${this.id}-${this.component.key}` };
|
|
19
|
+
this.addHiddenMessageBeforeChild(focusedElem, focusedElem.children[0], message, params);
|
|
20
|
+
focusedElem.focus();
|
|
21
|
+
}
|
|
22
|
+
activateRemoveLink(event, index) {
|
|
23
|
+
super.activateRemoveLink(event, index);
|
|
24
|
+
this.activateRemovalAt(this.refs.fileLink, this.t('File was removed. '));
|
|
25
|
+
}
|
|
26
|
+
activateFileStatusRemoveLink(event, index) {
|
|
27
|
+
super.activateFileStatusRemoveLink(event, index);
|
|
28
|
+
this.activateRemovalAt(this.refs.fileToSyncRemove, this.t('Error message was removed. '));
|
|
29
|
+
}
|
|
30
|
+
attach(element) {
|
|
31
|
+
const superAttach = super.attach(element);
|
|
32
|
+
const hiddenMessagesIDs = [`uploaded-${this.id}-${this.component.key}`, `notuploaded-${this.id}-${this.component.key}`, `removed-${this.id}-${this.component.key}`];
|
|
33
|
+
this.refs.fileLink.forEach((fileLink) => {
|
|
34
|
+
this.addEventListener(fileLink, 'focusout', () => this.hiddenMessageRemovalByID(hiddenMessagesIDs));
|
|
35
|
+
});
|
|
36
|
+
this.refs.fileToSyncRemove.forEach((fileStatusRemove) => {
|
|
37
|
+
this.addEventListener(fileStatusRemove, 'focusout', () => this.hiddenMessageRemovalByID(hiddenMessagesIDs));
|
|
38
|
+
});
|
|
39
|
+
this.addEventListener(this.refs.fileBrowse, 'focusout', () => this.hiddenMessageRemovalByID(hiddenMessagesIDs));
|
|
40
|
+
if (this.refs.fileBrowse) {
|
|
41
|
+
this.removeEventListener(this.refs.fileBrowse, 'click');
|
|
42
|
+
this.addEventListener(this.refs.fileBrowse, 'click', (event) => {
|
|
43
|
+
event.preventDefault();
|
|
44
|
+
// Set focus on a hidden empty element to prevent unneeded content announcement
|
|
45
|
+
const hiddenEmptyElem = document.getElementById(`invisible-${this.id}-${this.component.key}`);
|
|
46
|
+
hiddenEmptyElem.textContent = ' ';
|
|
47
|
+
hiddenEmptyElem.focus();
|
|
48
|
+
this.browseFiles(this.browseOptions)
|
|
49
|
+
.then((files) => {
|
|
50
|
+
this.handleFilesToUpload(files);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
return superAttach;
|
|
55
|
+
}
|
|
56
|
+
// Adds action message and handles focus
|
|
57
|
+
onUploadDone(fileUpload) {
|
|
58
|
+
let focusedElem = null;
|
|
59
|
+
let message = '';
|
|
60
|
+
const params = { id: '' };
|
|
61
|
+
if (fileUpload.status !== 'error') {
|
|
62
|
+
if (this.refs.fileLink && this.refs.fileLink.length) {
|
|
63
|
+
focusedElem = this.refs.fileLink[this.refs.fileLink.length - 1];
|
|
64
|
+
message = this.t('File was uploaded. ');
|
|
65
|
+
params.id = `uploaded-${this.id}-${this.component.key}`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
if (this.refs.fileToSyncRemove && this.refs.fileToSyncRemove.length) {
|
|
70
|
+
focusedElem = this.refs.fileToSyncRemove[this.refs.fileToSyncRemove.length - 1];
|
|
71
|
+
message = this.t("File wasn't uploaded. ");
|
|
72
|
+
params.id = `notuploaded-${this.id}-${this.component.key}`;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
this.addHiddenMessageBeforeChild(focusedElem, focusedElem.children[0], message, params);
|
|
76
|
+
focusedElem.focus();
|
|
77
|
+
}
|
|
78
|
+
handleFilesToUpload(files) {
|
|
79
|
+
// Set focus on a hidden message to announce about start of file uploading
|
|
80
|
+
const uploadingProcess = document.getElementById(`invisible-${this.id}-${this.component.key}`);
|
|
81
|
+
uploadingProcess.textContent = this.t('Uploading is in process');
|
|
82
|
+
uploadingProcess.focus();
|
|
83
|
+
super.handleFilesToUpload(files, this.onUploadDone);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
exports.default = FileComponent;
|
|
87
|
+
FileComponent.editForm = File_form_1.default;
|
|
@@ -0,0 +1,24 @@
|
|
|
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: 'hideLabel',
|
|
22
|
+
ignore: true,
|
|
23
|
+
},
|
|
24
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const Form = js_1.Components.components.form;
|
|
5
|
+
class FormComponent extends Form {
|
|
6
|
+
static get builderInfo() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = FormComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.hidden.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm(...extend);
|
|
7
|
+
}
|
|
8
|
+
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 Hidden_form_1 = __importDefault(require("./Hidden.form"));
|
|
8
|
+
const Hidden = js_1.Components.components.hidden;
|
|
9
|
+
class HiddenComponent extends Hidden {
|
|
10
|
+
}
|
|
11
|
+
exports.default = HiddenComponent;
|
|
12
|
+
HiddenComponent.editForm = Hidden_form_1.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const baseEditForm = js_1.Components.components.htmlelement.editForm;
|
|
5
|
+
function default_1(...extend) {
|
|
6
|
+
return baseEditForm(...extend);
|
|
7
|
+
}
|
|
8
|
+
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 HTML_form_1 = __importDefault(require("./HTML.form"));
|
|
8
|
+
const HTML = js_1.Components.components.htmlelement;
|
|
9
|
+
class HTMLComponent extends HTML {
|
|
10
|
+
}
|
|
11
|
+
exports.default = HTMLComponent;
|
|
12
|
+
HTMLComponent.editForm = HTML_form_1.default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import address from './address/Address';
|
|
2
|
+
import button from './button/Button';
|
|
3
|
+
import checkbox from './checkbox/Checkbox';
|
|
4
|
+
import columns from './columns/Columns';
|
|
5
|
+
import container from './container/Container';
|
|
6
|
+
import content from './content/Content';
|
|
7
|
+
import currency from './currency/Currency';
|
|
8
|
+
import datagrid from './datagrid/DataGrid';
|
|
9
|
+
import datamap from './datamap/DataMap';
|
|
10
|
+
import datatable from './datatable/DataTable';
|
|
11
|
+
import datetime from './datetime/DateTime';
|
|
12
|
+
import day from './day/Day';
|
|
13
|
+
import dynamicWizard from './dynamicwizard/DynamicWizard';
|
|
14
|
+
import editgrid from './editgrid/EditGrid';
|
|
15
|
+
import email from './email/Email';
|
|
16
|
+
import fieldset from './fieldset/Fieldset';
|
|
17
|
+
import file from './file/File';
|
|
18
|
+
import form from './form/Form';
|
|
19
|
+
import hidden from './hidden/Hidden';
|
|
20
|
+
import htmlelement from './html/HTML';
|
|
21
|
+
import number from './number/Number';
|
|
22
|
+
import panel from './panel/Panel';
|
|
23
|
+
import password from './password/Password';
|
|
24
|
+
import phoneNumber from './phonenumber/PhoneNumber';
|
|
25
|
+
import recaptcha from './recaptcha/ReCaptcha';
|
|
26
|
+
import select from './select/Select';
|
|
27
|
+
import selectboxes from './selectboxes/SelectBoxes';
|
|
28
|
+
import signature from './signature/Signature';
|
|
29
|
+
import sketchpad from './sketchpad/Sketchpad';
|
|
30
|
+
import survey from './survey/Survey';
|
|
31
|
+
import table from './table/Table';
|
|
32
|
+
import tabs from './tabs/Tabs';
|
|
33
|
+
import tagpad from './tagpad/Tagpad';
|
|
34
|
+
import tags from './tags/Tags';
|
|
35
|
+
import textarea from './textarea/TextArea';
|
|
36
|
+
import textfield from './textfield/TextField';
|
|
37
|
+
import time from './time/Time';
|
|
38
|
+
import unknown from './unknown/Unknown';
|
|
39
|
+
import url from './url/Url';
|
|
40
|
+
import well from './well/Well';
|
|
41
|
+
declare const _default: {
|
|
42
|
+
address: typeof address;
|
|
43
|
+
component: any;
|
|
44
|
+
button: typeof button;
|
|
45
|
+
checkbox: typeof checkbox;
|
|
46
|
+
columns: typeof columns;
|
|
47
|
+
container: typeof container;
|
|
48
|
+
content: typeof content;
|
|
49
|
+
currency: typeof currency;
|
|
50
|
+
day: typeof day;
|
|
51
|
+
dynamicWizard: typeof dynamicWizard;
|
|
52
|
+
datagrid: typeof datagrid;
|
|
53
|
+
datamap: typeof datamap;
|
|
54
|
+
datatable: typeof datatable;
|
|
55
|
+
datetime: typeof datetime;
|
|
56
|
+
editgrid: typeof editgrid;
|
|
57
|
+
email: typeof email;
|
|
58
|
+
fieldset: typeof fieldset;
|
|
59
|
+
file: typeof file;
|
|
60
|
+
form: typeof form;
|
|
61
|
+
hidden: typeof hidden;
|
|
62
|
+
htmlelement: typeof htmlelement;
|
|
63
|
+
input: any;
|
|
64
|
+
nested: any;
|
|
65
|
+
number: typeof number;
|
|
66
|
+
panel: typeof panel;
|
|
67
|
+
password: typeof password;
|
|
68
|
+
phoneNumber: typeof phoneNumber;
|
|
69
|
+
radio: any;
|
|
70
|
+
recaptcha: typeof recaptcha;
|
|
71
|
+
select: typeof select;
|
|
72
|
+
selectboxes: typeof selectboxes;
|
|
73
|
+
signature: typeof signature;
|
|
74
|
+
sketchpad: typeof sketchpad;
|
|
75
|
+
survey: typeof survey;
|
|
76
|
+
table: typeof table;
|
|
77
|
+
tabs: typeof tabs;
|
|
78
|
+
tagpad: typeof tagpad;
|
|
79
|
+
tags: typeof tags;
|
|
80
|
+
textarea: typeof textarea;
|
|
81
|
+
textfield: typeof textfield;
|
|
82
|
+
time: typeof time;
|
|
83
|
+
unknown: typeof unknown;
|
|
84
|
+
url: typeof url;
|
|
85
|
+
well: typeof well;
|
|
86
|
+
};
|
|
87
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
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 Address_1 = __importDefault(require("./address/Address"));
|
|
7
|
+
const Button_1 = __importDefault(require("./button/Button"));
|
|
8
|
+
const Checkbox_1 = __importDefault(require("./checkbox/Checkbox"));
|
|
9
|
+
const Columns_1 = __importDefault(require("./columns/Columns"));
|
|
10
|
+
const Component_1 = __importDefault(require("./component/Component"));
|
|
11
|
+
const Container_1 = __importDefault(require("./container/Container"));
|
|
12
|
+
const Content_1 = __importDefault(require("./content/Content"));
|
|
13
|
+
const Currency_1 = __importDefault(require("./currency/Currency"));
|
|
14
|
+
const DataGrid_1 = __importDefault(require("./datagrid/DataGrid"));
|
|
15
|
+
const DataMap_1 = __importDefault(require("./datamap/DataMap"));
|
|
16
|
+
const DataTable_1 = __importDefault(require("./datatable/DataTable"));
|
|
17
|
+
const DateTime_1 = __importDefault(require("./datetime/DateTime"));
|
|
18
|
+
const Day_1 = __importDefault(require("./day/Day"));
|
|
19
|
+
const DynamicWizard_1 = __importDefault(require("./dynamicwizard/DynamicWizard"));
|
|
20
|
+
const EditGrid_1 = __importDefault(require("./editgrid/EditGrid"));
|
|
21
|
+
const Email_1 = __importDefault(require("./email/Email"));
|
|
22
|
+
const Fieldset_1 = __importDefault(require("./fieldset/Fieldset"));
|
|
23
|
+
const File_1 = __importDefault(require("./file/File"));
|
|
24
|
+
const Form_1 = __importDefault(require("./form/Form"));
|
|
25
|
+
const Hidden_1 = __importDefault(require("./hidden/Hidden"));
|
|
26
|
+
const HTML_1 = __importDefault(require("./html/HTML"));
|
|
27
|
+
const Input_1 = __importDefault(require("./input/Input"));
|
|
28
|
+
const NestedComponent_1 = __importDefault(require("./nested/NestedComponent"));
|
|
29
|
+
const Number_1 = __importDefault(require("./number/Number"));
|
|
30
|
+
const Panel_1 = __importDefault(require("./panel/Panel"));
|
|
31
|
+
const Password_1 = __importDefault(require("./password/Password"));
|
|
32
|
+
const PhoneNumber_1 = __importDefault(require("./phonenumber/PhoneNumber"));
|
|
33
|
+
const Radio_1 = __importDefault(require("./radio/Radio"));
|
|
34
|
+
const ReCaptcha_1 = __importDefault(require("./recaptcha/ReCaptcha"));
|
|
35
|
+
const Select_1 = __importDefault(require("./select/Select"));
|
|
36
|
+
const SelectBoxes_1 = __importDefault(require("./selectboxes/SelectBoxes"));
|
|
37
|
+
const Signature_1 = __importDefault(require("./signature/Signature"));
|
|
38
|
+
const Sketchpad_1 = __importDefault(require("./sketchpad/Sketchpad"));
|
|
39
|
+
const Survey_1 = __importDefault(require("./survey/Survey"));
|
|
40
|
+
const Table_1 = __importDefault(require("./table/Table"));
|
|
41
|
+
const Tabs_1 = __importDefault(require("./tabs/Tabs"));
|
|
42
|
+
const Tagpad_1 = __importDefault(require("./tagpad/Tagpad"));
|
|
43
|
+
const Tags_1 = __importDefault(require("./tags/Tags"));
|
|
44
|
+
const TextArea_1 = __importDefault(require("./textarea/TextArea"));
|
|
45
|
+
const TextField_1 = __importDefault(require("./textfield/TextField"));
|
|
46
|
+
const Time_1 = __importDefault(require("./time/Time"));
|
|
47
|
+
const Unknown_1 = __importDefault(require("./unknown/Unknown"));
|
|
48
|
+
const Url_1 = __importDefault(require("./url/Url"));
|
|
49
|
+
const Well_1 = __importDefault(require("./well/Well"));
|
|
50
|
+
exports.default = {
|
|
51
|
+
address: Address_1.default,
|
|
52
|
+
component: Component_1.default,
|
|
53
|
+
button: Button_1.default,
|
|
54
|
+
checkbox: Checkbox_1.default,
|
|
55
|
+
columns: Columns_1.default,
|
|
56
|
+
container: Container_1.default,
|
|
57
|
+
content: Content_1.default,
|
|
58
|
+
currency: Currency_1.default,
|
|
59
|
+
day: Day_1.default,
|
|
60
|
+
dynamicWizard: DynamicWizard_1.default,
|
|
61
|
+
datagrid: DataGrid_1.default,
|
|
62
|
+
datamap: DataMap_1.default,
|
|
63
|
+
datatable: DataTable_1.default,
|
|
64
|
+
datetime: DateTime_1.default,
|
|
65
|
+
editgrid: EditGrid_1.default,
|
|
66
|
+
email: Email_1.default,
|
|
67
|
+
fieldset: Fieldset_1.default,
|
|
68
|
+
file: File_1.default,
|
|
69
|
+
form: Form_1.default,
|
|
70
|
+
hidden: Hidden_1.default,
|
|
71
|
+
htmlelement: HTML_1.default,
|
|
72
|
+
input: Input_1.default,
|
|
73
|
+
nested: NestedComponent_1.default,
|
|
74
|
+
number: Number_1.default,
|
|
75
|
+
panel: Panel_1.default,
|
|
76
|
+
password: Password_1.default,
|
|
77
|
+
phoneNumber: PhoneNumber_1.default,
|
|
78
|
+
radio: Radio_1.default,
|
|
79
|
+
recaptcha: ReCaptcha_1.default,
|
|
80
|
+
select: Select_1.default,
|
|
81
|
+
selectboxes: SelectBoxes_1.default,
|
|
82
|
+
signature: Signature_1.default,
|
|
83
|
+
sketchpad: Sketchpad_1.default,
|
|
84
|
+
survey: Survey_1.default,
|
|
85
|
+
table: Table_1.default,
|
|
86
|
+
tabs: Tabs_1.default,
|
|
87
|
+
tagpad: Tagpad_1.default,
|
|
88
|
+
tags: Tags_1.default,
|
|
89
|
+
textarea: TextArea_1.default,
|
|
90
|
+
textfield: TextField_1.default,
|
|
91
|
+
time: Time_1.default,
|
|
92
|
+
unknown: Unknown_1.default,
|
|
93
|
+
url: Url_1.default,
|
|
94
|
+
well: Well_1.default,
|
|
95
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const Input = js_1.Components.components.input;
|
|
5
|
+
const attachElement = Input.prototype.attachElement;
|
|
6
|
+
Input.prototype.attachElement = function (element, index) {
|
|
7
|
+
const superAttachElement = attachElement.call(this, element, index);
|
|
8
|
+
if ((this.isFirefox() || this.isIE()) && this.refs.input && this.refs.input.length) {
|
|
9
|
+
this.refs.input.forEach((input) => {
|
|
10
|
+
this.addEventListener(input, 'focus', () => {
|
|
11
|
+
this.refs.messageContainer.setAttribute('aria-live', 'polite');
|
|
12
|
+
});
|
|
13
|
+
this.addEventListener(input, 'focusout', () => {
|
|
14
|
+
this.refs.messageContainer.removeAttribute('aria-live');
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
return superAttachElement;
|
|
19
|
+
};
|
|
20
|
+
exports.default = Input;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const NestedComponent = js_1.Components.components.nested;
|
|
5
|
+
const collapse = NestedComponent.prototype.collapse;
|
|
6
|
+
NestedComponent.prototype.collapse = function (value) {
|
|
7
|
+
return collapse.call(this, value).then(() => {
|
|
8
|
+
var _a;
|
|
9
|
+
if (this.component.type === 'panel' && this.refs.header) {
|
|
10
|
+
this.refs.header.children[0].setAttribute('aria-expanded', !this._collapsed);
|
|
11
|
+
const panelButton = (_a = this.refs.header.querySelector('[role="button"]')) !== null && _a !== void 0 ? _a : this.refs.header;
|
|
12
|
+
if (panelButton) {
|
|
13
|
+
panelButton.focus();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
exports.default = NestedComponent;
|
|
@@ -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 Number_edit_data_1 = __importDefault(require("./editForm/Number.edit.data"));
|
|
8
|
+
const Number_edit_display_1 = __importDefault(require("./editForm/Number.edit.display"));
|
|
9
|
+
const Number_edit_validation_1 = __importDefault(require("./editForm/Number.edit.validation"));
|
|
10
|
+
function default_1(...extend) {
|
|
11
|
+
return (0, TextField_form_1.default)([
|
|
12
|
+
{
|
|
13
|
+
key: 'display',
|
|
14
|
+
components: Number_edit_display_1.default,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
key: 'data',
|
|
18
|
+
components: Number_edit_data_1.default,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'validation',
|
|
22
|
+
components: Number_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 Number_form_1 = __importDefault(require("./Number.form"));
|
|
8
|
+
const NumberComp = js_1.Components.components.number;
|
|
9
|
+
class NumberComponent extends NumberComp {
|
|
10
|
+
}
|
|
11
|
+
exports.default = NumberComponent;
|
|
12
|
+
NumberComponent.editForm = Number_form_1.default;
|