codeforms 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

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.
codeforms/__init__.py CHANGED
@@ -1,45 +1,45 @@
1
+ from codeforms.export import ExportFormat, form_to_json_schema
1
2
  from codeforms.fields import (
2
- FieldType,
3
- ValidationRule,
4
- VisibilityRule,
5
- DependentOptionsConfig,
6
- FormFieldBase,
7
- SelectOption,
8
3
  CheckboxField,
9
4
  CheckboxGroupField,
10
- RadioField,
11
- SelectField,
12
- TextField,
13
- EmailField,
14
- NumberField,
15
5
  DateField,
6
+ DependentOptionsConfig,
7
+ EmailField,
8
+ FieldGroup,
9
+ FieldType,
16
10
  FileField,
11
+ FormFieldBase,
12
+ FormStep,
17
13
  HiddenField,
18
- UrlField,
19
- TextareaField,
20
14
  ListField,
21
- FieldGroup,
22
- FormStep,
15
+ NumberField,
16
+ RadioField,
17
+ SelectField,
18
+ SelectOption,
19
+ TextareaField,
20
+ TextField,
21
+ UrlField,
22
+ ValidationRule,
23
+ VisibilityRule,
23
24
  )
24
25
  from codeforms.forms import (
25
26
  Form,
26
27
  FormDataValidator,
27
- validate_form_data,
28
28
  evaluate_visibility,
29
+ validate_form_data,
29
30
  validate_form_data_dynamic,
30
31
  )
31
- from codeforms.export import ExportFormat
32
32
  from codeforms.i18n import (
33
- t,
34
- set_locale,
35
- get_locale,
36
33
  get_available_locales,
37
- register_locale,
34
+ get_locale,
38
35
  get_messages,
36
+ register_locale,
37
+ set_locale,
38
+ t,
39
39
  )
40
40
  from codeforms.registry import (
41
- register_field_type,
42
41
  get_registered_field_types,
42
+ register_field_type,
43
43
  )
44
44
 
45
45
  __all__ = [
@@ -73,6 +73,7 @@ __all__ = [
73
73
  "validate_form_data_dynamic",
74
74
  # Export
75
75
  "ExportFormat",
76
+ "form_to_json_schema",
76
77
  # i18n
77
78
  "t",
78
79
  "set_locale",