@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,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const DataGrid = js_1.Components.components.datagrid;
|
|
5
|
+
class DataGridComponent extends DataGrid {
|
|
6
|
+
static get builderInfo() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = DataGridComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const DataMap = js_1.Components.components.datamap;
|
|
5
|
+
class DataMapComponent extends DataMap {
|
|
6
|
+
static get builderInfo() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = DataMapComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
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.datetime.editForm;
|
|
8
|
+
const DateTime_edit_display_1 = __importDefault(require("./editForm/DateTime.edit.display"));
|
|
9
|
+
const DateTime_edit_data_1 = __importDefault(require("./editForm/DateTime.edit.data"));
|
|
10
|
+
const DateTime_edit_validation_1 = __importDefault(require("./editForm/DateTime.edit.validation"));
|
|
11
|
+
function default_1(...extend) {
|
|
12
|
+
return baseEditForm([
|
|
13
|
+
{
|
|
14
|
+
key: 'display',
|
|
15
|
+
components: DateTime_edit_display_1.default,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: 'data',
|
|
19
|
+
components: DateTime_edit_data_1.default,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: 'validation',
|
|
23
|
+
components: DateTime_edit_validation_1.default,
|
|
24
|
+
},
|
|
25
|
+
], ...extend);
|
|
26
|
+
}
|
|
27
|
+
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 DateTime_form_1 = __importDefault(require("./DateTime.form"));
|
|
8
|
+
const DateTime = js_1.Components.components.datetime;
|
|
9
|
+
class DateTimeComponent extends DateTime {
|
|
10
|
+
}
|
|
11
|
+
exports.default = DateTimeComponent;
|
|
12
|
+
DateTimeComponent.editForm = DateTime_form_1.default;
|
|
@@ -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: 'hidden',
|
|
18
|
+
ignore: true,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: 'hideLabel',
|
|
22
|
+
ignore: true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'tabindex',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'shortcutButtons',
|
|
30
|
+
ignore: true,
|
|
31
|
+
},
|
|
32
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import editForm from './Day.form';
|
|
2
|
+
interface IDayRefs {
|
|
3
|
+
day: any;
|
|
4
|
+
month: any;
|
|
5
|
+
year: any;
|
|
6
|
+
}
|
|
7
|
+
declare const DayComponent_base: any;
|
|
8
|
+
export default class DayComponent extends DayComponent_base {
|
|
9
|
+
static editForm: typeof editForm;
|
|
10
|
+
refs: IDayRefs;
|
|
11
|
+
clearErrorClasses(elements: any[]): void;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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.component.editForm;
|
|
8
|
+
const Day_edit_data_1 = __importDefault(require("./editForm/Day.edit.data"));
|
|
9
|
+
const Day_edit_day_1 = __importDefault(require("./editForm/Day.edit.day"));
|
|
10
|
+
const Day_edit_display_1 = __importDefault(require("./editForm/Day.edit.display"));
|
|
11
|
+
const Day_edit_validation_1 = __importDefault(require("./editForm/Day.edit.validation"));
|
|
12
|
+
const Day_edit_year_1 = __importDefault(require("./editForm/Day.edit.year"));
|
|
13
|
+
function default_1(...extend) {
|
|
14
|
+
return baseEditForm([
|
|
15
|
+
{
|
|
16
|
+
key: 'display',
|
|
17
|
+
components: Day_edit_display_1.default,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: 'day',
|
|
21
|
+
label: 'Day',
|
|
22
|
+
weight: 3,
|
|
23
|
+
components: Day_edit_day_1.default,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
key: 'year',
|
|
27
|
+
label: 'Year',
|
|
28
|
+
weight: 3,
|
|
29
|
+
components: Day_edit_year_1.default,
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
key: 'data',
|
|
33
|
+
components: Day_edit_data_1.default,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'validation',
|
|
37
|
+
components: Day_edit_validation_1.default,
|
|
38
|
+
},
|
|
39
|
+
], ...extend);
|
|
40
|
+
}
|
|
41
|
+
exports.default = default_1;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 Day_form_1 = __importDefault(require("./Day.form"));
|
|
8
|
+
const Day = js_1.Components.components.day;
|
|
9
|
+
class DayComponent extends Day {
|
|
10
|
+
clearErrorClasses(elements) {
|
|
11
|
+
const { day, month, year } = this.refs;
|
|
12
|
+
super.clearErrorClasses([day, month, year]);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.default = DayComponent;
|
|
16
|
+
DayComponent.editForm = Day_form_1.default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
wieght: number;
|
|
3
|
+
type: string;
|
|
4
|
+
datasrc: string;
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
data: {
|
|
8
|
+
values: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
weight?: undefined;
|
|
14
|
+
input?: undefined;
|
|
15
|
+
placeholder?: undefined;
|
|
16
|
+
tooltip?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
weight: number;
|
|
19
|
+
type: string;
|
|
20
|
+
input: boolean;
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
wieght?: undefined;
|
|
26
|
+
datasrc?: undefined;
|
|
27
|
+
data?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
weight: number;
|
|
30
|
+
type: string;
|
|
31
|
+
label: string;
|
|
32
|
+
tooltip: string;
|
|
33
|
+
key: string;
|
|
34
|
+
input: boolean;
|
|
35
|
+
wieght?: undefined;
|
|
36
|
+
datasrc?: undefined;
|
|
37
|
+
data?: undefined;
|
|
38
|
+
placeholder?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
wieght: 200,
|
|
6
|
+
type: 'select',
|
|
7
|
+
datasrc: 'values',
|
|
8
|
+
key: 'fields.day.type',
|
|
9
|
+
label: 'Type',
|
|
10
|
+
data: {
|
|
11
|
+
values: [
|
|
12
|
+
{
|
|
13
|
+
label: 'Number',
|
|
14
|
+
value: 'number'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: 'Select',
|
|
18
|
+
value: 'select'
|
|
19
|
+
},
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
weight: 210,
|
|
25
|
+
type: 'textfield',
|
|
26
|
+
input: true,
|
|
27
|
+
key: 'fields.day.placeholder',
|
|
28
|
+
label: 'Placeholder',
|
|
29
|
+
placeholder: 'Day Placeholder',
|
|
30
|
+
tooltip: 'The placeholder text that will appear when Day field is empty.'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
weight: 215,
|
|
34
|
+
type: 'checkbox',
|
|
35
|
+
label: 'Hidden',
|
|
36
|
+
tooltip: 'Hide the Day part of the component.',
|
|
37
|
+
key: 'fields.day.hide',
|
|
38
|
+
input: true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
weight: 214,
|
|
42
|
+
type: 'checkbox',
|
|
43
|
+
label: 'Day First',
|
|
44
|
+
tooltip: 'Display the Day field before the Month field.',
|
|
45
|
+
key: 'dayFirst',
|
|
46
|
+
input: true,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
weight?: undefined;
|
|
5
|
+
type?: undefined;
|
|
6
|
+
label?: undefined;
|
|
7
|
+
tooltip?: undefined;
|
|
8
|
+
input?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
weight: number;
|
|
11
|
+
type: string;
|
|
12
|
+
label: string;
|
|
13
|
+
tooltip: string;
|
|
14
|
+
key: string;
|
|
15
|
+
input: boolean;
|
|
16
|
+
ignore?: undefined;
|
|
17
|
+
})[];
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
weight: 213,
|
|
18
|
+
type: 'checkbox',
|
|
19
|
+
label: 'Use Locale Settings',
|
|
20
|
+
tooltip: 'Use locale settings to display day.',
|
|
21
|
+
key: 'useLocaleSettings',
|
|
22
|
+
input: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
key: 'tabindex',
|
|
26
|
+
ignore: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
key: 'hidden',
|
|
30
|
+
ignore: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
key: 'hideLabel',
|
|
34
|
+
ignore: true,
|
|
35
|
+
},
|
|
36
|
+
];
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
wieght: number;
|
|
3
|
+
type: string;
|
|
4
|
+
datasrc: string;
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
data: {
|
|
8
|
+
values: {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}[];
|
|
12
|
+
};
|
|
13
|
+
weight?: undefined;
|
|
14
|
+
input?: undefined;
|
|
15
|
+
placeholder?: undefined;
|
|
16
|
+
tooltip?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
weight: number;
|
|
19
|
+
type: string;
|
|
20
|
+
input: boolean;
|
|
21
|
+
key: string;
|
|
22
|
+
label: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
wieght?: undefined;
|
|
26
|
+
datasrc?: undefined;
|
|
27
|
+
data?: undefined;
|
|
28
|
+
} | {
|
|
29
|
+
weight: number;
|
|
30
|
+
type: string;
|
|
31
|
+
label: string;
|
|
32
|
+
tooltip: string;
|
|
33
|
+
key: string;
|
|
34
|
+
input: boolean;
|
|
35
|
+
wieght?: undefined;
|
|
36
|
+
datasrc?: undefined;
|
|
37
|
+
data?: undefined;
|
|
38
|
+
placeholder?: undefined;
|
|
39
|
+
})[];
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
wieght: 200,
|
|
6
|
+
type: 'select',
|
|
7
|
+
datasrc: 'values',
|
|
8
|
+
key: 'fields.month.type',
|
|
9
|
+
label: 'Type of input',
|
|
10
|
+
data: {
|
|
11
|
+
values: [
|
|
12
|
+
{
|
|
13
|
+
label: 'Number',
|
|
14
|
+
value: 'number'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: 'Select',
|
|
18
|
+
value: 'select'
|
|
19
|
+
},
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
weight: 210,
|
|
25
|
+
type: 'textfield',
|
|
26
|
+
input: true,
|
|
27
|
+
key: 'fields.month.placeholder',
|
|
28
|
+
label: 'Placeholder',
|
|
29
|
+
placeholder: 'Month Placeholder',
|
|
30
|
+
tooltip: 'The placeholder text that will appear when Month field is empty.'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
weight: 215,
|
|
34
|
+
type: 'checkbox',
|
|
35
|
+
label: 'Hidden',
|
|
36
|
+
tooltip: 'Hide the Month part of the component.',
|
|
37
|
+
key: 'fields.month.hide',
|
|
38
|
+
input: true
|
|
39
|
+
},
|
|
40
|
+
];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
key: string;
|
|
3
|
+
ignore: boolean;
|
|
4
|
+
weight?: undefined;
|
|
5
|
+
type?: undefined;
|
|
6
|
+
label?: undefined;
|
|
7
|
+
tooltip?: undefined;
|
|
8
|
+
input?: undefined;
|
|
9
|
+
placeholder?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
weight: number;
|
|
12
|
+
type: string;
|
|
13
|
+
label: string;
|
|
14
|
+
tooltip: string;
|
|
15
|
+
key: string;
|
|
16
|
+
input: boolean;
|
|
17
|
+
ignore?: undefined;
|
|
18
|
+
placeholder?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
weight: number;
|
|
21
|
+
type: string;
|
|
22
|
+
label: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
tooltip: string;
|
|
25
|
+
key: string;
|
|
26
|
+
input: boolean;
|
|
27
|
+
ignore?: undefined;
|
|
28
|
+
})[];
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
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.required',
|
|
10
|
+
ignore: true,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
key: 'validate.unique',
|
|
14
|
+
ignore: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
weight: 0,
|
|
18
|
+
type: 'checkbox',
|
|
19
|
+
label: 'Require Day',
|
|
20
|
+
tooltip: 'A required field must be filled in before the form can be submitted.',
|
|
21
|
+
key: 'fields.day.required',
|
|
22
|
+
input: true,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
weight: 10,
|
|
26
|
+
type: 'checkbox',
|
|
27
|
+
label: 'Require Month',
|
|
28
|
+
tooltip: 'A required field must be filled in before the form can be submitted.',
|
|
29
|
+
key: 'fields.month.required',
|
|
30
|
+
input: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
weight: 20,
|
|
34
|
+
type: 'checkbox',
|
|
35
|
+
label: 'Require Year',
|
|
36
|
+
tooltip: 'A required field must be filled in before the form can be submitted.',
|
|
37
|
+
key: 'fields.year.required',
|
|
38
|
+
input: true,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
weight: 40,
|
|
42
|
+
type: 'textfield',
|
|
43
|
+
label: 'Minimum Day',
|
|
44
|
+
placeholder: 'yyyy-MM-dd',
|
|
45
|
+
tooltip: 'A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, \'days\')',
|
|
46
|
+
key: 'minDate',
|
|
47
|
+
input: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
weight: 30,
|
|
51
|
+
type: 'textfield',
|
|
52
|
+
label: 'Maximum Day',
|
|
53
|
+
placeholder: 'yyyy-MM-dd',
|
|
54
|
+
tooltip: 'A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, \'days\')',
|
|
55
|
+
key: 'maxDate',
|
|
56
|
+
input: true,
|
|
57
|
+
},
|
|
58
|
+
];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = [
|
|
4
|
+
{
|
|
5
|
+
weight: 203,
|
|
6
|
+
type: 'number',
|
|
7
|
+
input: true,
|
|
8
|
+
key: 'fields.year.minYear',
|
|
9
|
+
label: 'Minimum Year',
|
|
10
|
+
placeholder: '1900',
|
|
11
|
+
tooltip: 'The minimum year that can be entered.',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
weight: 204,
|
|
15
|
+
type: 'number',
|
|
16
|
+
input: true,
|
|
17
|
+
key: 'fields.year.maxYear',
|
|
18
|
+
label: 'Maximum Year',
|
|
19
|
+
placeholder: '2030',
|
|
20
|
+
tooltip: 'The maximum year that can be entered.',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const js_1 = require("@formio/js");
|
|
4
|
+
const EditGrid = js_1.Components.components.editgrid;
|
|
5
|
+
class EditGridComponent extends EditGrid {
|
|
6
|
+
static get builderInfo() {
|
|
7
|
+
return {};
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.default = EditGridComponent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (...extend: any[]): any;
|