@digigov/form 1.0.0-8bbf3ef2 → 1.0.0-a131264d
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/Field/FieldBase.js +1 -1
- package/{esm/Field/FieldBase.js → Field/FieldBase.mjs} +1 -1
- package/Field/FieldBaseContainer.js +1 -1
- package/{esm/Field/FieldBaseContainer.js → Field/FieldBaseContainer.mjs} +1 -1
- package/Field/FieldConditional.js +2 -2
- package/{esm/Field/FieldConditional.js → Field/FieldConditional.mjs} +2 -2
- package/Field/index.js +5 -5
- package/{esm/Field/index.js → Field/index.mjs} +5 -5
- package/Field/utils.js +9 -9
- package/{esm/Field/utils.js → Field/utils.mjs} +9 -9
- package/FieldArray/FieldArray.stories.js +4 -4
- package/FieldArray/FieldArray.stories.mjs +8 -0
- package/FieldArray/__stories__/Default.js +5 -5
- package/{esm/FieldArray/__stories__/Default.js → FieldArray/__stories__/Default.mjs} +1 -1
- package/FieldArray/__stories__/WithExactLength.js +5 -5
- package/{esm/FieldArray/__stories__/WithExactLength.js → FieldArray/__stories__/WithExactLength.mjs} +1 -1
- package/FieldArray/index.js +3 -3
- package/{esm/FieldArray/index.js → FieldArray/index.mjs} +3 -3
- package/FieldObject/index.js +3 -3
- package/{esm/FieldObject/index.js → FieldObject/index.mjs} +3 -3
- package/Fieldset/FieldsetWithContext.js +5 -5
- package/{esm/Fieldset/FieldsetWithContext.js → Fieldset/FieldsetWithContext.mjs} +3 -3
- package/FormBuilder/FormBuilder.js +5 -5
- package/{esm/FormBuilder/FormBuilder.js → FormBuilder/FormBuilder.mjs} +5 -5
- package/FormBuilder/FormBuilder.stories.js +3 -3
- package/FormBuilder/FormBuilder.stories.mjs +7 -0
- package/FormBuilder/__stories__/Default.js +3 -3
- package/{esm/FormBuilder/__stories__/Default.js → FormBuilder/__stories__/Default.mjs} +1 -1
- package/FormBuilder/index.js +1 -1
- package/FormBuilder/index.mjs +2 -0
- package/MultiplicityField/MultiplicityField.stories.js +8 -8
- package/MultiplicityField/MultiplicityField.stories.mjs +12 -0
- package/MultiplicityField/__stories__/Default.js +5 -5
- package/{esm/MultiplicityField/__stories__/Default.js → MultiplicityField/__stories__/Default.mjs} +1 -1
- package/MultiplicityField/__stories__/WithExactLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithExactLength.js → MultiplicityField/__stories__/WithExactLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMaxLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMaxLength.js → MultiplicityField/__stories__/WithMaxLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMinAndMaxLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMinAndMaxLength.js → MultiplicityField/__stories__/WithMinAndMaxLength.mjs} +1 -1
- package/MultiplicityField/__stories__/WithMinLength.js +5 -5
- package/{esm/MultiplicityField/__stories__/WithMinLength.js → MultiplicityField/__stories__/WithMinLength.mjs} +1 -1
- package/MultiplicityField/add-objects.js +3 -3
- package/{esm/MultiplicityField/add-objects.js → MultiplicityField/add-objects.mjs} +3 -3
- package/MultiplicityField/index.js +3 -3
- package/{esm/MultiplicityField/index.js → MultiplicityField/index.mjs} +3 -3
- package/Questions/Questions.js +2 -2
- package/{esm/Questions/Questions.js → Questions/Questions.mjs} +2 -2
- package/Questions/Questions.stories.js +3 -3
- package/Questions/Questions.stories.mjs +7 -0
- package/Questions/Step/ReviewStep.js +3 -3
- package/{esm/Questions/Step/ReviewStep.js → Questions/Step/ReviewStep.mjs} +3 -3
- package/Questions/Step/Step.js +3 -3
- package/{esm/Questions/Step/Step.js → Questions/Step/Step.mjs} +3 -3
- package/Questions/Step/StepArrayReview.js +6 -6
- package/{esm/Questions/Step/StepArrayReview.js → Questions/Step/StepArrayReview.mjs} +6 -6
- package/Questions/Step/StepDescription.js +1 -1
- package/{esm/Questions/Step/StepDescription.js → Questions/Step/StepDescription.mjs} +1 -1
- package/Questions/Step/StepForm.js +4 -4
- package/{esm/Questions/Step/StepForm.js → Questions/Step/StepForm.mjs} +4 -4
- package/Questions/Step/StepTitle.js +1 -1
- package/{esm/Questions/Step/StepTitle.js → Questions/Step/StepTitle.mjs} +1 -1
- package/Questions/Step/index.js +14 -14
- package/Questions/Step/index.mjs +13 -0
- package/Questions/__stories__/Default.js +13 -13
- package/{esm/Questions/__stories__/Default.js → Questions/__stories__/Default.mjs} +2 -2
- package/Questions/index.js +2 -2
- package/Questions/index.mjs +3 -0
- package/Questions/index.spec.js +9 -9
- package/{esm/Questions/index.spec.js → Questions/index.spec.mjs} +3 -3
- package/es/Field/FieldBase.js +1 -1
- package/es/Field/FieldBaseContainer.js +1 -1
- package/es/Field/FieldConditional.js +2 -2
- package/es/Field/index.js +5 -5
- package/es/Field/utils.js +9 -9
- package/es/FieldArray/FieldArray.stories.js +3 -3
- package/es/FieldArray/__stories__/Default.js +1 -1
- package/es/FieldArray/__stories__/WithExactLength.js +1 -1
- package/es/FieldArray/index.js +3 -3
- package/es/FieldObject/index.js +3 -3
- package/es/Fieldset/FieldsetWithContext.js +3 -3
- package/es/FormBuilder/FormBuilder.js +5 -5
- package/es/FormBuilder/FormBuilder.stories.js +2 -2
- package/es/FormBuilder/__stories__/Default.js +1 -1
- package/es/FormBuilder/index.js +1 -1
- package/es/MultiplicityField/MultiplicityField.stories.js +7 -7
- package/es/MultiplicityField/__stories__/Default.js +1 -1
- package/es/MultiplicityField/__stories__/WithExactLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinAndMaxLength.js +1 -1
- package/es/MultiplicityField/__stories__/WithMinLength.js +1 -1
- package/es/MultiplicityField/add-objects.js +3 -3
- package/es/MultiplicityField/index.js +3 -3
- package/es/Questions/Questions.js +2 -2
- package/es/Questions/Questions.stories.js +2 -2
- package/es/Questions/Step/ReviewStep.js +3 -3
- package/es/Questions/Step/Step.js +3 -3
- package/es/Questions/Step/StepArrayReview.js +6 -6
- package/es/Questions/Step/StepDescription.js +1 -1
- package/es/Questions/Step/StepForm.js +4 -4
- package/es/Questions/Step/StepTitle.js +1 -1
- package/es/Questions/Step/index.js +12 -12
- package/es/Questions/__stories__/Default.js +2 -2
- package/es/Questions/index.js +2 -2
- package/es/Questions/index.spec.js +3 -3
- package/es/index.js +2 -2
- package/es/inputs/AutoComplete/AutoComplete.stories.js +2 -2
- package/es/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/es/inputs/Checkboxes/Checkboxes.stories.js +4 -4
- package/es/inputs/Checkboxes/__stories__/Conditional.js +1 -1
- package/es/inputs/Checkboxes/__stories__/Default.js +1 -1
- package/es/inputs/Checkboxes/__stories__/WithDivider.js +1 -1
- package/es/inputs/Checkboxes/index.js +1 -1
- package/es/inputs/DateInput/DateInput.stories.js +2 -2
- package/es/inputs/DateInput/__stories__/Default.js +1 -1
- package/es/inputs/FileInput/FileInput.stories.js +2 -2
- package/es/inputs/FileInput/__stories__/Default.js +1 -1
- package/es/inputs/Input/Input.stories.js +10 -10
- package/es/inputs/Input/__stories__/AFM.js +1 -1
- package/es/inputs/Input/__stories__/Boolean.js +1 -1
- package/es/inputs/Input/__stories__/Default.js +1 -1
- package/es/inputs/Input/__stories__/IBAN.js +1 -1
- package/es/inputs/Input/__stories__/Integer.js +1 -1
- package/es/inputs/Input/__stories__/MobilePhone.js +1 -1
- package/es/inputs/Input/__stories__/PhoneNumber.js +1 -1
- package/es/inputs/Input/__stories__/PostalCode.js +1 -1
- package/es/inputs/Input/__stories__/TextWithCharacterLimit.js +1 -1
- package/es/inputs/Label/Label.stories.js +2 -2
- package/es/inputs/Label/__stories__/Default.js +1 -1
- package/es/inputs/OtpInput/OtpInput.stories.js +2 -2
- package/es/inputs/OtpInput/__stories__/Default.js +1 -1
- package/es/inputs/Radio/Radio.stories.js +4 -4
- package/es/inputs/Radio/__stories__/Conditional.js +1 -1
- package/es/inputs/Radio/__stories__/Default.js +1 -1
- package/es/inputs/Radio/__stories__/WithDivider.js +1 -1
- package/es/inputs/Radio/index.js +1 -1
- package/es/inputs/Select/Select.stories.js +2 -2
- package/es/inputs/Select/__stories__/Default.js +1 -1
- package/es/inputs/index.js +8 -8
- package/es/internal.js +34 -34
- package/es/registry.js +59 -59
- package/es/validators/index.js +3 -3
- package/es/validators/utils/index.js +8 -8
- package/es/validators/validators.spec.js +1 -1
- package/index.js +2 -2
- package/index.mjs +8 -0
- package/inputs/AutoComplete/AutoComplete.stories.js +3 -3
- package/inputs/AutoComplete/AutoComplete.stories.mjs +7 -0
- package/inputs/AutoComplete/__stories__/Default.js +2 -2
- package/{esm/inputs/AutoComplete/__stories__/Default.js → inputs/AutoComplete/__stories__/Default.mjs} +2 -2
- package/inputs/Checkboxes/Checkboxes.stories.js +5 -5
- package/inputs/Checkboxes/Checkboxes.stories.mjs +9 -0
- package/inputs/Checkboxes/__stories__/Conditional.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/Conditional.js → inputs/Checkboxes/__stories__/Conditional.mjs} +1 -1
- package/inputs/Checkboxes/__stories__/Default.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/Default.js → inputs/Checkboxes/__stories__/Default.mjs} +1 -1
- package/inputs/Checkboxes/__stories__/WithDivider.js +3 -3
- package/{esm/inputs/Checkboxes/__stories__/WithDivider.js → inputs/Checkboxes/__stories__/WithDivider.mjs} +1 -1
- package/inputs/Checkboxes/index.js +2 -2
- package/{esm/inputs/Checkboxes/index.js → inputs/Checkboxes/index.mjs} +1 -1
- package/inputs/DateInput/DateInput.stories.js +3 -3
- package/inputs/DateInput/DateInput.stories.mjs +7 -0
- package/inputs/DateInput/__stories__/Default.js +3 -3
- package/{esm/inputs/DateInput/__stories__/Default.js → inputs/DateInput/__stories__/Default.mjs} +1 -1
- package/inputs/FileInput/FileInput.stories.js +3 -3
- package/inputs/FileInput/FileInput.stories.mjs +7 -0
- package/inputs/FileInput/__stories__/Default.js +3 -3
- package/{esm/inputs/FileInput/__stories__/Default.js → inputs/FileInput/__stories__/Default.mjs} +1 -1
- package/inputs/Input/Input.stories.js +11 -11
- package/inputs/Input/Input.stories.mjs +15 -0
- package/inputs/Input/__stories__/AFM.js +3 -3
- package/{esm/inputs/Input/__stories__/AFM.js → inputs/Input/__stories__/AFM.mjs} +1 -1
- package/inputs/Input/__stories__/Boolean.js +3 -3
- package/{esm/inputs/Input/__stories__/Boolean.js → inputs/Input/__stories__/Boolean.mjs} +1 -1
- package/inputs/Input/__stories__/Default.js +3 -3
- package/{esm/inputs/Input/__stories__/Default.js → inputs/Input/__stories__/Default.mjs} +1 -1
- package/inputs/Input/__stories__/IBAN.js +3 -3
- package/{esm/inputs/Input/__stories__/IBAN.js → inputs/Input/__stories__/IBAN.mjs} +1 -1
- package/inputs/Input/__stories__/Integer.js +4 -4
- package/{esm/inputs/Input/__stories__/Integer.js → inputs/Input/__stories__/Integer.mjs} +1 -1
- package/inputs/Input/__stories__/MobilePhone.js +3 -3
- package/{esm/inputs/Input/__stories__/MobilePhone.js → inputs/Input/__stories__/MobilePhone.mjs} +1 -1
- package/inputs/Input/__stories__/PhoneNumber.js +3 -3
- package/{esm/inputs/Input/__stories__/PhoneNumber.js → inputs/Input/__stories__/PhoneNumber.mjs} +1 -1
- package/inputs/Input/__stories__/PostalCode.js +3 -3
- package/{esm/inputs/Input/__stories__/PostalCode.js → inputs/Input/__stories__/PostalCode.mjs} +1 -1
- package/inputs/Input/__stories__/TextWithCharacterLimit.js +5 -5
- package/{esm/inputs/Input/__stories__/TextWithCharacterLimit.js → inputs/Input/__stories__/TextWithCharacterLimit.mjs} +1 -1
- package/inputs/Label/Label.stories.js +3 -3
- package/inputs/Label/Label.stories.mjs +7 -0
- package/inputs/Label/__stories__/Default.js +4 -4
- package/{esm/inputs/Label/__stories__/Default.js → inputs/Label/__stories__/Default.mjs} +1 -1
- package/inputs/OtpInput/OtpInput.stories.js +3 -3
- package/inputs/OtpInput/OtpInput.stories.mjs +7 -0
- package/inputs/OtpInput/__stories__/Default.js +4 -4
- package/{esm/inputs/OtpInput/__stories__/Default.js → inputs/OtpInput/__stories__/Default.mjs} +1 -1
- package/inputs/Radio/Radio.stories.js +5 -5
- package/inputs/Radio/Radio.stories.mjs +9 -0
- package/inputs/Radio/__stories__/Conditional.js +3 -3
- package/{esm/inputs/Radio/__stories__/Conditional.js → inputs/Radio/__stories__/Conditional.mjs} +1 -1
- package/inputs/Radio/__stories__/Default.js +3 -3
- package/{esm/inputs/Radio/__stories__/Default.js → inputs/Radio/__stories__/Default.mjs} +1 -1
- package/inputs/Radio/__stories__/WithDivider.js +3 -3
- package/{esm/inputs/Radio/__stories__/WithDivider.js → inputs/Radio/__stories__/WithDivider.mjs} +1 -1
- package/inputs/Radio/index.js +2 -2
- package/{esm/inputs/Radio/index.js → inputs/Radio/index.mjs} +1 -1
- package/inputs/Select/Select.stories.js +3 -3
- package/inputs/Select/Select.stories.mjs +7 -0
- package/inputs/Select/__stories__/Default.js +3 -3
- package/{esm/inputs/Select/__stories__/Default.js → inputs/Select/__stories__/Default.mjs} +1 -1
- package/inputs/index.js +8 -8
- package/inputs/index.mjs +8 -0
- package/internal.js +20 -20
- package/internal.mjs +34 -0
- package/package.json +5 -5
- package/registry.d.ts +1 -1
- package/registry.js +59 -59
- package/{esm/registry.js → registry.mjs} +59 -59
- package/validators/index.js +3 -3
- package/{esm/validators/index.js → validators/index.mjs} +3 -3
- package/validators/utils/index.js +8 -8
- package/{esm/validators/utils/index.js → validators/utils/index.mjs} +8 -8
- package/validators/validators.spec.js +1 -1
- package/{esm/validators/validators.spec.js → validators/validators.spec.mjs} +1 -1
- package/esm/Field/index.mdx +0 -6
- package/esm/FieldArray/FieldArray.stories.js +0 -8
- package/esm/FieldArray/FieldArray.stories.playwright.json +0 -353
- package/esm/FormBuilder/FormBuilder.mdx +0 -256
- package/esm/FormBuilder/FormBuilder.stories.js +0 -7
- package/esm/FormBuilder/FormBuilder.stories.playwright.json +0 -52
- package/esm/FormBuilder/index.js +0 -2
- package/esm/MultiplicityField/MultiplicityField.mdx +0 -590
- package/esm/MultiplicityField/MultiplicityField.stories.js +0 -12
- package/esm/MultiplicityField/MultiplicityField.stories.playwright.json +0 -1370
- package/esm/Questions/Questions.stories.js +0 -7
- package/esm/Questions/Step/index.js +0 -13
- package/esm/Questions/__snapshots__/index.spec.tsx.snap +0 -596
- package/esm/Questions/index.js +0 -3
- package/esm/Questions/index.mdx +0 -415
- package/esm/create-simple-form.mdx +0 -539
- package/esm/index.js +0 -8
- package/esm/index.mdx +0 -51
- package/esm/inputs/AutoComplete/AutoComplete.stories.js +0 -7
- package/esm/inputs/Checkboxes/Checkboxes.stories.js +0 -9
- package/esm/inputs/Checkboxes/Checkboxes.stories.playwright.json +0 -85
- package/esm/inputs/Checkboxes/index.mdx +0 -0
- package/esm/inputs/DateInput/DateInput.stories.js +0 -7
- package/esm/inputs/DateInput/DateInput.stories.playwright.json +0 -72
- package/esm/inputs/FileInput/FileInput.stories.js +0 -7
- package/esm/inputs/FileInput/FileInput.stories.playwright.json +0 -75
- package/esm/inputs/Input/Input.stories.js +0 -15
- package/esm/inputs/Input/Input.stories.playwright.json +0 -376
- package/esm/inputs/Input/index.mdx +0 -8
- package/esm/inputs/Label/Label.stories.js +0 -7
- package/esm/inputs/Label/Label.stories.playwright.json +0 -40
- package/esm/inputs/Label/index.mdx +0 -0
- package/esm/inputs/OtpInput/OtpInput.stories.js +0 -7
- package/esm/inputs/Radio/Radio.stories.js +0 -9
- package/esm/inputs/Radio/Radio.stories.playwright.json +0 -73
- package/esm/inputs/Radio/index.mdx +0 -0
- package/esm/inputs/Select/Select.stories.js +0 -7
- package/esm/inputs/Select/Select.stories.playwright.json +0 -22
- package/esm/inputs/index.js +0 -8
- package/esm/installation.mdx +0 -68
- package/esm/internal.js +0 -34
- /package/{esm/Field/types.js → Field/types.mjs} +0 -0
- /package/{esm/Fieldset/index.js → Fieldset/index.mjs} +0 -0
- /package/{esm/Fieldset/types.js → Fieldset/types.mjs} +0 -0
- /package/{esm/Form.stories.js → Form.stories.mjs} +0 -0
- /package/{esm/FormContext.js → FormContext.mjs} +0 -0
- /package/{esm/MultiplicityField/__stories__/PreviewDisplay.js → MultiplicityField/__stories__/PreviewDisplay.mjs} +0 -0
- /package/{esm/Questions/QuestionsContext.js → Questions/QuestionsContext.mjs} +0 -0
- /package/{esm/Questions/Step/StepContext.js → Questions/Step/StepContext.mjs} +0 -0
- /package/{esm/Questions/Step/StepQuote.js → Questions/Step/StepQuote.mjs} +0 -0
- /package/{esm/Questions/Step/getAddMoreFields.js → Questions/Step/getAddMoreFields.mjs} +0 -0
- /package/{esm/Questions/Step/types.js → Questions/Step/types.mjs} +0 -0
- /package/{esm/Questions/getNextStep.js → Questions/getNextStep.mjs} +0 -0
- /package/{esm/Questions/types.js → Questions/types.mjs} +0 -0
- /package/{esm/inputs/AutoComplete/index.js → inputs/AutoComplete/index.mjs} +0 -0
- /package/{esm/inputs/DateInput/index.js → inputs/DateInput/index.mjs} +0 -0
- /package/{esm/inputs/FileInput/index.js → inputs/FileInput/index.mjs} +0 -0
- /package/{esm/inputs/Input/index.js → inputs/Input/index.mjs} +0 -0
- /package/{esm/inputs/Label/index.js → inputs/Label/index.mjs} +0 -0
- /package/{esm/inputs/OtpInput/index.js → inputs/OtpInput/index.mjs} +0 -0
- /package/{esm/inputs/Select/index.js → inputs/Select/index.mjs} +0 -0
- /package/{esm/types.js → types.mjs} +0 -0
- /package/{esm/utils.js → utils.mjs} +0 -0
- /package/{esm/validators/types.js → validators/types.mjs} +0 -0
- /package/{esm/validators/utils/afm.js → validators/utils/afm.mjs} +0 -0
- /package/{esm/validators/utils/file.js → validators/utils/file.mjs} +0 -0
- /package/{esm/validators/utils/iban.js → validators/utils/iban.mjs} +0 -0
- /package/{esm/validators/utils/int.js → validators/utils/int.mjs} +0 -0
- /package/{esm/validators/utils/number.js → validators/utils/number.mjs} +0 -0
- /package/{esm/validators/utils/otp.js → validators/utils/otp.mjs} +0 -0
- /package/{esm/validators/utils/phone.js → validators/utils/phone.mjs} +0 -0
- /package/{esm/validators/utils/postal_code.js → validators/utils/postal_code.mjs} +0 -0
- /package/{esm/validators/utils/text_limit.js → validators/utils/text_limit.mjs} +0 -0
- /package/{esm/validators/utils/uuid4.js → validators/utils/uuid4.mjs} +0 -0
|
@@ -16,7 +16,7 @@ exports.getYupObjectShape = getYupObjectShape;
|
|
|
16
16
|
|
|
17
17
|
var yup = _interopRequireWildcard(require("yup"));
|
|
18
18
|
|
|
19
|
-
var _afm = require("
|
|
19
|
+
var _afm = require("./afm");
|
|
20
20
|
|
|
21
21
|
Object.keys(_afm).forEach(function (key) {
|
|
22
22
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -30,7 +30,7 @@ Object.keys(_afm).forEach(function (key) {
|
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _file = require("
|
|
33
|
+
var _file = require("./file");
|
|
34
34
|
|
|
35
35
|
Object.keys(_file).forEach(function (key) {
|
|
36
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -44,7 +44,7 @@ Object.keys(_file).forEach(function (key) {
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
var _iban = require("
|
|
47
|
+
var _iban = require("./iban");
|
|
48
48
|
|
|
49
49
|
Object.keys(_iban).forEach(function (key) {
|
|
50
50
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -58,7 +58,7 @@ Object.keys(_iban).forEach(function (key) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
var _otp = require("
|
|
61
|
+
var _otp = require("./otp");
|
|
62
62
|
|
|
63
63
|
Object.keys(_otp).forEach(function (key) {
|
|
64
64
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -72,7 +72,7 @@ Object.keys(_otp).forEach(function (key) {
|
|
|
72
72
|
});
|
|
73
73
|
});
|
|
74
74
|
|
|
75
|
-
var _phone = require("
|
|
75
|
+
var _phone = require("./phone");
|
|
76
76
|
|
|
77
77
|
Object.keys(_phone).forEach(function (key) {
|
|
78
78
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -86,7 +86,7 @@ Object.keys(_phone).forEach(function (key) {
|
|
|
86
86
|
});
|
|
87
87
|
});
|
|
88
88
|
|
|
89
|
-
var _postal_code = require("
|
|
89
|
+
var _postal_code = require("./postal_code");
|
|
90
90
|
|
|
91
91
|
Object.keys(_postal_code).forEach(function (key) {
|
|
92
92
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -100,7 +100,7 @@ Object.keys(_postal_code).forEach(function (key) {
|
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
|
|
103
|
-
var _uuid = require("
|
|
103
|
+
var _uuid = require("./uuid4");
|
|
104
104
|
|
|
105
105
|
Object.keys(_uuid).forEach(function (key) {
|
|
106
106
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -114,7 +114,7 @@ Object.keys(_uuid).forEach(function (key) {
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
var _text_limit = require("
|
|
117
|
+
var _text_limit = require("./text_limit");
|
|
118
118
|
|
|
119
119
|
Object.keys(_text_limit).forEach(function (key) {
|
|
120
120
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as yup from 'yup';
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
2
|
+
export * from "./afm";
|
|
3
|
+
export * from "./file";
|
|
4
|
+
export * from "./iban";
|
|
5
|
+
export * from "./otp";
|
|
6
|
+
export * from "./phone";
|
|
7
|
+
export * from "./postal_code";
|
|
8
|
+
export * from "./uuid4";
|
|
9
|
+
export * from "./text_limit";
|
|
10
10
|
export function getYupField(field, yupTypeMap) {
|
|
11
11
|
var yupField = yupTypeMap[(field === null || field === void 0 ? void 0 : field.type) || 'string'] || yupTypeMap['string'];
|
|
12
12
|
return yupField(field);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from
|
|
1
|
+
import { validateUUID4, validateIban, validatePostalCode, validatePhoneNumber } from "./utils";
|
|
2
2
|
it('validates wrong uuid4 for empty value', function () {
|
|
3
3
|
expect(validateUUID4('')).toBe(false);
|
|
4
4
|
});
|
package/esm/Field/index.mdx
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import FieldArray from '@digigov/form/FieldArray';
|
|
2
|
-
export default {
|
|
3
|
-
title: 'Digigov Form/FieldArray',
|
|
4
|
-
component: FieldArray,
|
|
5
|
-
displayName: 'FieldArray'
|
|
6
|
-
};
|
|
7
|
-
export * from '@digigov/form/FieldArray/__stories__/Default';
|
|
8
|
-
export * from '@digigov/form/FieldArray/__stories__/WithExactLength';
|
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "4",
|
|
3
|
-
"stories": {
|
|
4
|
-
"digigov-form-fieldarray--default": {
|
|
5
|
-
"actionSets": [
|
|
6
|
-
{
|
|
7
|
-
"actions": [
|
|
8
|
-
{
|
|
9
|
-
"name": "click",
|
|
10
|
-
"args": {
|
|
11
|
-
"selector": "text=Προσθήκη συνυπογράφοντα"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"name": "click",
|
|
16
|
-
"args": {
|
|
17
|
-
"selector": "text=Συνέχεια"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "waitForSelector",
|
|
22
|
-
"args": {
|
|
23
|
-
"selector": "text=Το πεδίο πρέπει να έχει τουλάχιστον 2 εγγραφές. Προσθέστε μια ακόμα επιλέγοντας την απάντηση «Ναι» στην επόμενη ερώτηση.",
|
|
24
|
-
"options": {
|
|
25
|
-
"state": "visible"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"name": "click",
|
|
31
|
-
"args": {
|
|
32
|
-
"selector": "text=Προσθήκη συνυπογράφοντα",
|
|
33
|
-
"options": {
|
|
34
|
-
"clickCount": 2
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "click",
|
|
40
|
-
"args": {
|
|
41
|
-
"selector": "text=Συνέχεια"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"name": "waitForSelector",
|
|
46
|
-
"args": {
|
|
47
|
-
"selector": "text=Το πεδίο είναι υποχρεωτικό.",
|
|
48
|
-
"options": {
|
|
49
|
-
"state": "visible"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "type",
|
|
55
|
-
"args": {
|
|
56
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
|
|
57
|
-
"text": "2107474274"
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"name": "click",
|
|
62
|
-
"args": {
|
|
63
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
"id": "iMmV-vvS4iNn",
|
|
68
|
-
"title": "Add new items to FieldArray"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"actions": [
|
|
72
|
-
{
|
|
73
|
-
"name": "click",
|
|
74
|
-
"args": {
|
|
75
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"id": "Lhj8o_MByws7",
|
|
80
|
-
"title": "Validation errors"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"actions": [
|
|
84
|
-
{
|
|
85
|
-
"name": "type",
|
|
86
|
-
"args": {
|
|
87
|
-
"selector": "html>body",
|
|
88
|
-
"text": "hello"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"name": "click",
|
|
93
|
-
"args": {
|
|
94
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"name": "type",
|
|
99
|
-
"args": {
|
|
100
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
101
|
-
"text": "150000496"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "type",
|
|
106
|
-
"args": {
|
|
107
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
108
|
-
"text": "Jon"
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"name": "type",
|
|
113
|
-
"args": {
|
|
114
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
115
|
-
"text": "Doe"
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "click",
|
|
120
|
-
"args": {
|
|
121
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
"name": "type",
|
|
126
|
-
"args": {
|
|
127
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
128
|
-
"text": "150000496"
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"name": "type",
|
|
133
|
-
"args": {
|
|
134
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
135
|
-
"text": "Mar"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"name": "type",
|
|
140
|
-
"args": {
|
|
141
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
142
|
-
"text": "P"
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"name": "type",
|
|
147
|
-
"args": {
|
|
148
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
|
|
149
|
-
"text": "6977777777"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "click",
|
|
154
|
-
"args": {
|
|
155
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"id": "OCWrR7oFA3YV",
|
|
160
|
-
"title": "add 2 items"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"actions": [
|
|
164
|
-
{
|
|
165
|
-
"name": "type",
|
|
166
|
-
"args": {
|
|
167
|
-
"selector": "html>body",
|
|
168
|
-
"text": "hello"
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"name": "click",
|
|
173
|
-
"args": {
|
|
174
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
175
|
-
}
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"name": "type",
|
|
179
|
-
"args": {
|
|
180
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
181
|
-
"text": "150000496"
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"name": "type",
|
|
186
|
-
"args": {
|
|
187
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
188
|
-
"text": "Jon"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"name": "type",
|
|
193
|
-
"args": {
|
|
194
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
195
|
-
"text": "Doe"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"name": "click",
|
|
200
|
-
"args": {
|
|
201
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "type",
|
|
206
|
-
"args": {
|
|
207
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
208
|
-
"text": "150000496"
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
"name": "type",
|
|
213
|
-
"args": {
|
|
214
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
215
|
-
"text": "Mar"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"name": "type",
|
|
220
|
-
"args": {
|
|
221
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
222
|
-
"text": "P"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"name": "click",
|
|
227
|
-
"args": {
|
|
228
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(3)>div>fieldset>button"
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "type",
|
|
233
|
-
"args": {
|
|
234
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
|
|
235
|
-
"text": "6977777777"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"name": "click",
|
|
240
|
-
"args": {
|
|
241
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"id": "8ZxUUjo0Yxnr",
|
|
246
|
-
"title": "add 2 items and remove 1"
|
|
247
|
-
}
|
|
248
|
-
]
|
|
249
|
-
},
|
|
250
|
-
"digigov-form-fieldarray--with-exact-length": {
|
|
251
|
-
"actionSets": [
|
|
252
|
-
{
|
|
253
|
-
"actions": [
|
|
254
|
-
{
|
|
255
|
-
"name": "click",
|
|
256
|
-
"args": {
|
|
257
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"name": "click",
|
|
262
|
-
"args": {
|
|
263
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"id": "WG3dAbfXa-Sn",
|
|
268
|
-
"title": "validation errors"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"actions": [
|
|
272
|
-
{
|
|
273
|
-
"name": "type",
|
|
274
|
-
"args": {
|
|
275
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(1)>label>input",
|
|
276
|
-
"text": "Hello"
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"name": "click",
|
|
281
|
-
"args": {
|
|
282
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"name": "type",
|
|
287
|
-
"args": {
|
|
288
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
289
|
-
"text": "150000496"
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "type",
|
|
294
|
-
"args": {
|
|
295
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
296
|
-
"text": "Μάρω"
|
|
297
|
-
}
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"name": "type",
|
|
301
|
-
"args": {
|
|
302
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
303
|
-
"text": "Μενεξέ"
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "click",
|
|
308
|
-
"args": {
|
|
309
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>button"
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"name": "type",
|
|
314
|
-
"args": {
|
|
315
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(1)>label>input",
|
|
316
|
-
"text": "150000496"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"name": "type",
|
|
321
|
-
"args": {
|
|
322
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(2)>label>input",
|
|
323
|
-
"text": "Ηλέκτρα"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"name": "type",
|
|
328
|
-
"args": {
|
|
329
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(2)>fieldset>div:nth-child(4)>div>fieldset>fieldset>div:nth-child(3)>label>input",
|
|
330
|
-
"text": "Αποστόλου"
|
|
331
|
-
}
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
"name": "type",
|
|
335
|
-
"args": {
|
|
336
|
-
"selector": "html>body>div:nth-child(5)>form>div:nth-child(3)>label>input",
|
|
337
|
-
"text": "6977654321"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"name": "click",
|
|
342
|
-
"args": {
|
|
343
|
-
"selector": "html>body>div:nth-child(5)>form>button"
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
],
|
|
347
|
-
"id": "-U0EryxXC-g7",
|
|
348
|
-
"title": "add exact length of items"
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|