payload 3.0.0-beta.85 → 3.0.0-beta.87

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 (104) hide show
  1. package/dist/admin/fields/Array.d.ts +12 -8
  2. package/dist/admin/fields/Array.d.ts.map +1 -1
  3. package/dist/admin/fields/Array.js.map +1 -1
  4. package/dist/admin/fields/Blocks.d.ts +12 -8
  5. package/dist/admin/fields/Blocks.d.ts.map +1 -1
  6. package/dist/admin/fields/Blocks.js.map +1 -1
  7. package/dist/admin/fields/Checkbox.d.ts +12 -8
  8. package/dist/admin/fields/Checkbox.d.ts.map +1 -1
  9. package/dist/admin/fields/Checkbox.js.map +1 -1
  10. package/dist/admin/fields/Code.d.ts +12 -8
  11. package/dist/admin/fields/Code.d.ts.map +1 -1
  12. package/dist/admin/fields/Code.js.map +1 -1
  13. package/dist/admin/fields/Collapsible.d.ts +12 -9
  14. package/dist/admin/fields/Collapsible.d.ts.map +1 -1
  15. package/dist/admin/fields/Collapsible.js.map +1 -1
  16. package/dist/admin/fields/Date.d.ts +12 -8
  17. package/dist/admin/fields/Date.d.ts.map +1 -1
  18. package/dist/admin/fields/Date.js.map +1 -1
  19. package/dist/admin/fields/Email.d.ts +12 -8
  20. package/dist/admin/fields/Email.d.ts.map +1 -1
  21. package/dist/admin/fields/Email.js.map +1 -1
  22. package/dist/admin/fields/Group.d.ts +12 -9
  23. package/dist/admin/fields/Group.d.ts.map +1 -1
  24. package/dist/admin/fields/Group.js.map +1 -1
  25. package/dist/admin/fields/Hidden.d.ts +1 -5
  26. package/dist/admin/fields/Hidden.d.ts.map +1 -1
  27. package/dist/admin/fields/Hidden.js.map +1 -1
  28. package/dist/admin/fields/JSON.d.ts +12 -8
  29. package/dist/admin/fields/JSON.d.ts.map +1 -1
  30. package/dist/admin/fields/JSON.js.map +1 -1
  31. package/dist/admin/fields/Number.d.ts +12 -8
  32. package/dist/admin/fields/Number.d.ts.map +1 -1
  33. package/dist/admin/fields/Number.js.map +1 -1
  34. package/dist/admin/fields/Point.d.ts +12 -8
  35. package/dist/admin/fields/Point.d.ts.map +1 -1
  36. package/dist/admin/fields/Point.js.map +1 -1
  37. package/dist/admin/fields/Radio.d.ts +12 -8
  38. package/dist/admin/fields/Radio.d.ts.map +1 -1
  39. package/dist/admin/fields/Radio.js.map +1 -1
  40. package/dist/admin/fields/Relationship.d.ts +12 -8
  41. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  42. package/dist/admin/fields/Relationship.js.map +1 -1
  43. package/dist/admin/fields/RichText.d.ts +12 -8
  44. package/dist/admin/fields/RichText.d.ts.map +1 -1
  45. package/dist/admin/fields/RichText.js.map +1 -1
  46. package/dist/admin/fields/Row.d.ts +13 -10
  47. package/dist/admin/fields/Row.d.ts.map +1 -1
  48. package/dist/admin/fields/Row.js.map +1 -1
  49. package/dist/admin/fields/Select.d.ts +12 -8
  50. package/dist/admin/fields/Select.d.ts.map +1 -1
  51. package/dist/admin/fields/Select.js.map +1 -1
  52. package/dist/admin/fields/Tabs.d.ts +11 -9
  53. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  54. package/dist/admin/fields/Tabs.js.map +1 -1
  55. package/dist/admin/fields/Text.d.ts +12 -8
  56. package/dist/admin/fields/Text.d.ts.map +1 -1
  57. package/dist/admin/fields/Text.js.map +1 -1
  58. package/dist/admin/fields/Textarea.d.ts +12 -8
  59. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  60. package/dist/admin/fields/Textarea.js.map +1 -1
  61. package/dist/admin/fields/Upload.d.ts +12 -8
  62. package/dist/admin/fields/Upload.d.ts.map +1 -1
  63. package/dist/admin/fields/Upload.js.map +1 -1
  64. package/dist/admin/forms/Description.d.ts +24 -0
  65. package/dist/admin/forms/Description.d.ts.map +1 -0
  66. package/dist/admin/forms/Description.js +3 -0
  67. package/dist/admin/forms/Description.js.map +1 -0
  68. package/dist/admin/forms/Error.d.ts +12 -5
  69. package/dist/admin/forms/Error.d.ts.map +1 -1
  70. package/dist/admin/forms/Error.js.map +1 -1
  71. package/dist/admin/forms/Field.d.ts +12 -10
  72. package/dist/admin/forms/Field.d.ts.map +1 -1
  73. package/dist/admin/forms/Field.js +0 -1
  74. package/dist/admin/forms/Field.js.map +1 -1
  75. package/dist/admin/forms/Label.d.ts +13 -6
  76. package/dist/admin/forms/Label.d.ts.map +1 -1
  77. package/dist/admin/forms/Label.js.map +1 -1
  78. package/dist/admin/types.d.ts +32 -26
  79. package/dist/admin/types.d.ts.map +1 -1
  80. package/dist/admin/types.js.map +1 -1
  81. package/dist/collections/config/client.d.ts +2 -2
  82. package/dist/collections/config/client.d.ts.map +1 -1
  83. package/dist/collections/config/client.js.map +1 -1
  84. package/dist/config/types.d.ts +8 -8
  85. package/dist/config/types.d.ts.map +1 -1
  86. package/dist/config/types.js.map +1 -1
  87. package/dist/exports/shared.d.ts.map +1 -1
  88. package/dist/exports/shared.js.map +1 -1
  89. package/dist/fields/config/types.d.ts +49 -48
  90. package/dist/fields/config/types.d.ts.map +1 -1
  91. package/dist/fields/config/types.js.map +1 -1
  92. package/dist/utilities/configToJSONSchema.d.ts.map +1 -1
  93. package/dist/utilities/configToJSONSchema.js +6 -2
  94. package/dist/utilities/configToJSONSchema.js.map +1 -1
  95. package/dist/utilities/configToJSONSchema.spec.js +160 -0
  96. package/dist/utilities/configToJSONSchema.spec.js.map +1 -1
  97. package/dist/utilities/flattenTopLevelFields.d.ts +2 -2
  98. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  99. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  100. package/package.json +2 -2
  101. package/dist/admin/forms/FieldDescription.d.ts +0 -17
  102. package/dist/admin/forms/FieldDescription.d.ts.map +0 -1
  103. package/dist/admin/forms/FieldDescription.js +0 -3
  104. package/dist/admin/forms/FieldDescription.js.map +0 -1
@@ -1,14 +1,18 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { ArrayFieldClient } from '../../fields/config/types.js';
2
+ import type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js';
3
3
  import type { ArrayFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent, MappedComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase, MappedComponent } from '../types.js';
6
+ type ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>;
6
7
  export type ArrayFieldProps = {
7
8
  readonly CustomRowLabel?: MappedComponent;
8
- readonly field: MarkOptional<ArrayFieldClient, 'type'>;
9
9
  readonly validate?: ArrayFieldValidation;
10
- } & Omit<FormFieldBase, 'validate'>;
11
- export type ArrayFieldLabelComponent = LabelComponent<'array'>;
12
- export type ArrayFieldDescriptionComponent = DescriptionComponent<'array'>;
13
- export type ArrayFieldErrorComponent = ErrorComponent<'array'>;
10
+ } & Omit<FormFieldBase<ArrayFieldClientWithoutType>, 'validate'>;
11
+ export type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField>;
12
+ export type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>;
13
+ export type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField>;
14
+ export type ArrayFieldDescriptionClientComponent = FieldDescriptionClientComponent<ArrayFieldClientWithoutType>;
15
+ export type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField>;
16
+ export type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>;
17
+ export {};
14
18
  //# sourceMappingURL=Array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Array.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Array.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,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,CAAC,CAAA;AAEzE,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,cAAc,CAAC,EAAE,eAAe,CAAA;IACzC,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC,EAAE,UAAU,CAAC,CAAA;AAEhE,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA;AAEnG,MAAM,MAAM,oCAAoC,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,+BAA+B,CAAC,2BAA2B,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type {\n DescriptionComponent,\n FormFieldBase,\n LabelComponent,\n MappedComponent,\n} from '../types.js'\n\nexport type ArrayFieldProps = {\n readonly CustomRowLabel?: MappedComponent\n readonly field: MarkOptional<ArrayFieldClient, 'type'>\n readonly validate?: ArrayFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type ArrayFieldLabelComponent = LabelComponent<'array'>\n\nexport type ArrayFieldDescriptionComponent = DescriptionComponent<'array'>\n\nexport type ArrayFieldErrorComponent = ErrorComponent<'array'>\n"],"names":[],"mappings":"AAsBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Array.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ArrayField, ArrayFieldClient } from '../../fields/config/types.js'\nimport type { ArrayFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n MappedComponent,\n} from '../types.js'\n\ntype ArrayFieldClientWithoutType = MarkOptional<ArrayFieldClient, 'type'>\n\nexport type ArrayFieldProps = {\n readonly CustomRowLabel?: MappedComponent\n readonly validate?: ArrayFieldValidation\n} & Omit<FormFieldBase<ArrayFieldClientWithoutType>, 'validate'>\n\nexport type ArrayFieldLabelServerComponent = FieldLabelServerComponent<ArrayField>\n\nexport type ArrayFieldLabelClientComponent = FieldLabelClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldDescriptionServerComponent = FieldDescriptionServerComponent<ArrayField>\n\nexport type ArrayFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<ArrayFieldClientWithoutType>\n\nexport type ArrayFieldErrorServerComponent = FieldErrorServerComponent<ArrayField>\n\nexport type ArrayFieldErrorClientComponent = FieldErrorClientComponent<ArrayFieldClientWithoutType>\n"],"names":[],"mappings":"AAgCA,WAAmG"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { BlockFieldClient } from '../../fields/config/types.js';
2
+ import type { BlockField, BlockFieldClient } from '../../fields/config/types.js';
3
3
  import type { BlockFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type BlocksFieldClientWithoutType = MarkOptional<BlockFieldClient, 'type'>;
6
7
  export type BlockFieldProps = {
7
- readonly field: MarkOptional<BlockFieldClient, 'type'>;
8
8
  readonly validate?: BlockFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type BlockFieldLabelComponent = LabelComponent<'blocks'>;
11
- export type BlockFieldDescriptionComponent = DescriptionComponent<'blocks'>;
12
- export type BlockFieldErrorComponent = ErrorComponent<'blocks'>;
9
+ } & Omit<FormFieldBase<BlocksFieldClientWithoutType>, 'validate'>;
10
+ export type BlockFieldLabelServerComponent = FieldLabelServerComponent<BlockField>;
11
+ export type BlockFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>;
12
+ export type BlockFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlockField>;
13
+ export type BlockFieldDescriptionClientComponent = FieldDescriptionClientComponent<BlocksFieldClientWithoutType>;
14
+ export type BlockFieldErrorServerComponent = FieldErrorServerComponent<BlockField>;
15
+ export type BlockFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>;
16
+ export {};
13
17
  //# sourceMappingURL=Blocks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Blocks.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Blocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAo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AAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,4BAA4B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlockFieldClient } from '../../fields/config/types.js'\nimport type { BlockFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type BlockFieldProps = {\n readonly field: MarkOptional<BlockFieldClient, 'type'>\n readonly validate?: BlockFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type BlockFieldLabelComponent = LabelComponent<'blocks'>\n\nexport type BlockFieldDescriptionComponent = DescriptionComponent<'blocks'>\n\nexport type BlockFieldErrorComponent = ErrorComponent<'blocks'>\n"],"names":[],"mappings":"AAgBA,WAA+D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Blocks.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { BlockField, BlockFieldClient } from '../../fields/config/types.js'\nimport type { BlockFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype BlocksFieldClientWithoutType = MarkOptional<BlockFieldClient, 'type'>\n\nexport type BlockFieldProps = {\n readonly validate?: BlockFieldValidation\n} & Omit<FormFieldBase<BlocksFieldClientWithoutType>, 'validate'>\n\nexport type BlockFieldLabelServerComponent = FieldLabelServerComponent<BlockField>\n\nexport type BlockFieldLabelClientComponent = FieldLabelClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlockFieldDescriptionServerComponent = FieldDescriptionServerComponent<BlockField>\n\nexport type BlockFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<BlocksFieldClientWithoutType>\n\nexport type BlockFieldErrorServerComponent = FieldErrorServerComponent<BlockField>\n\nexport type BlockFieldErrorClientComponent = FieldErrorClientComponent<BlocksFieldClientWithoutType>\n"],"names":[],"mappings":"AA8BA,WAAoG"}
@@ -1,18 +1,22 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { CheckboxFieldClient } from '../../fields/config/types.js';
2
+ import type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js';
3
3
  import type { CheckboxFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>;
6
7
  export type CheckboxFieldProps = {
7
8
  readonly checked?: boolean;
8
9
  readonly disableFormData?: boolean;
9
- readonly field: MarkOptional<CheckboxFieldClient, 'type'>;
10
10
  readonly id?: string;
11
11
  readonly onChange?: (value: boolean) => void;
12
12
  readonly partialChecked?: boolean;
13
13
  readonly validate?: CheckboxFieldValidation;
14
- } & Omit<FormFieldBase, 'validate'>;
15
- export type CheckboxFieldLabelComponent = LabelComponent<'checkbox'>;
16
- export type CheckboxFieldDescriptionComponent = DescriptionComponent<'checkbox'>;
17
- export type CheckboxFieldErrorComponent = ErrorComponent<'checkbox'>;
14
+ } & Omit<FormFieldBase<CheckboxFieldClientWithoutType>, 'validate'>;
15
+ export type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField>;
16
+ export type CheckboxFieldLabelClientComponent = FieldLabelClientComponent<CheckboxFieldClientWithoutType>;
17
+ export type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField>;
18
+ export type CheckboxFieldDescriptionClientComponent = FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>;
19
+ export type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField>;
20
+ export type CheckboxFieldErrorClientComponent = FieldErrorClientComponent<CheckboxFieldClientWithoutType>;
21
+ export {};
18
22
  //# sourceMappingURL=Checkbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;IACzD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;IAC5C,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAA;IACjC,QAAQ,CAAC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CAC5C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA;AAEpE,MAAM,MAAM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AM,MAAM,uCAAuC,GAAG,+BAA+B,CAAC,aAAa,CAAC,CAAA;AAEpG,MAAM,MAAM,uCAAuC,GACjD,+BAA+B,CAAC,8BAA8B,CAAC,CAAA;AAEjE,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CAAC,aAAa,CAAC,CAAA;AAExF,MAAM,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type CheckboxFieldProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly field: MarkOptional<CheckboxFieldClient, 'type'>\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly validate?: CheckboxFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type CheckboxFieldLabelComponent = LabelComponent<'checkbox'>\n\nexport type CheckboxFieldDescriptionComponent = DescriptionComponent<'checkbox'>\n\nexport type CheckboxFieldErrorComponent = ErrorComponent<'checkbox'>\n"],"names":[],"mappings":"AAqBA,WAAoE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Checkbox.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CheckboxField, CheckboxFieldClient } from '../../fields/config/types.js'\nimport type { CheckboxFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype CheckboxFieldClientWithoutType = MarkOptional<CheckboxFieldClient, 'type'>\n\nexport type CheckboxFieldProps = {\n readonly checked?: boolean\n readonly disableFormData?: boolean\n readonly id?: string\n readonly onChange?: (value: boolean) => void\n readonly partialChecked?: boolean\n readonly validate?: CheckboxFieldValidation\n} & Omit<FormFieldBase<CheckboxFieldClientWithoutType>, 'validate'>\n\nexport type CheckboxFieldLabelServerComponent = FieldLabelServerComponent<CheckboxField>\n\nexport type CheckboxFieldLabelClientComponent =\n FieldLabelClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldDescriptionServerComponent = FieldDescriptionServerComponent<CheckboxField>\n\nexport type CheckboxFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CheckboxFieldClientWithoutType>\n\nexport type CheckboxFieldErrorServerComponent = FieldErrorServerComponent<CheckboxField>\n\nexport type CheckboxFieldErrorClientComponent =\n FieldErrorClientComponent<CheckboxFieldClientWithoutType>\n"],"names":[],"mappings":"AAoCA,WAC2D"}
@@ -1,14 +1,18 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { CodeFieldClient } from '../../fields/config/types.js';
2
+ import type { CodeField, CodeFieldClient } from '../../fields/config/types.js';
3
3
  import type { CodeFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>;
6
7
  export type CodeFieldProps = {
7
8
  readonly autoComplete?: string;
8
- readonly field: MarkOptional<CodeFieldClient, 'type'>;
9
9
  readonly validate?: CodeFieldValidation;
10
- } & Omit<FormFieldBase, 'validate'>;
11
- export type CodeFieldLabelComponent = LabelComponent<'code'>;
12
- export type CodeFieldDescriptionComponent = DescriptionComponent<'code'>;
13
- export type CodeFieldErrorComponent = ErrorComponent<'code'>;
10
+ } & Omit<FormFieldBase<CodeFieldClientWithoutType>, 'validate'>;
11
+ export type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField>;
12
+ export type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>;
13
+ export type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField>;
14
+ export type CodeFieldDescriptionClientComponent = FieldDescriptionClientComponent<CodeFieldClientWithoutType>;
15
+ export type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField>;
16
+ export type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>;
17
+ export {};
14
18
  //# sourceMappingURL=Code.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MA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
- {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type CodeFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<CodeFieldClient, 'type'>\n readonly validate?: CodeFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type CodeFieldLabelComponent = LabelComponent<'code'>\n\nexport type CodeFieldDescriptionComponent = DescriptionComponent<'code'>\n\nexport type CodeFieldErrorComponent = ErrorComponent<'code'>\n"],"names":[],"mappings":"AAiBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Code.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CodeField, CodeFieldClient } from '../../fields/config/types.js'\nimport type { CodeFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype CodeFieldClientWithoutType = MarkOptional<CodeFieldClient, 'type'>\n\nexport type CodeFieldProps = {\n readonly autoComplete?: string\n readonly validate?: CodeFieldValidation\n} & Omit<FormFieldBase<CodeFieldClientWithoutType>, 'validate'>\n\nexport type CodeFieldLabelServerComponent = FieldLabelServerComponent<CodeField>\n\nexport type CodeFieldLabelClientComponent = FieldLabelClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldDescriptionServerComponent = FieldDescriptionServerComponent<CodeField>\n\nexport type CodeFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CodeFieldClientWithoutType>\n\nexport type CodeFieldErrorServerComponent = FieldErrorServerComponent<CodeField>\n\nexport type CodeFieldErrorClientComponent = FieldErrorClientComponent<CodeFieldClientWithoutType>\n"],"names":[],"mappings":"AA+BA,WAAiG"}
@@ -1,11 +1,14 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { CollapsibleFieldClient } from '../../fields/config/types.js';
3
- import type { ErrorComponent } from '../forms/Error.js';
4
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
- export type CollapsibleFieldProps = {
6
- readonly field: MarkOptional<CollapsibleFieldClient, 'type'>;
7
- } & FormFieldBase;
8
- export type CollapsibleFieldLabelComponent = LabelComponent<'collapsible'>;
9
- export type CollapsibleFieldDescriptionComponent = DescriptionComponent<'collapsible'>;
10
- export type CollapsibleFieldErrorComponent = ErrorComponent<'collapsible'>;
2
+ import type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js';
3
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
4
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
5
+ type CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>;
6
+ export type CollapsibleFieldProps = FormFieldBase<CollapsibleFieldClientWithoutType>;
7
+ export type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<CollapsibleField>;
8
+ export type CollapsibleFieldLabelClientComponent = FieldLabelClientComponent<CollapsibleFieldClientWithoutType>;
9
+ export type CollapsibleFieldDescriptionServerComponent = FieldDescriptionServerComponent<CollapsibleField>;
10
+ export type CollapsibleFieldDescriptionClientComponent = FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>;
11
+ export type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField>;
12
+ export type CollapsibleFieldErrorClientComponent = FieldErrorClientComponent<CollapsibleFieldClientWithoutType>;
13
+ export {};
11
14
  //# sourceMappingURL=Collapsible.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAA;CAC7D,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA;AAE1E,MAAM,MAAM,oCAAoC,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAA;AAEtF,MAAM,MAAM,8BAA8B,GAAG,cAAc,CAAC,aAAa,CAAC,CAAA"}
1
+ {"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Collapsible.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,iCAAiC,GAAG,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAA;AAErF,MAAM,MAAM,qBAAqB,GAAG,aAAa,CAAC,iCAAiC,CAAC,CAAA;AAEpF,MAAM,MAAM,oCAAoC,GAAG,yBAAyB,CAAC,gBAAgB,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,yBAAyB,CAAC,iCAAiC,CAAC,CAAA;AAE9D,MAAM,MAAM,0CAA0C,GACpD,+BAA+B,CAAC,gBAAgB,CAAC,CAAA;AAEnD,MAAM,MAAM,0CAA0C,GACpD,+BAA+B,CAAC,iCAAiC,CAAC,CAAA;AAEpE,MAAM,MAAM,oCAAoC,GAAG,yBAAyB,CAAC,gBAAgB,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,yBAAyB,CAAC,iCAAiC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type CollapsibleFieldProps = {\n readonly field: MarkOptional<CollapsibleFieldClient, 'type'>\n} & FormFieldBase\n\nexport type CollapsibleFieldLabelComponent = LabelComponent<'collapsible'>\n\nexport type CollapsibleFieldDescriptionComponent = DescriptionComponent<'collapsible'>\n\nexport type CollapsibleFieldErrorComponent = ErrorComponent<'collapsible'>\n"],"names":[],"mappings":"AAcA,WAA0E"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Collapsible.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { CollapsibleField, CollapsibleFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype CollapsibleFieldClientWithoutType = MarkOptional<CollapsibleFieldClient, 'type'>\n\nexport type CollapsibleFieldProps = FormFieldBase<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldLabelServerComponent = FieldLabelServerComponent<CollapsibleField>\n\nexport type CollapsibleFieldLabelClientComponent =\n FieldLabelClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldDescriptionServerComponent =\n FieldDescriptionServerComponent<CollapsibleField>\n\nexport type CollapsibleFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<CollapsibleFieldClientWithoutType>\n\nexport type CollapsibleFieldErrorServerComponent = FieldErrorServerComponent<CollapsibleField>\n\nexport type CollapsibleFieldErrorClientComponent =\n FieldErrorClientComponent<CollapsibleFieldClientWithoutType>\n"],"names":[],"mappings":"AA6BA,WAC8D"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { DateFieldClient } from '../../fields/config/types.js';
2
+ import type { DateField, DateFieldClient } from '../../fields/config/types.js';
3
3
  import type { DateFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type DateFieldClientWithoutType = MarkOptional<DateFieldClient, 'type'>;
6
7
  export type DateFieldProps = {
7
- readonly field: MarkOptional<DateFieldClient, 'type'>;
8
8
  readonly validate?: DateFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type DateFieldLabelComponent = LabelComponent<'date'>;
11
- export type DateFieldDescriptionComponent = DescriptionComponent<'date'>;
12
- export type DateFieldErrorComponent = ErrorComponent<'date'>;
9
+ } & Omit<FormFieldBase<DateFieldClientWithoutType>, 'validate'>;
10
+ export type DateFieldLabelServerComponent = FieldLabelServerComponent<DateField>;
11
+ export type DateFieldLabelClientComponent = FieldLabelClientComponent<DateFieldClientWithoutType>;
12
+ export type DateFieldDescriptionServerComponent = FieldDescriptionServerComponent<DateField>;
13
+ export type DateFieldDescriptionClientComponent = FieldDescriptionClientComponent<DateFieldClientWithoutType>;
14
+ export type DateFieldErrorServerComponent = FieldErrorServerComponent<DateField>;
15
+ export type DateFieldErrorClientComponent = FieldErrorClientComponent<DateFieldClientWithoutType>;
16
+ export {};
13
17
  //# sourceMappingURL=Date.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,0BAA0B,GAAG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE,UAAU,CAAC,CAAA;AAE/D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAEhF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,+BAA+B,CAAC,SAAS,CAAC,CAAA;AAE5F,MAAM,MAAM,mCAAmC,GAC7C,+BAA+B,CAAC,0BAA0B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAEhF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { DateFieldClient } from '../../fields/config/types.js'\nimport type { DateFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type DateFieldProps = {\n readonly field: MarkOptional<DateFieldClient, 'type'>\n readonly validate?: DateFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type DateFieldLabelComponent = LabelComponent<'date'>\n\nexport type DateFieldDescriptionComponent = DescriptionComponent<'date'>\n\nexport type DateFieldErrorComponent = ErrorComponent<'date'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { DateField, DateFieldClient } from '../../fields/config/types.js'\nimport type { DateFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype DateFieldClientWithoutType = MarkOptional<DateFieldClient, 'type'>\n\nexport type DateFieldProps = {\n readonly validate?: DateFieldValidation\n} & Omit<FormFieldBase<DateFieldClientWithoutType>, 'validate'>\n\nexport type DateFieldLabelServerComponent = FieldLabelServerComponent<DateField>\n\nexport type DateFieldLabelClientComponent = FieldLabelClientComponent<DateFieldClientWithoutType>\n\nexport type DateFieldDescriptionServerComponent = FieldDescriptionServerComponent<DateField>\n\nexport type DateFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<DateFieldClientWithoutType>\n\nexport type DateFieldErrorServerComponent = FieldErrorServerComponent<DateField>\n\nexport type DateFieldErrorClientComponent = FieldErrorClientComponent<DateFieldClientWithoutType>\n"],"names":[],"mappings":"AA8BA,WAAiG"}
@@ -1,14 +1,18 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { EmailFieldClient } from '../../fields/config/types.js';
2
+ import type { EmailField, EmailFieldClient } from '../../fields/config/types.js';
3
3
  import type { EmailFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type EmailFieldClientWithoutType = MarkOptional<EmailFieldClient, 'type'>;
6
7
  export type EmailFieldProps = {
7
8
  readonly autoComplete?: string;
8
- readonly field: MarkOptional<EmailFieldClient, 'type'>;
9
9
  readonly validate?: EmailFieldValidation;
10
- } & Omit<FormFieldBase, 'validate'>;
11
- export type EmailFieldLabelComponent = LabelComponent<'email'>;
12
- export type EmailFieldDescriptionComponent = DescriptionComponent<'email'>;
13
- export type EmailFieldErrorComponent = ErrorComponent<'email'>;
10
+ } & Omit<FormFieldBase<EmailFieldClientWithoutType>, 'validate'>;
11
+ export type EmailFieldLabelServerComponent = FieldLabelServerComponent<EmailField>;
12
+ export type EmailFieldLabelClientComponent = FieldLabelClientComponent<EmailFieldClientWithoutType>;
13
+ export type EmailFieldDescriptionServerComponent = FieldDescriptionServerComponent<EmailField>;
14
+ export type EmailFieldDescriptionClientComponent = FieldDescriptionClientComponent<EmailFieldClientWithoutType>;
15
+ export type EmailFieldErrorServerComponent = FieldErrorServerComponent<EmailField>;
16
+ export type EmailFieldErrorClientComponent = FieldErrorClientComponent<EmailFieldClientWithoutType>;
17
+ export {};
14
18
  //# sourceMappingURL=Email.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,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AAC,2BAA2B,CAAC,CAAA;AAEnG,MAAM,MAAM,oCAAoC,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,+BAA+B,CAAC,2BAA2B,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { EmailFieldClient } from '../../fields/config/types.js'\nimport type { EmailFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type EmailFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<EmailFieldClient, 'type'>\n readonly validate?: EmailFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type EmailFieldLabelComponent = LabelComponent<'email'>\n\nexport type EmailFieldDescriptionComponent = DescriptionComponent<'email'>\n\nexport type EmailFieldErrorComponent = ErrorComponent<'email'>\n"],"names":[],"mappings":"AAiBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { EmailField, EmailFieldClient } from '../../fields/config/types.js'\nimport type { EmailFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype EmailFieldClientWithoutType = MarkOptional<EmailFieldClient, 'type'>\n\nexport type EmailFieldProps = {\n readonly autoComplete?: string\n readonly validate?: EmailFieldValidation\n} & Omit<FormFieldBase<EmailFieldClientWithoutType>, 'validate'>\n\nexport type EmailFieldLabelServerComponent = FieldLabelServerComponent<EmailField>\n\nexport type EmailFieldLabelClientComponent = FieldLabelClientComponent<EmailFieldClientWithoutType>\n\nexport type EmailFieldDescriptionServerComponent = FieldDescriptionServerComponent<EmailField>\n\nexport type EmailFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<EmailFieldClientWithoutType>\n\nexport type EmailFieldErrorServerComponent = FieldErrorServerComponent<EmailField>\n\nexport type EmailFieldErrorClientComponent = FieldErrorClientComponent<EmailFieldClientWithoutType>\n"],"names":[],"mappings":"AA+BA,WAAmG"}
@@ -1,11 +1,14 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { GroupFieldClient } from '../../fields/config/types.js';
3
- import type { ErrorComponent } from '../forms/Error.js';
4
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
- export type GroupFieldProps = {
6
- readonly field: MarkOptional<GroupFieldClient, 'type'>;
7
- } & FormFieldBase;
8
- export type GroupFieldLabelComponent = LabelComponent<'group'>;
9
- export type GroupFieldDescriptionComponent = DescriptionComponent<'group'>;
10
- export type GroupFieldErrorComponent = ErrorComponent<'group'>;
2
+ import type { GroupField, GroupFieldClient } from '../../fields/config/types.js';
3
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
4
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
5
+ type GroupFieldClientWithoutType = MarkOptional<GroupFieldClient, 'type'>;
6
+ export type GroupFieldProps = FormFieldBase<GroupFieldClientWithoutType>;
7
+ export type GroupFieldLabelServerComponent = FieldLabelServerComponent<GroupField>;
8
+ export type GroupFieldLabelClientComponent = FieldLabelClientComponent<GroupFieldClientWithoutType>;
9
+ export type GroupFieldDescriptionServerComponent = FieldDescriptionServerComponent<GroupField>;
10
+ export type GroupFieldDescriptionClientComponent = FieldDescriptionClientComponent<GroupFieldClientWithoutType>;
11
+ export type GroupFieldErrorServerComponent = FieldErrorServerComponent<GroupField>;
12
+ export type GroupFieldErrorClientComponent = FieldErrorClientComponent<GroupFieldClientWithoutType>;
13
+ export {};
11
14
  //# sourceMappingURL=Group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;CACvD,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,2BAA2B,GAAG,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;AAEzE,MAAM,MAAM,eAAe,GAAG,aAAa,CAAC,2BAA2B,CAAC,CAAA;AAExE,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA;AAEnG,MAAM,MAAM,oCAAoC,GAAG,+BAA+B,CAAC,UAAU,CAAC,CAAA;AAE9F,MAAM,MAAM,oCAAoC,GAC9C,+BAA+B,CAAC,2BAA2B,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,UAAU,CAAC,CAAA;AAElF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC,2BAA2B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { GroupFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type GroupFieldProps = {\n readonly field: MarkOptional<GroupFieldClient, 'type'>\n} & FormFieldBase\n\nexport type GroupFieldLabelComponent = LabelComponent<'group'>\n\nexport type GroupFieldDescriptionComponent = DescriptionComponent<'group'>\n\nexport type GroupFieldErrorComponent = ErrorComponent<'group'>\n"],"names":[],"mappings":"AAcA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { GroupField, GroupFieldClient } from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype GroupFieldClientWithoutType = MarkOptional<GroupFieldClient, 'type'>\n\nexport type GroupFieldProps = FormFieldBase<GroupFieldClientWithoutType>\n\nexport type GroupFieldLabelServerComponent = FieldLabelServerComponent<GroupField>\n\nexport type GroupFieldLabelClientComponent = FieldLabelClientComponent<GroupFieldClientWithoutType>\n\nexport type GroupFieldDescriptionServerComponent = FieldDescriptionServerComponent<GroupField>\n\nexport type GroupFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<GroupFieldClientWithoutType>\n\nexport type GroupFieldErrorServerComponent = FieldErrorServerComponent<GroupField>\n\nexport type GroupFieldErrorClientComponent = FieldErrorClientComponent<GroupFieldClientWithoutType>\n"],"names":[],"mappings":"AA2BA,WAAmG"}
@@ -1,6 +1,5 @@
1
1
  import type { ClientField } from '../../fields/config/client.js';
2
- import type { ErrorComponent } from '../forms/Error.js';
3
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
2
+ import type { FormFieldBase } from '../types.js';
4
3
  export type HiddenFieldProps = {
5
4
  readonly disableModifyingForm?: false;
6
5
  readonly field?: {
@@ -9,7 +8,4 @@ export type HiddenFieldProps = {
9
8
  readonly forceUsePathFromProps?: boolean;
10
9
  readonly value?: unknown;
11
10
  } & FormFieldBase;
12
- export type HiddenFieldLabelComponent = LabelComponent<'hidden'>;
13
- export type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>;
14
- export type HiddenFieldErrorComponent = ErrorComponent<'hidden'>;
15
11
  //# sourceMappingURL=Hidden.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAA;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KACvB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
1
+ {"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAA;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KACvB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,aAAa,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/client.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type HiddenFieldProps = {\n readonly disableModifyingForm?: false\n readonly field?: {\n readonly name?: string\n } & Pick<ClientField, '_path'>\n readonly forceUsePathFromProps?: boolean\n readonly value?: unknown\n} & FormFieldBase\n\nexport type HiddenFieldLabelComponent = LabelComponent<'hidden'>\n\nexport type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>\n\nexport type HiddenFieldErrorComponent = ErrorComponent<'hidden'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/client.js'\nimport type { FormFieldBase } from '../types.js'\n\nexport type HiddenFieldProps = {\n readonly disableModifyingForm?: false\n readonly field?: {\n readonly name?: string\n } & Pick<ClientField, '_path'>\n readonly forceUsePathFromProps?: boolean\n readonly value?: unknown\n} & FormFieldBase\n"],"names":[],"mappings":"AAGA,WAOiB"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { JSONFieldClient } from '../../fields/config/types.js';
2
+ import type { JSONField, JSONFieldClient } from '../../fields/config/types.js';
3
3
  import type { JSONFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type JSONFieldClientWithoutType = MarkOptional<JSONFieldClient, 'type'>;
6
7
  export type JSONFieldProps = {
7
- readonly field: MarkOptional<JSONFieldClient, 'type'>;
8
8
  readonly validate?: JSONFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type JSONFieldLabelComponent = LabelComponent<'json'>;
11
- export type JSONFieldDescriptionComponent = DescriptionComponent<'json'>;
12
- export type JSONFieldErrorComponent = ErrorComponent<'json'>;
9
+ } & Omit<FormFieldBase<JSONFieldClientWithoutType>, 'validate'>;
10
+ export type JSONFieldLabelServerComponent = FieldLabelServerComponent<JSONField>;
11
+ export type JSONFieldLabelClientComponent = FieldLabelClientComponent<JSONFieldClientWithoutType>;
12
+ export type JSONFieldDescriptionServerComponent = FieldDescriptionServerComponent<JSONField>;
13
+ export type JSONFieldDescriptionClientComponent = FieldDescriptionClientComponent<JSONFieldClientWithoutType>;
14
+ export type JSONFieldErrorServerComponent = FieldErrorServerComponent<JSONField>;
15
+ export type JSONFieldErrorClientComponent = FieldErrorClientComponent<JSONFieldClientWithoutType>;
16
+ export {};
13
17
  //# sourceMappingURL=JSON.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JSON.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/JSON.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"JSON.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/JSON.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,0BAA0B,GAAG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;AAEvE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE,UAAU,CAAC,CAAA;AAE/D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAEhF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,+BAA+B,CAAC,SAAS,CAAC,CAAA;AAE5F,MAAM,MAAM,mCAAmC,GAC7C,+BAA+B,CAAC,0BAA0B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,SAAS,CAAC,CAAA;AAEhF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/JSON.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { JSONFieldClient } from '../../fields/config/types.js'\nimport type { JSONFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type JSONFieldProps = {\n readonly field: MarkOptional<JSONFieldClient, 'type'>\n readonly validate?: JSONFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type JSONFieldLabelComponent = LabelComponent<'json'>\n\nexport type JSONFieldDescriptionComponent = DescriptionComponent<'json'>\n\nexport type JSONFieldErrorComponent = ErrorComponent<'json'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/JSON.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { JSONField, JSONFieldClient } from '../../fields/config/types.js'\nimport type { JSONFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype JSONFieldClientWithoutType = MarkOptional<JSONFieldClient, 'type'>\n\nexport type JSONFieldProps = {\n readonly validate?: JSONFieldValidation\n} & Omit<FormFieldBase<JSONFieldClientWithoutType>, 'validate'>\n\nexport type JSONFieldLabelServerComponent = FieldLabelServerComponent<JSONField>\n\nexport type JSONFieldLabelClientComponent = FieldLabelClientComponent<JSONFieldClientWithoutType>\n\nexport type JSONFieldDescriptionServerComponent = FieldDescriptionServerComponent<JSONField>\n\nexport type JSONFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<JSONFieldClientWithoutType>\n\nexport type JSONFieldErrorServerComponent = FieldErrorServerComponent<JSONField>\n\nexport type JSONFieldErrorClientComponent = FieldErrorClientComponent<JSONFieldClientWithoutType>\n"],"names":[],"mappings":"AA8BA,WAAiG"}
@@ -1,14 +1,18 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { NumberFieldClient } from '../../fields/config/types.js';
2
+ import type { NumberField, NumberFieldClient } from '../../fields/config/types.js';
3
3
  import type { NumberFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type NumberFieldClientWithoutType = MarkOptional<NumberFieldClient, 'type'>;
6
7
  export type NumberFieldProps = {
7
- readonly field: MarkOptional<NumberFieldClient, 'type'>;
8
8
  readonly onChange?: (e: number) => void;
9
9
  readonly validate?: NumberFieldValidation;
10
- } & Omit<FormFieldBase, 'validate'>;
11
- export type NumberFieldLabelComponent = LabelComponent<'number'>;
12
- export type NumberFieldDescriptionComponent = DescriptionComponent<'number'>;
13
- export type NumberFieldErrorComponent = ErrorComponent<'number'>;
10
+ } & Omit<FormFieldBase<NumberFieldClientWithoutType>, 'validate'>;
11
+ export type NumberFieldLabelServerComponent = FieldLabelServerComponent<NumberField>;
12
+ export type NumberFieldLabelClientComponent = FieldLabelClientComponent<NumberFieldClientWithoutType>;
13
+ export type NumberFieldDescriptionServerComponent = FieldDescriptionServerComponent<NumberField>;
14
+ export type NumberFieldDescriptionClientComponent = FieldDescriptionClientComponent<NumberFieldClientWithoutType>;
15
+ export type NumberFieldErrorServerComponent = FieldErrorServerComponent<NumberField>;
16
+ export type NumberFieldErrorClientComponent = FieldErrorClientComponent<NumberFieldClientWithoutType>;
17
+ export {};
14
18
  //# sourceMappingURL=Number.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EA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C,CAAA;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C,GAAG,IAAI,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE,UAAU,CAAC,CAAA;AAEjE,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAA;AAEpF,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA;AAEzD,MAAM,MAAM,qCAAqC,GAAG,+BAA+B,CAAC,WAAW,CAAC,CAAA;AAEhG,MAAM,MAAM,qCAAqC,GAC/C,+BAA+B,CAAC,4BAA4B,CAAC,CAAA;AAE/D,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CAAC,WAAW,CAAC,CAAA;AAEpF,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { NumberFieldClient } from '../../fields/config/types.js'\nimport type { NumberFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type NumberFieldProps = {\n readonly field: MarkOptional<NumberFieldClient, 'type'>\n readonly onChange?: (e: number) => void\n readonly validate?: NumberFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type NumberFieldLabelComponent = LabelComponent<'number'>\n\nexport type NumberFieldDescriptionComponent = DescriptionComponent<'number'>\n\nexport type NumberFieldErrorComponent = ErrorComponent<'number'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { NumberField, NumberFieldClient } from '../../fields/config/types.js'\nimport type { NumberFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype NumberFieldClientWithoutType = MarkOptional<NumberFieldClient, 'type'>\n\nexport type NumberFieldProps = {\n readonly onChange?: (e: number) => void\n readonly validate?: NumberFieldValidation\n} & Omit<FormFieldBase<NumberFieldClientWithoutType>, 'validate'>\n\nexport type NumberFieldLabelServerComponent = FieldLabelServerComponent<NumberField>\n\nexport type NumberFieldLabelClientComponent =\n FieldLabelClientComponent<NumberFieldClientWithoutType>\n\nexport type NumberFieldDescriptionServerComponent = FieldDescriptionServerComponent<NumberField>\n\nexport type NumberFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<NumberFieldClientWithoutType>\n\nexport type NumberFieldErrorServerComponent = FieldErrorServerComponent<NumberField>\n\nexport type NumberFieldErrorClientComponent =\n FieldErrorClientComponent<NumberFieldClientWithoutType>\n"],"names":[],"mappings":"AAgCA,WACyD"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { PointFieldClient } from '../../fields/config/types.js';
2
+ import type { PointField, PointFieldClient } from '../../fields/config/types.js';
3
3
  import type { PointFieldValidation } from '../../fields/validations.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
5
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
4
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
5
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
6
+ type PointFieldClientWithoutType = MarkOptional<PointFieldClient, 'type'>;
6
7
  export type PointFieldProps = {
7
- readonly field: MarkOptional<PointFieldClient, 'type'>;
8
8
  readonly validate?: PointFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type PointFieldLabelComponent = LabelComponent<'point'>;
11
- export type PointFieldDescriptionComponent = DescriptionComponent<'point'>;
12
- export type PointFieldErrorComponent = ErrorComponent<'point'>;
9
+ } & Omit<FormFieldBase<PointFieldClientWithoutType>, 'validate'>;
10
+ export type PointFieldLabelServerComponent = FieldLabelServerComponent<PointField>;
11
+ export type PointFieldLabelClientComponent = FieldLabelClientComponent<PointFieldClientWithoutType>;
12
+ export type PointFieldDescriptionServerComponent = FieldDescriptionServerComponent<PointField>;
13
+ export type PointFieldDescriptionClientComponent = FieldDescriptionClientComponent<PointFieldClientWithoutType>;
14
+ export type PointFieldErrorServerComponent = FieldErrorServerComponent<PointField>;
15
+ export type PointFieldErrorClientComponent = FieldErrorClientComponent<PointFieldClientWithoutType>;
16
+ export {};
13
17
  //# sourceMappingURL=Point.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,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2BAA2B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type PointFieldProps = {\n readonly field: MarkOptional<PointFieldClient, 'type'>\n readonly validate?: PointFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type PointFieldLabelComponent = LabelComponent<'point'>\n\nexport type PointFieldDescriptionComponent = DescriptionComponent<'point'>\n\nexport type PointFieldErrorComponent = ErrorComponent<'point'>\n"],"names":[],"mappings":"AAgBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointField, PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype PointFieldClientWithoutType = MarkOptional<PointFieldClient, 'type'>\n\nexport type PointFieldProps = {\n readonly validate?: PointFieldValidation\n} & Omit<FormFieldBase<PointFieldClientWithoutType>, 'validate'>\n\nexport type PointFieldLabelServerComponent = FieldLabelServerComponent<PointField>\n\nexport type PointFieldLabelClientComponent = FieldLabelClientComponent<PointFieldClientWithoutType>\n\nexport type PointFieldDescriptionServerComponent = FieldDescriptionServerComponent<PointField>\n\nexport type PointFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<PointFieldClientWithoutType>\n\nexport type PointFieldErrorServerComponent = FieldErrorServerComponent<PointField>\n\nexport type PointFieldErrorClientComponent = FieldErrorClientComponent<PointFieldClientWithoutType>\n"],"names":[],"mappings":"AA8BA,WAAmG"}