@frontile/forms 0.17.0-beta.9 → 0.17.0

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.
Files changed (83) hide show
  1. package/declarations/components/checkbox-group.d.ts +9 -8
  2. package/declarations/components/checkbox.d.ts +7 -6
  3. package/declarations/components/field-types.d.ts +14 -0
  4. package/declarations/components/field.d.ts +85 -0
  5. package/declarations/components/form-control.d.ts +1 -1
  6. package/declarations/components/form-description.d.ts +0 -1
  7. package/declarations/components/form-feedback.d.ts +0 -1
  8. package/declarations/components/form.d.ts +245 -10
  9. package/declarations/components/icons.d.ts +0 -1
  10. package/declarations/components/input.d.ts +17 -12
  11. package/declarations/components/label.d.ts +4 -5
  12. package/declarations/components/native-select.d.ts +26 -12
  13. package/declarations/components/radio-group.d.ts +7 -8
  14. package/declarations/components/radio.d.ts +7 -6
  15. package/declarations/components/select.d.ts +281 -25
  16. package/declarations/components/switch.d.ts +37 -33
  17. package/declarations/components/textarea.d.ts +8 -7
  18. package/declarations/index.d.ts +3 -1
  19. package/declarations/template-registry.d.ts +0 -1
  20. package/declarations/test-support.d.ts +0 -1
  21. package/declarations/utils/index.d.ts +1 -1
  22. package/declarations/utils/nested-data.d.ts +44 -0
  23. package/declarations/utils/standard-validator.d.ts +151 -0
  24. package/dist/_app_/components/field-types.js +1 -0
  25. package/dist/_app_/components/field.js +1 -0
  26. package/dist/components/checkbox-group.js +1 -1
  27. package/dist/components/checkbox-group.js.map +1 -1
  28. package/dist/components/checkbox.js +8 -2
  29. package/dist/components/checkbox.js.map +1 -1
  30. package/dist/components/field-types.js +2 -0
  31. package/dist/components/field-types.js.map +1 -0
  32. package/dist/components/field.js +103 -0
  33. package/dist/components/field.js.map +1 -0
  34. package/dist/components/form-control.js.map +1 -1
  35. package/dist/components/form-description.js.map +1 -1
  36. package/dist/components/form-feedback.js.map +1 -1
  37. package/dist/components/form.js +12 -42
  38. package/dist/components/form.js.map +1 -1
  39. package/dist/components/icons.js.map +1 -1
  40. package/dist/components/input.js +11 -5
  41. package/dist/components/input.js.map +1 -1
  42. package/dist/components/label.js.map +1 -1
  43. package/dist/components/native-select.js +42 -7
  44. package/dist/components/native-select.js.map +1 -1
  45. package/dist/components/radio-group.js +1 -1
  46. package/dist/components/radio-group.js.map +1 -1
  47. package/dist/components/radio.js +8 -2
  48. package/dist/components/radio.js.map +1 -1
  49. package/dist/components/select.js +229 -13
  50. package/dist/components/select.js.map +1 -1
  51. package/dist/components/switch.js +5 -2
  52. package/dist/components/switch.js.map +1 -1
  53. package/dist/components/textarea.js +8 -2
  54. package/dist/components/textarea.js.map +1 -1
  55. package/dist/form-CVuJDJUq.js +726 -0
  56. package/dist/form-CVuJDJUq.js.map +1 -0
  57. package/dist/index-CeaQc-U7.js.map +1 -1
  58. package/dist/index.js +2 -1
  59. package/dist/index.js.map +1 -1
  60. package/dist/{runtime-BPCpkOf1-BKOwiRJp.js → runtime-BPCpkOf1-B5Lbloj7.js} +2 -2
  61. package/dist/{runtime-BPCpkOf1-BKOwiRJp.js.map → runtime-BPCpkOf1-B5Lbloj7.js.map} +1 -1
  62. package/dist/test-support.js +2 -2
  63. package/dist/test-support.js.map +1 -1
  64. package/package.json +12 -8
  65. package/declarations/components/checkbox-group.d.ts.map +0 -1
  66. package/declarations/components/checkbox.d.ts.map +0 -1
  67. package/declarations/components/form-control.d.ts.map +0 -1
  68. package/declarations/components/form-description.d.ts.map +0 -1
  69. package/declarations/components/form-feedback.d.ts.map +0 -1
  70. package/declarations/components/form.d.ts.map +0 -1
  71. package/declarations/components/icons.d.ts.map +0 -1
  72. package/declarations/components/input.d.ts.map +0 -1
  73. package/declarations/components/label.d.ts.map +0 -1
  74. package/declarations/components/native-select.d.ts.map +0 -1
  75. package/declarations/components/radio-group.d.ts.map +0 -1
  76. package/declarations/components/radio.d.ts.map +0 -1
  77. package/declarations/components/select.d.ts.map +0 -1
  78. package/declarations/components/switch.d.ts.map +0 -1
  79. package/declarations/components/textarea.d.ts.map +0 -1
  80. package/declarations/index.d.ts.map +0 -1
  81. package/declarations/template-registry.d.ts.map +0 -1
  82. package/declarations/test-support.d.ts.map +0 -1
  83. package/declarations/utils/index.d.ts.map +0 -1
@@ -41,6 +41,10 @@ interface Args extends FormControlSharedArgs {
41
41
  * Receives the new boolean value and, optionally, the triggering Event.
42
42
  */
43
43
  onChange?: ((value: boolean, event: Event) => void) | ((value: boolean) => void);
44
+ /**
45
+ * Callback triggered when the Switch loses focus (blur event).
46
+ */
47
+ onBlur?: () => void;
44
48
  }
45
49
  interface SwitchSignature {
46
50
  Args: Args;
@@ -59,90 +63,90 @@ declare class Switch extends Component<SwitchSignature> {
59
63
  get isControlled(): boolean;
60
64
  get isSelected(): boolean;
61
65
  handleChange: (event: Event) => void;
66
+ handleBlur: () => void;
62
67
  get classes(): {
63
68
  base: (slotProps?: ({
64
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
69
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
65
70
  size?: "sm" | "md" | "lg" | undefined;
66
71
  isDisabled?: boolean | undefined;
67
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
72
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
68
73
  labelContainer: (slotProps?: ({
69
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
74
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
70
75
  size?: "sm" | "md" | "lg" | undefined;
71
76
  isDisabled?: boolean | undefined;
72
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
77
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
73
78
  label: (slotProps?: ({
74
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
79
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
75
80
  size?: "sm" | "md" | "lg" | undefined;
76
81
  isDisabled?: boolean | undefined;
77
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
82
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
78
83
  wrapper: (slotProps?: ({
79
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
84
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
80
85
  size?: "sm" | "md" | "lg" | undefined;
81
86
  isDisabled?: boolean | undefined;
82
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
87
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
83
88
  hiddenInput: (slotProps?: ({
84
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
89
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
85
90
  size?: "sm" | "md" | "lg" | undefined;
86
91
  isDisabled?: boolean | undefined;
87
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
92
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
88
93
  thumb: (slotProps?: ({
89
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
94
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
90
95
  size?: "sm" | "md" | "lg" | undefined;
91
96
  isDisabled?: boolean | undefined;
92
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
97
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
93
98
  startContent: (slotProps?: ({
94
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
99
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
95
100
  size?: "sm" | "md" | "lg" | undefined;
96
101
  isDisabled?: boolean | undefined;
97
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
102
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
98
103
  endContent: (slotProps?: ({
99
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
104
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
100
105
  size?: "sm" | "md" | "lg" | undefined;
101
106
  isDisabled?: boolean | undefined;
102
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
107
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
103
108
  } & {
104
109
  base: (slotProps?: ({
105
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
110
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
106
111
  size?: "sm" | "md" | "lg" | undefined;
107
112
  isDisabled?: boolean | undefined;
108
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
113
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
109
114
  labelContainer: (slotProps?: ({
110
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
115
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
111
116
  size?: "sm" | "md" | "lg" | undefined;
112
117
  isDisabled?: boolean | undefined;
113
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
118
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
114
119
  label: (slotProps?: ({
115
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
120
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
116
121
  size?: "sm" | "md" | "lg" | undefined;
117
122
  isDisabled?: boolean | undefined;
118
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
123
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
119
124
  wrapper: (slotProps?: ({
120
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
125
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
121
126
  size?: "sm" | "md" | "lg" | undefined;
122
127
  isDisabled?: boolean | undefined;
123
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
128
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
124
129
  hiddenInput: (slotProps?: ({
125
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
130
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
126
131
  size?: "sm" | "md" | "lg" | undefined;
127
132
  isDisabled?: boolean | undefined;
128
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
133
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
129
134
  thumb: (slotProps?: ({
130
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
135
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
131
136
  size?: "sm" | "md" | "lg" | undefined;
132
137
  isDisabled?: boolean | undefined;
133
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
138
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
134
139
  startContent: (slotProps?: ({
135
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
140
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
136
141
  size?: "sm" | "md" | "lg" | undefined;
137
142
  isDisabled?: boolean | undefined;
138
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
143
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
139
144
  endContent: (slotProps?: ({
140
- intent?: "default" | "primary" | "success" | "danger" | "warning" | undefined;
145
+ intent?: "primary" | "success" | "danger" | "warning" | "default" | undefined;
141
146
  size?: "sm" | "md" | "lg" | undefined;
142
147
  isDisabled?: boolean | undefined;
143
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
148
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
144
149
  } & {};
145
150
  }
146
151
  export { Switch, type SwitchSignature };
147
152
  export default Switch;
148
- //# sourceMappingURL=switch.d.ts.map
@@ -9,6 +9,7 @@ interface Args extends FormControlSharedArgs {
9
9
  classes?: SlotsToClasses<TextareaSlots>;
10
10
  onInput?: (value: string, event: InputEvent) => void;
11
11
  onChange?: (value: string, event: InputEvent) => void;
12
+ onBlur?: () => void;
12
13
  }
13
14
  interface TextareaSignature {
14
15
  Args: Args;
@@ -17,6 +18,7 @@ interface TextareaSignature {
17
18
  declare class Textarea extends Component<TextareaSignature> {
18
19
  handleOnInput(event: Event): void;
19
20
  handleOnChange(event: Event): void;
21
+ handleOnBlur(): void;
20
22
  get classes(): {
21
23
  base: (slotProps?: ({
22
24
  size?: "sm" | "md" | "lg" | undefined;
@@ -24,35 +26,35 @@ declare class Textarea extends Component<TextareaSignature> {
24
26
  endContentPointerEvents?: "none" | "auto" | undefined;
25
27
  hasStartContent?: boolean | undefined;
26
28
  hasEndContent?: boolean | undefined;
27
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
29
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
28
30
  innerContainer: (slotProps?: ({
29
31
  size?: "sm" | "md" | "lg" | undefined;
30
32
  startContentPointerEvents?: "none" | "auto" | undefined;
31
33
  endContentPointerEvents?: "none" | "auto" | undefined;
32
34
  hasStartContent?: boolean | undefined;
33
35
  hasEndContent?: boolean | undefined;
34
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
36
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
35
37
  startContent: (slotProps?: ({
36
38
  size?: "sm" | "md" | "lg" | undefined;
37
39
  startContentPointerEvents?: "none" | "auto" | undefined;
38
40
  endContentPointerEvents?: "none" | "auto" | undefined;
39
41
  hasStartContent?: boolean | undefined;
40
42
  hasEndContent?: boolean | undefined;
41
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
43
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
42
44
  endContent: (slotProps?: ({
43
45
  size?: "sm" | "md" | "lg" | undefined;
44
46
  startContentPointerEvents?: "none" | "auto" | undefined;
45
47
  endContentPointerEvents?: "none" | "auto" | undefined;
46
48
  hasStartContent?: boolean | undefined;
47
49
  hasEndContent?: boolean | undefined;
48
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
50
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
49
51
  input: (slotProps?: ({
50
52
  size?: "sm" | "md" | "lg" | undefined;
51
53
  startContentPointerEvents?: "none" | "auto" | undefined;
52
54
  endContentPointerEvents?: "none" | "auto" | undefined;
53
55
  hasStartContent?: boolean | undefined;
54
56
  hasEndContent?: boolean | undefined;
55
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
57
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
56
58
  } & {
57
59
  input: (slotProps?: ({
58
60
  size?: "sm" | "md" | "lg" | undefined;
@@ -60,9 +62,8 @@ declare class Textarea extends Component<TextareaSignature> {
60
62
  endContentPointerEvents?: "none" | "auto" | undefined;
61
63
  hasStartContent?: boolean | undefined;
62
64
  hasEndContent?: boolean | undefined;
63
- } & import("tailwind-variants").ClassProp<import("tailwind-merge").ClassNameValue>) | undefined) => string;
65
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
64
66
  } & {};
65
67
  }
66
68
  export { Textarea, type TextareaSignature };
67
69
  export default Textarea;
68
- //# sourceMappingURL=textarea.d.ts.map
@@ -1,4 +1,5 @@
1
1
  export * from './components/form';
2
+ export * from './components/field';
2
3
  export * from './components/checkbox';
3
4
  export * from './components/checkbox-group';
4
5
  export * from './components/form-description';
@@ -12,4 +13,5 @@ export * from './components/radio';
12
13
  export * from './components/radio-group';
13
14
  export * from './components/form-control';
14
15
  export * from './components/switch';
15
- //# sourceMappingURL=index.d.ts.map
16
+ export * from './utils/standard-validator';
17
+ export * from './utils/nested-data';
@@ -13,4 +13,3 @@ export default interface Registry {
13
13
  CheckboxGroup: typeof CheckboxGroup;
14
14
  RadioGroup: typeof RadioGroup;
15
15
  }
16
- //# sourceMappingURL=template-registry.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export declare function selectOptionByKey(selectSelector: string, key: string): Promise<void>;
2
2
  export declare function toggleOptionByKey(selectSelector: string, key: string): Promise<void>;
3
- //# sourceMappingURL=test-support.d.ts.map
@@ -1,3 +1,3 @@
1
1
  declare function triggerFormInputEvent(element?: HTMLElement | null): void;
2
2
  export { triggerFormInputEvent };
3
- //# sourceMappingURL=index.d.ts.map
3
+ export { flattenData, unflattenData, hasNestedData, deepEqual } from './nested-data';
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Utility functions for working with nested data structures in forms.
3
+ * These functions convert between nested objects and flat dotted-path notation.
4
+ */
5
+ /**
6
+ * Flattens a nested object into a flat object with dotted-path keys.
7
+ *
8
+ * @example
9
+ * flattenData({name: {first: 'John', last: 'Doe'}, email: 'john@example.com'})
10
+ * // Returns: {'name.first': 'John', 'name.last': 'Doe', 'email': 'john@example.com'}
11
+ *
12
+ * @param data - The nested data object to flatten
13
+ * @param prefix - Internal parameter for recursion (parent path)
14
+ * @returns A flat object with dotted-path keys
15
+ */
16
+ export declare function flattenData<T = unknown>(data: Record<string, unknown>, prefix?: string): Record<string, T>;
17
+ /**
18
+ * Unflattens a flat object with dotted-path keys into a nested object structure.
19
+ *
20
+ * @example
21
+ * unflattenData({'name.first': 'John', 'name.last': 'Doe', 'email': 'john@example.com'})
22
+ * // Returns: {name: {first: 'John', last: 'Doe'}, email: 'john@example.com'}
23
+ *
24
+ * @param data - The flat data object with dotted-path keys
25
+ * @returns A nested object structure
26
+ */
27
+ export declare function unflattenData<T = unknown>(data: Record<string, unknown>): Record<string, T>;
28
+ /**
29
+ * Checks if the data structure contains any nested objects.
30
+ * If true, we need to handle it as nested data.
31
+ *
32
+ * @param data - The data object to check
33
+ * @returns True if the data contains nested plain objects
34
+ */
35
+ export declare function hasNestedData(data: Record<string, unknown>): boolean;
36
+ /**
37
+ * Deep equality comparison for nested objects.
38
+ * Handles primitives, arrays, and nested objects.
39
+ *
40
+ * @param a - First value to compare
41
+ * @param b - Second value to compare
42
+ * @returns True if values are deeply equal
43
+ */
44
+ export declare function deepEqual(a: unknown, b: unknown): boolean;
@@ -0,0 +1,151 @@
1
+ import type { StandardSchemaV1 } from '@standard-schema/spec';
2
+ /**
3
+ * The issues collection returned by a Standard Schema validation failure.
4
+ */
5
+ export type Issues = readonly StandardSchemaV1.Issue[];
6
+ /**
7
+ * The return type of a validator function.
8
+ * Resolves to the issues (when validation fails) or undefined
9
+ * (when it succeeds).
10
+ */
11
+ export type ValidatorReturn = Promise<Issues | undefined>;
12
+ /**
13
+ * StandardSchemaV1 issues as either a promise or synchronous. If there are
14
+ * no issues, `undefined` is returned.
15
+ */
16
+ export type CustomValidatorReturn = ValidatorReturn | Issues | undefined;
17
+ /**
18
+ * A custom validator function.
19
+ * If there are errors, they are returned by the validator as
20
+ * StandardSchemaV1 issues. If there are no errors, nothing is returned.
21
+ */
22
+ export type CustomValidatorFn<Input = unknown> = (input: Input) => CustomValidatorReturn;
23
+ /**
24
+ * Provides convenience methods for validating data using Standard Schema.
25
+ * Also supports custom validator functions that return issues in the
26
+ * Standard Schema format.
27
+ *
28
+ * Most of the time you should use `validateAll` or `validateFieldAll` to
29
+ * validate data. Schema and custom validation are optional arguments
30
+ * to these methods. This is useful because schema and custom validation
31
+ * must both be optional in the form component, which is the primary use
32
+ * case for this class.
33
+ *
34
+ * Note: all methods are static, so you do not need to instantiate
35
+ * this class.
36
+ *
37
+ * @see https://standardschema.dev/
38
+ */
39
+ declare class StandardValidator {
40
+ private constructor();
41
+ /**
42
+ * Validates data against the provided standard schema.
43
+ * If there are errors, they are returned. Otherwise, nothing is returned.
44
+ * This provides a boolean indication of outcome: if there is a return
45
+ * value, validation failed. Otherwise, validation succeeded.
46
+ * @see https://standardschema.dev/
47
+ *
48
+ * @example
49
+ * const input = …; // your data to validate
50
+ * const schema = …; // your standard schema
51
+ * const issues = await StandardValidator.validate(input, schema);
52
+ *
53
+ * @param input The input to validate.
54
+ * @param schema The standard schema to validate against.
55
+ * @return The issues if validation failed, otherwise undefined.
56
+ */
57
+ static validate<I, O>(input: I, schema: StandardSchemaV1<I, O>): ValidatorReturn;
58
+ /**
59
+ * Validates a single field within the input data using the provided
60
+ * standard schema. If there are issues related to the specified field,
61
+ * they are returned. Otherwise, nothing is returned.
62
+ *
63
+ * Note: because standard schema does not provide a way to validate
64
+ * individual fields, this method filters the issues returned by the
65
+ * schema validation to find those related to the specified field.
66
+ * @see https://standardschema.dev/
67
+ *
68
+ * @param input The input data to validate.
69
+ * @param fieldName The name of the field to validate.
70
+ * @param schema The standard schema to validate against.
71
+ * @returns The issues related to the specified field if validation failed,
72
+ * otherwise undefined.
73
+ */
74
+ static validateField<I, O>(input: I, fieldName: string, schema: StandardSchemaV1<I, O>): ValidatorReturn;
75
+ /**
76
+ * Validates input using a custom validator function.
77
+ * If there are errors, they are returned by the validator as
78
+ * StandardSchemaV1 issues. If there are no errors, nothing is returned.
79
+ * @see https://standardschema.dev/
80
+ *
81
+ * @param input The input data to validate.
82
+ * @param customValidator The custom validator function to use.
83
+ * @returns The issues if validation failed, otherwise undefined.
84
+ */
85
+ static validateCustom<I>(input: I, customValidator: CustomValidatorFn<I>): ValidatorReturn;
86
+ /**
87
+ * Validates a single field within the input data using a custom validator
88
+ * function. If there are issues related to the specified field, they are
89
+ * returned. Otherwise, nothing is returned.
90
+ *
91
+ * Note: because custom validators may return issues for multiple fields,
92
+ * this method filters the issues returned by the custom validator to find
93
+ * those related to the specified field.
94
+ * @see https://standardschema.dev/
95
+ *
96
+ * @param input The input data to validate.
97
+ * @param fieldName The name of the field to validate.
98
+ * @param customValidator The custom validator function to use.
99
+ * @returns The issues related to the specified field if validation failed,
100
+ * otherwise undefined.
101
+ */
102
+ static validateFieldCustom<I>(input: I, fieldName: string, customValidator: CustomValidatorFn<I>): ValidatorReturn;
103
+ /**
104
+ * Validates input data using both a standard schema and a custom validator
105
+ * function, merging any issues found by either method. If there are issues,
106
+ * they are returned. Otherwise, nothing is returned. This method runs both
107
+ * validations in parallel.
108
+ *
109
+ * Note: `schema` and `customValidator` are both optional. If either the
110
+ * schema or custom validator is not provided, that validation is skipped.
111
+ * @see https://standardschema.dev/
112
+ *
113
+ * @param input The input data to validate.
114
+ * @param schema Optional standard schema to validate against.
115
+ * @param customValidator Optional custom validator function to use.
116
+ * @returns issues if validation failed, otherwise undefined.
117
+ */
118
+ static validateAll<I, O>(input: I, schema?: StandardSchemaV1<I, O>, customValidator?: CustomValidatorFn<I>): ValidatorReturn;
119
+ /**
120
+ * Validates a single field within the input data using both a standard
121
+ * schema and a custom validator function, merging any issues found by
122
+ * either method. If there are issues related to the specified field,
123
+ * they are returned. Otherwise, nothing is returned. This method runs
124
+ * both validations in parallel.
125
+ *
126
+ * Note: `schema` and `customValidator` are both optional. If either the
127
+ * schema or custom validator is not provided, that validation is skipped.
128
+ * @see https://standardschema.dev/
129
+ *
130
+ * @param input The input data to validate.
131
+ * @param fieldName The name of the field to validate.
132
+ * @param schema Optional standard schema to validate against.
133
+ * @param customValidator Optional custom validator function to use.
134
+ * @returns The issues related to the specified field if validation failed,
135
+ * otherwise undefined.
136
+ */
137
+ static validateFieldAll<I, O>(input: I, fieldName: string, schema?: StandardSchemaV1<I, O>, customValidator?: CustomValidatorFn<I>): ValidatorReturn;
138
+ /**
139
+ * Filters issues to those related to the specified field name.
140
+ * Supports both simple field names and dotted notation for nested fields.
141
+ *
142
+ * @param issues The issues to filter.
143
+ * @param fieldName The name of the field to filter by (e.g., "email" or
144
+ * "profile.contact.email").
145
+ * @returns The issues related to the specified field, or undefined if
146
+ * there are none.
147
+ */
148
+ static filterFieldIssues(issues: Issues, fieldName: string): Issues | undefined;
149
+ }
150
+ export { StandardValidator };
151
+ export default StandardValidator;
@@ -0,0 +1 @@
1
+ export { default } from "@frontile/forms/components/field-types";
@@ -0,0 +1 @@
1
+ export { default } from "@frontile/forms/components/field";
@@ -15,7 +15,7 @@ class CheckboxGroup extends Component {
15
15
  });
16
16
  }
17
17
  static {
18
- setComponentTemplate(precompileTemplate("\n <FormControl @size={{@size}} @isRequired={{@isRequired}} @description={{@description}} @errors={{@errors}} @isInvalid={{@isInvalid}} @class={{this.classes.base class=@classes.base}} ...attributes as |c|>\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n <div class={{this.classes.optionsContainer class=@classes.optionsContainer}} data-orientation={{if @orientation @orientation \"vertical\"}}>\n {{yield (component Checkbox name=@name onChange=@onChange size=@size) to=\"default\"}}\n </div>\n </FormControl>\n ", {
18
+ setComponentTemplate(precompileTemplate("\n <FormControl @size={{@size}} @isRequired={{@isRequired}} @description={{@description}} @errors={{@errors}} @isInvalid={{@isInvalid}} @class={{this.classes.base class=@classes.base}} ...attributes as |c|>\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n <div class={{this.classes.optionsContainer class=@classes.optionsContainer}} data-orientation={{if @orientation @orientation \"vertical\"}}>\n {{yield (component Checkbox name=@name onChange=@onChange size=@size isDisabled=@isDisabled) to=\"default\"}}\n </div>\n </FormControl>\n ", {
19
19
  strictMode: true,
20
20
  scope: () => ({
21
21
  FormControl,
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox-group.js","sources":["../../src/components/checkbox-group.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { Checkbox, type CheckboxSignature } from './checkbox';\nimport { FormControl, type FormControlSharedArgs } from './form-control';\nimport {\n useStyles,\n type CheckboxGroupVariants,\n type CheckboxGroupSlots,\n type SlotsToClasses\n} from '@frontile/theme';\nimport type { WithBoundArgs } from '@glint/template';\n\ninterface Args extends FormControlSharedArgs {\n name?: string;\n onChange?: CheckboxSignature['Args']['onChange'];\n size?: CheckboxGroupVariants['size'];\n classes?: SlotsToClasses<CheckboxGroupSlots>;\n\n /*\n *\n * @defaultValue 'vertical'\n */\n orientation?: 'horizontal' | 'vertical';\n}\n\ninterface CheckboxGroupSignature {\n Args: Args;\n Blocks: {\n default: [Checkbox: WithBoundArgs<typeof Checkbox, 'name' | 'onChange'>];\n };\n Element: HTMLDivElement;\n}\n\nclass CheckboxGroup extends Component<CheckboxGroupSignature> {\n get classes() {\n const { checkboxGroup } = useStyles();\n return checkboxGroup({\n size: this.args.size\n });\n }\n\n <template>\n <FormControl\n @size={{@size}}\n @isRequired={{@isRequired}}\n @description={{@description}}\n @errors={{@errors}}\n @isInvalid={{@isInvalid}}\n @class={{this.classes.base class=@classes.base}}\n ...attributes\n as |c|\n >\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n <div\n class={{this.classes.optionsContainer class=@classes.optionsContainer}}\n data-orientation={{if @orientation @orientation \"vertical\"}}\n >\n {{yield\n (component Checkbox name=@name onChange=@onChange size=@size)\n to=\"default\"\n }}\n </div>\n </FormControl>\n </template>\n}\n\nexport { CheckboxGroup, type CheckboxGroupSignature };\nexport default CheckboxGroup;\n"],"names":["CheckboxGroup","Component","classes","checkboxGroup","useStyles","size","args","setComponentTemplate","precompileTemplate","strictMode","scope","FormControl","Checkbox"],"mappings":";;;;;;;AAgCA,MAAMA,sBAAsBC,SAAU,CAAA;EACpC,IAAIC,OAAUA,GAAA;IACZ,MAAM;AAAEC,MAAAA;KAAe,GAAGC,SAAA,EAAA;AAC1B,IAAA,OAAOD,aAAc,CAAA;AACnBE,MAAAA,IAAA,EAAM,IAAI,CAACC,IAAI,CAACD;AAClB,KAAA,CAAA;AACF;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CAwBA,ulBAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"checkbox-group.js","sources":["../../src/components/checkbox-group.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { Checkbox, type CheckboxSignature } from './checkbox';\nimport { FormControl, type FormControlSharedArgs } from './form-control';\nimport {\n useStyles,\n type CheckboxGroupVariants,\n type CheckboxGroupSlots,\n type SlotsToClasses\n} from '@frontile/theme';\nimport type { WithBoundArgs } from '@glint/template';\n\ninterface Args extends FormControlSharedArgs {\n name?: string;\n onChange?: CheckboxSignature['Args']['onChange'];\n size?: CheckboxGroupVariants['size'];\n classes?: SlotsToClasses<CheckboxGroupSlots>;\n\n /*\n *\n * @defaultValue 'vertical'\n */\n orientation?: 'horizontal' | 'vertical';\n}\n\ninterface CheckboxGroupSignature {\n Args: Args;\n Blocks: {\n default: [\n Checkbox: WithBoundArgs<\n typeof Checkbox,\n 'name' | 'onChange' | 'isDisabled'\n >\n ];\n };\n Element: HTMLDivElement;\n}\n\nclass CheckboxGroup extends Component<CheckboxGroupSignature> {\n get classes() {\n const { checkboxGroup } = useStyles();\n return checkboxGroup({\n size: this.args.size\n });\n }\n\n <template>\n <FormControl\n @size={{@size}}\n @isRequired={{@isRequired}}\n @description={{@description}}\n @errors={{@errors}}\n @isInvalid={{@isInvalid}}\n @class={{this.classes.base class=@classes.base}}\n ...attributes\n as |c|\n >\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n <div\n class={{this.classes.optionsContainer class=@classes.optionsContainer}}\n data-orientation={{if @orientation @orientation \"vertical\"}}\n >\n {{yield\n (component\n Checkbox\n name=@name\n onChange=@onChange\n size=@size\n isDisabled=@isDisabled\n )\n to=\"default\"\n }}\n </div>\n </FormControl>\n </template>\n}\n\nexport { CheckboxGroup, type CheckboxGroupSignature };\nexport default CheckboxGroup;\n"],"names":["CheckboxGroup","Component","classes","checkboxGroup","useStyles","size","args","setComponentTemplate","precompileTemplate","strictMode","scope","FormControl","Checkbox"],"mappings":";;;;;;;AAqCA,MAAMA,sBAAsBC,SAAA,CAAU;EACpC,IAAIC,OAAAA,GAAU;IACZ,MAAM;AAAEC,MAAAA;KAAe,GAAGC,SAAA,EAAA;AAC1B,IAAA,OAAOD,aAAA,CAAc;AACnBE,MAAAA,IAAA,EAAM,IAAI,CAACC,IAAI,CAACD;AAClB,KAAA,CAAA;AACF,EAAA;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CAAA,8mBAAA,EA8BA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -5,7 +5,7 @@ import { FormControl } from './form-control.js';
5
5
  import { useStyles } from '@frontile/theme';
6
6
  import { precompileTemplate } from '@ember/template-compilation';
7
7
  import { setComponentTemplate } from '@ember/component';
8
- import { d as decorateMethodV2 } from '../runtime-BPCpkOf1-BKOwiRJp.js';
8
+ import { a as decorateMethodV2 } from '../runtime-BPCpkOf1-B5Lbloj7.js';
9
9
 
10
10
  class Checkbox extends Component {
11
11
  get isChecked() {
@@ -21,6 +21,12 @@ class Checkbox extends Component {
21
21
  static {
22
22
  decorateMethodV2(this.prototype, "handleChange", [action]);
23
23
  }
24
+ handleBlur() {
25
+ this.args.onBlur?.();
26
+ }
27
+ static {
28
+ decorateMethodV2(this.prototype, "handleBlur", [action]);
29
+ }
24
30
  get classes() {
25
31
  const {
26
32
  checkbox
@@ -30,7 +36,7 @@ class Checkbox extends Component {
30
36
  });
31
37
  }
32
38
  static {
33
- setComponentTemplate(precompileTemplate("\n <FormControl @isInvalid={{@isInvalid}} @errors={{@errors}} @size={{@size}} @isRequired={{@isRequired}} @class={{this.classes.base class=@classes.base}} @preventErrorFeedback={{true}} as |c|>\n <input {{on \"change\" this.handleChange}} id={{c.id}} name={{@name}} checked={{this.isChecked}} type=\"checkbox\" class={{this.classes.input class=@classes.input}} data-component=\"checkbox\" aria-invalid={{if c.isInvalid \"true\"}} aria-describedby={{c.describedBy @description c.isInvalid}} ...attributes />\n <div class={{this.classes.labelContainer class=@classes.labelContainer}}>\n {{#if @label}}\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n {{/if}}\n {{#if @description}}\n <c.Description>{{@description}}</c.Description>\n {{/if}}\n {{#if c.isInvalid}}\n <c.Feedback />\n {{/if}}\n </div>\n </FormControl>\n ", {
39
+ setComponentTemplate(precompileTemplate("\n <FormControl @isInvalid={{@isInvalid}} @errors={{@errors}} @size={{@size}} @isRequired={{@isRequired}} @class={{this.classes.base class=@classes.base}} @preventErrorFeedback={{true}} as |c|>\n <input {{on \"change\" this.handleChange}} {{on \"blur\" this.handleBlur}} id={{c.id}} name={{@name}} checked={{this.isChecked}} type=\"checkbox\" disabled={{@isDisabled}} class={{this.classes.input class=@classes.input}} data-component=\"checkbox\" aria-invalid={{if c.isInvalid \"true\"}} aria-describedby={{c.describedBy @description c.isInvalid}} ...attributes />\n <div class={{this.classes.labelContainer class=@classes.labelContainer}}>\n {{#if @label}}\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n {{/if}}\n {{#if @description}}\n <c.Description>{{@description}}</c.Description>\n {{/if}}\n {{#if c.isInvalid}}\n <c.Feedback />\n {{/if}}\n </div>\n </FormControl>\n ", {
34
40
  strictMode: true,
35
41
  scope: () => ({
36
42
  FormControl,
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.js","sources":["../../src/components/checkbox.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { on } from '@ember/modifier';\nimport { FormControl, type FormControlSharedArgs } from './form-control';\nimport {\n useStyles,\n type CheckboxVariants,\n type CheckboxSlots,\n type SlotsToClasses\n} from '@frontile/theme';\n\ninterface Args extends FormControlSharedArgs {\n checked?: boolean;\n name?: string;\n size?: CheckboxVariants['size'];\n classes?: SlotsToClasses<CheckboxSlots>;\n\n /*\n * Callback when onchange is triggered\n */\n onChange?: (value: boolean, event: Event) => void;\n}\n\ninterface CheckboxSignature {\n Args: Args;\n Element: HTMLInputElement;\n}\n\nclass Checkbox extends Component<CheckboxSignature> {\n get isChecked(): boolean {\n return !!this.args.checked;\n }\n\n @action handleChange(event: Event): void {\n event.preventDefault();\n\n const value = !this.args.checked;\n\n if (typeof this.args.onChange === 'function') {\n this.args.onChange(value, event);\n }\n }\n\n get classes() {\n const { checkbox } = useStyles();\n return checkbox({\n size: this.args.size\n });\n }\n\n <template>\n <FormControl\n @isInvalid={{@isInvalid}}\n @errors={{@errors}}\n @size={{@size}}\n @isRequired={{@isRequired}}\n @class={{this.classes.base class=@classes.base}}\n @preventErrorFeedback={{true}}\n as |c|\n >\n <input\n {{on \"change\" this.handleChange}}\n id={{c.id}}\n name={{@name}}\n checked={{this.isChecked}}\n type=\"checkbox\"\n class={{this.classes.input class=@classes.input}}\n data-component=\"checkbox\"\n aria-invalid={{if c.isInvalid \"true\"}}\n aria-describedby={{c.describedBy @description c.isInvalid}}\n ...attributes\n />\n <div class={{this.classes.labelContainer class=@classes.labelContainer}}>\n {{#if @label}}\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n {{/if}}\n {{#if @description}}\n <c.Description>{{@description}}</c.Description>\n {{/if}}\n {{#if c.isInvalid}}\n <c.Feedback />\n {{/if}}\n </div>\n </FormControl>\n </template>\n}\n\nexport { Checkbox, type CheckboxSignature };\nexport default Checkbox;\n"],"names":["Checkbox","Component","isChecked","args","checked","handleChange","event","preventDefault","value","onChange","n","prototype","action","classes","checkbox","useStyles","size","setComponentTemplate","precompileTemplate","strictMode","scope","FormControl","on"],"mappings":";;;;;;;;;AA4BA,MAAMA,iBAAiBC,SAAU,CAAA;EAC/B,IAAIC,SAAAA,GAAqB;AACvB,IAAA,OAAO,CAAC,CAAC,IAAI,CAACC,IAAI,CAACC,OAAO;AAC5B;EAEQC,YAAAA,CAAaC,KAAY,EAAQ;IACvCA,KAAA,CAAMC,cAAc,EAAA;AAEpB,IAAA,MAAMC,QAAQ,CAAC,IAAI,CAACL,IAAI,CAACC,OAAO;IAEhC,IAAI,OAAO,IAAI,CAACD,IAAI,CAACM,QAAQ,KAAK,UAAY,EAAA;MAC5C,IAAI,CAACN,IAAI,CAACM,QAAQ,CAACD,KAAO,EAAAF,KAAA,CAAA;AAC5B;AACF;AAAA,EAAA;IAAAI,gBAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CARCC,MAAA,CAAA,CAAA;AAAA;EAUD,IAAIC,OAAUA,GAAA;IACZ,MAAM;AAAEC,MAAAA;KAAU,GAAGC,SAAA,EAAA;AACrB,IAAA,OAAOD,QAAS,CAAA;AACdE,MAAAA,IAAA,EAAM,IAAI,CAACb,IAAI,CAACa;AAClB,KAAA,CAAA;AACF;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAoCA,48BAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"checkbox.js","sources":["../../src/components/checkbox.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { on } from '@ember/modifier';\nimport { FormControl, type FormControlSharedArgs } from './form-control';\nimport {\n useStyles,\n type CheckboxVariants,\n type CheckboxSlots,\n type SlotsToClasses\n} from '@frontile/theme';\n\ninterface Args extends FormControlSharedArgs {\n checked?: boolean;\n name?: string;\n size?: CheckboxVariants['size'];\n classes?: SlotsToClasses<CheckboxSlots>;\n\n /*\n * Callback when onchange is triggered\n */\n onChange?: (value: boolean, event: Event) => void;\n\n /*\n * Callback when onblur is triggered\n */\n onBlur?: () => void;\n}\n\ninterface CheckboxSignature {\n Args: Args;\n Element: HTMLInputElement;\n}\n\nclass Checkbox extends Component<CheckboxSignature> {\n get isChecked(): boolean {\n return !!this.args.checked;\n }\n\n @action handleChange(event: Event): void {\n event.preventDefault();\n\n const value = !this.args.checked;\n\n if (typeof this.args.onChange === 'function') {\n this.args.onChange(value, event);\n }\n }\n\n @action handleBlur(): void {\n this.args.onBlur?.();\n }\n\n get classes() {\n const { checkbox } = useStyles();\n return checkbox({\n size: this.args.size\n });\n }\n\n <template>\n <FormControl\n @isInvalid={{@isInvalid}}\n @errors={{@errors}}\n @size={{@size}}\n @isRequired={{@isRequired}}\n @class={{this.classes.base class=@classes.base}}\n @preventErrorFeedback={{true}}\n as |c|\n >\n <input\n {{on \"change\" this.handleChange}}\n {{on \"blur\" this.handleBlur}}\n id={{c.id}}\n name={{@name}}\n checked={{this.isChecked}}\n type=\"checkbox\"\n disabled={{@isDisabled}}\n class={{this.classes.input class=@classes.input}}\n data-component=\"checkbox\"\n aria-invalid={{if c.isInvalid \"true\"}}\n aria-describedby={{c.describedBy @description c.isInvalid}}\n ...attributes\n />\n <div class={{this.classes.labelContainer class=@classes.labelContainer}}>\n {{#if @label}}\n <c.Label @class={{this.classes.label class=@classes.label}}>\n {{@label}}\n </c.Label>\n {{/if}}\n {{#if @description}}\n <c.Description>{{@description}}</c.Description>\n {{/if}}\n {{#if c.isInvalid}}\n <c.Feedback />\n {{/if}}\n </div>\n </FormControl>\n </template>\n}\n\nexport { Checkbox, type CheckboxSignature };\nexport default Checkbox;\n"],"names":["Checkbox","Component","isChecked","args","checked","handleChange","event","preventDefault","value","onChange","n","prototype","action","handleBlur","onBlur","classes","checkbox","useStyles","size","setComponentTemplate","precompileTemplate","strictMode","scope","FormControl","on"],"mappings":";;;;;;;;;AAiCA,MAAMA,iBAAiBC,SAAA,CAAU;EAC/B,IAAIC,SAAAA,GAAqB;AACvB,IAAA,OAAO,CAAC,CAAC,IAAI,CAACC,IAAI,CAACC,OAAO;AAC5B,EAAA;EAEQC,YAAAA,CAAaC,KAAY,EAAQ;IACvCA,KAAA,CAAMC,cAAc,EAAA;AAEpB,IAAA,MAAMC,QAAQ,CAAC,IAAI,CAACL,IAAI,CAACC,OAAO;IAEhC,IAAI,OAAO,IAAI,CAACD,IAAI,CAACM,QAAQ,KAAK,UAAA,EAAY;MAC5C,IAAI,CAACN,IAAI,CAACM,QAAQ,CAACD,KAAA,EAAOF,KAAA,CAAA;AAC5B,IAAA;AACF,EAAA;AAAA,EAAA;IAAAI,gBAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CARCC,MAAA,CAAA,CAAA;AAAA;AAUOC,EAAAA,UAAAA,GAAmB;AACzB,IAAA,IAAI,CAACV,IAAI,CAACW,MAAM,IAAA;AAClB,EAAA;AAAA,EAAA;IAAAJ,gBAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,YAAA,EAAA,CAFCC,MAAA,CAAA,CAAA;AAAA;EAID,IAAIG,OAAAA,GAAU;IACZ,MAAM;AAAEC,MAAAA;KAAU,GAAGC,SAAA,EAAA;AACrB,IAAA,OAAOD,QAAA,CAAS;AACdE,MAAAA,IAAA,EAAM,IAAI,CAACf,IAAI,CAACe;AAClB,KAAA,CAAA;AACF,EAAA;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAAA,qgCAAA,EAsCA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=field-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-types.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}