payload 3.0.0-beta.102 → 3.0.0-beta.104

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 (88) hide show
  1. package/dist/admin/fields/Array.d.ts +5 -5
  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 -12
  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 +5 -5
  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 +5 -5
  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 +5 -5
  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 +5 -5
  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 +5 -5
  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 +5 -5
  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/JSON.d.ts +5 -5
  26. package/dist/admin/fields/JSON.d.ts.map +1 -1
  27. package/dist/admin/fields/JSON.js.map +1 -1
  28. package/dist/admin/fields/Number.d.ts +5 -5
  29. package/dist/admin/fields/Number.d.ts.map +1 -1
  30. package/dist/admin/fields/Number.js.map +1 -1
  31. package/dist/admin/fields/Point.d.ts +5 -5
  32. package/dist/admin/fields/Point.d.ts.map +1 -1
  33. package/dist/admin/fields/Point.js.map +1 -1
  34. package/dist/admin/fields/Radio.d.ts +5 -5
  35. package/dist/admin/fields/Radio.d.ts.map +1 -1
  36. package/dist/admin/fields/Radio.js.map +1 -1
  37. package/dist/admin/fields/Relationship.d.ts +5 -5
  38. package/dist/admin/fields/Relationship.d.ts.map +1 -1
  39. package/dist/admin/fields/Relationship.js.map +1 -1
  40. package/dist/admin/fields/RichText.d.ts +5 -5
  41. package/dist/admin/fields/RichText.d.ts.map +1 -1
  42. package/dist/admin/fields/RichText.js.map +1 -1
  43. package/dist/admin/fields/Row.d.ts +5 -5
  44. package/dist/admin/fields/Row.d.ts.map +1 -1
  45. package/dist/admin/fields/Row.js.map +1 -1
  46. package/dist/admin/fields/Select.d.ts +5 -5
  47. package/dist/admin/fields/Select.d.ts.map +1 -1
  48. package/dist/admin/fields/Select.js.map +1 -1
  49. package/dist/admin/fields/Tabs.d.ts +5 -5
  50. package/dist/admin/fields/Tabs.d.ts.map +1 -1
  51. package/dist/admin/fields/Tabs.js.map +1 -1
  52. package/dist/admin/fields/Text.d.ts +5 -5
  53. package/dist/admin/fields/Text.d.ts.map +1 -1
  54. package/dist/admin/fields/Text.js.map +1 -1
  55. package/dist/admin/fields/Textarea.d.ts +5 -5
  56. package/dist/admin/fields/Textarea.d.ts.map +1 -1
  57. package/dist/admin/fields/Textarea.js.map +1 -1
  58. package/dist/admin/fields/Upload.d.ts +5 -5
  59. package/dist/admin/fields/Upload.d.ts.map +1 -1
  60. package/dist/admin/fields/Upload.js.map +1 -1
  61. package/dist/admin/forms/Description.d.ts +4 -3
  62. package/dist/admin/forms/Description.d.ts.map +1 -1
  63. package/dist/admin/forms/Description.js.map +1 -1
  64. package/dist/admin/forms/Error.d.ts +4 -3
  65. package/dist/admin/forms/Error.d.ts.map +1 -1
  66. package/dist/admin/forms/Error.js.map +1 -1
  67. package/dist/admin/forms/Field.d.ts +8 -7
  68. package/dist/admin/forms/Field.d.ts.map +1 -1
  69. package/dist/admin/forms/Field.js.map +1 -1
  70. package/dist/admin/forms/Label.d.ts +4 -3
  71. package/dist/admin/forms/Label.d.ts.map +1 -1
  72. package/dist/admin/forms/Label.js.map +1 -1
  73. package/dist/admin/types.d.ts +2 -2
  74. package/dist/admin/types.d.ts.map +1 -1
  75. package/dist/admin/types.js.map +1 -1
  76. package/dist/collections/config/sanitize.js +1 -1
  77. package/dist/collections/config/sanitize.js.map +1 -1
  78. package/dist/fields/config/sanitize.spec.js.map +1 -1
  79. package/dist/fields/config/types.d.ts +22 -19
  80. package/dist/fields/config/types.d.ts.map +1 -1
  81. package/dist/fields/config/types.js.map +1 -1
  82. package/dist/fields/validations.d.ts +4 -4
  83. package/dist/fields/validations.d.ts.map +1 -1
  84. package/dist/fields/validations.js.map +1 -1
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.d.ts.map +1 -1
  87. package/dist/index.js.map +1 -1
  88. package/package.json +2 -2
@@ -9,14 +9,14 @@ type RelationshipFieldBaseClientProps = {
9
9
  readonly validate?: RelationshipFieldValidation;
10
10
  };
11
11
  export type RelationshipFieldClientProps = ClientFieldBase<RelationshipFieldClientWithoutType> & RelationshipFieldBaseClientProps;
12
- export type RelationshipFieldServerProps = ServerFieldBase<RelationshipField>;
13
- export type RelationshipFieldServerComponent = FieldServerComponent<RelationshipField>;
12
+ export type RelationshipFieldServerProps = ServerFieldBase<RelationshipField, RelationshipFieldClientWithoutType>;
13
+ export type RelationshipFieldServerComponent = FieldServerComponent<RelationshipField, RelationshipFieldClientWithoutType>;
14
14
  export type RelationshipFieldClientComponent = FieldClientComponent<RelationshipFieldClientWithoutType, RelationshipFieldBaseClientProps>;
15
- export type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<RelationshipField>;
15
+ export type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<RelationshipField, RelationshipFieldClientWithoutType>;
16
16
  export type RelationshipFieldLabelClientComponent = FieldLabelClientComponent<RelationshipFieldClientWithoutType>;
17
- export type RelationshipFieldDescriptionServerComponent = FieldDescriptionServerComponent<RelationshipField>;
17
+ export type RelationshipFieldDescriptionServerComponent = FieldDescriptionServerComponent<RelationshipField, RelationshipFieldClientWithoutType>;
18
18
  export type RelationshipFieldDescriptionClientComponent = FieldDescriptionClientComponent<RelationshipFieldClientWithoutType>;
19
- export type RelationshipFieldErrorServerComponent = FieldErrorServerComponent<RelationshipField>;
19
+ export type RelationshipFieldErrorServerComponent = FieldErrorServerComponent<RelationshipField, RelationshipFieldClientWithoutType>;
20
20
  export type RelationshipFieldErrorClientComponent = FieldErrorClientComponent<RelationshipFieldClientWithoutType>;
21
21
  export {};
22
22
  //# sourceMappingURL=Relationship.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Relationship.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Relationship.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,kCAAkC,GAAG,YAAY,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAA;AAEvF,KAAK,gCAAgC,GAAG;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,kCAAkC,CAAC,GAC5F,gCAAgC,CAAA;AAElC,MAAM,MAAM,4BAA4B,GAAG,eAA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GAAG;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,eAAe,CAAC,kCAAkC,CAAC,GAC5F,gCAAgC,CAAA;AAElC,MAAM,MAAM,4BAA4B,GAAG,eAAe,CACxD,iBAAiB,EACjB,kCAAkC,CACnC,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,CACjE,iBAAiB,EACjB,kCAAkC,CACnC,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,CACjE,kCAAkC,EAClC,gCAAgC,CACjC,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG,yBAAyB,CAC3E,iBAAiB,EACjB,kCAAkC,CACnC,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC/C,yBAAyB,CAAC,kCAAkC,CAAC,CAAA;AAE/D,MAAM,MAAM,2CAA2C,GAAG,+BAA+B,CACvF,iBAAiB,EACjB,kCAAkC,CACnC,CAAA;AAED,MAAM,MAAM,2CAA2C,GACrD,+BAA+B,CAAC,kCAAkC,CAAC,CAAA;AAErE,MAAM,MAAM,qCAAqC,GAAG,yBAAyB,CAC3E,iBAAiB,EACjB,kCAAkC,CACnC,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC/C,yBAAyB,CAAC,kCAAkC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Relationship.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RelationshipField, RelationshipFieldClient } from '../../fields/config/types.js'\nimport type { RelationshipFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RelationshipFieldClientWithoutType = MarkOptional<RelationshipFieldClient, 'type'>\n\ntype RelationshipFieldBaseClientProps = {\n readonly validate?: RelationshipFieldValidation\n}\n\nexport type RelationshipFieldClientProps = ClientFieldBase<RelationshipFieldClientWithoutType> &\n RelationshipFieldBaseClientProps\n\nexport type RelationshipFieldServerProps = ServerFieldBase<RelationshipField>\n\nexport type RelationshipFieldServerComponent = FieldServerComponent<RelationshipField>\n\nexport type RelationshipFieldClientComponent = FieldClientComponent<\n RelationshipFieldClientWithoutType,\n RelationshipFieldBaseClientProps\n>\n\nexport type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<RelationshipField>\n\nexport type RelationshipFieldLabelClientComponent =\n FieldLabelClientComponent<RelationshipFieldClientWithoutType>\n\nexport type RelationshipFieldDescriptionServerComponent =\n FieldDescriptionServerComponent<RelationshipField>\n\nexport type RelationshipFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RelationshipFieldClientWithoutType>\n\nexport type RelationshipFieldErrorServerComponent = FieldErrorServerComponent<RelationshipField>\n\nexport type RelationshipFieldErrorClientComponent =\n FieldErrorClientComponent<RelationshipFieldClientWithoutType>\n"],"names":[],"mappings":"AAiDA,WAC+D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Relationship.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RelationshipField, RelationshipFieldClient } from '../../fields/config/types.js'\nimport type { RelationshipFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RelationshipFieldClientWithoutType = MarkOptional<RelationshipFieldClient, 'type'>\n\ntype RelationshipFieldBaseClientProps = {\n readonly validate?: RelationshipFieldValidation\n}\n\nexport type RelationshipFieldClientProps = ClientFieldBase<RelationshipFieldClientWithoutType> &\n RelationshipFieldBaseClientProps\n\nexport type RelationshipFieldServerProps = ServerFieldBase<\n RelationshipField,\n RelationshipFieldClientWithoutType\n>\n\nexport type RelationshipFieldServerComponent = FieldServerComponent<\n RelationshipField,\n RelationshipFieldClientWithoutType\n>\n\nexport type RelationshipFieldClientComponent = FieldClientComponent<\n RelationshipFieldClientWithoutType,\n RelationshipFieldBaseClientProps\n>\n\nexport type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<\n RelationshipField,\n RelationshipFieldClientWithoutType\n>\n\nexport type RelationshipFieldLabelClientComponent =\n FieldLabelClientComponent<RelationshipFieldClientWithoutType>\n\nexport type RelationshipFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n RelationshipField,\n RelationshipFieldClientWithoutType\n>\n\nexport type RelationshipFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RelationshipFieldClientWithoutType>\n\nexport type RelationshipFieldErrorServerComponent = FieldErrorServerComponent<\n RelationshipField,\n RelationshipFieldClientWithoutType\n>\n\nexport type RelationshipFieldErrorClientComponent =\n FieldErrorClientComponent<RelationshipFieldClientWithoutType>\n"],"names":[],"mappings":"AA+DA,WAC+D"}
@@ -9,14 +9,14 @@ type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = a
9
9
  readonly validate?: RichTextFieldValidation;
10
10
  };
11
11
  export type RichTextFieldClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = ClientFieldBase<RichTextFieldClientWithoutType> & RichTextFieldBaseClientProps<TValue, TAdapterProps, TExtraProperties>;
12
- export type RichTextFieldServerProps = ServerFieldBase<RichTextField>;
13
- export type RichTextFieldServerComponent = FieldServerComponent<RichTextField>;
12
+ export type RichTextFieldServerProps = ServerFieldBase<RichTextField, RichTextFieldClientWithoutType>;
13
+ export type RichTextFieldServerComponent = FieldServerComponent<RichTextField, RichTextFieldClientWithoutType>;
14
14
  export type RichTextFieldClientComponent = FieldClientComponent<RichTextFieldClientWithoutType, RichTextFieldBaseClientProps>;
15
- export type RichTextFieldLabelServerComponent = FieldLabelServerComponent<RichTextField>;
15
+ export type RichTextFieldLabelServerComponent = FieldLabelServerComponent<RichTextField, RichTextFieldClientWithoutType>;
16
16
  export type RichTextFieldLabelClientComponent = FieldLabelClientComponent<RichTextFieldClientWithoutType>;
17
- export type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<RichTextField>;
17
+ export type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<RichTextField, RichTextFieldClientWithoutType>;
18
18
  export type RichTextFieldDescriptionClientComponent = FieldDescriptionClientComponent<RichTextFieldClientWithoutType>;
19
- export type RichTextFieldErrorServerComponent = FieldErrorServerComponent<RichTextField>;
19
+ export type RichTextFieldErrorServerComponent = FieldErrorServerComponent<RichTextField, RichTextFieldClientWithoutType>;
20
20
  export type RichTextFieldErrorClientComponent = FieldErrorClientComponent<RichTextFieldClientWithoutType>;
21
21
  export {};
22
22
  //# sourceMappingURL=RichText.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,8BAA8B,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M,MAAM,uCAAuC,GAAG,+BAA+B,CACnF,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,uCAAuC,GACjD,+BAA+B,CAAC,8BAA8B,CAAC,CAAA;AAEjE,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CACvE,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RichTextField, RichTextFieldClient } from '../../fields/config/types.js'\nimport type { RichTextFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RichTextFieldClientWithoutType = MarkOptional<RichTextFieldClient, 'type'>\n\ntype RichTextFieldBaseClientProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = {\n readonly validate?: RichTextFieldValidation\n}\n\nexport type RichTextFieldClientProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = ClientFieldBase<RichTextFieldClientWithoutType> &\n RichTextFieldBaseClientProps<TValue, TAdapterProps, TExtraProperties>\n\nexport type RichTextFieldServerProps = ServerFieldBase<RichTextField>\n\nexport type RichTextFieldServerComponent = FieldServerComponent<RichTextField>\n\nexport type RichTextFieldClientComponent = FieldClientComponent<\n RichTextFieldClientWithoutType,\n RichTextFieldBaseClientProps\n>\n\nexport type RichTextFieldLabelServerComponent = FieldLabelServerComponent<RichTextField>\n\nexport type RichTextFieldLabelClientComponent =\n FieldLabelClientComponent<RichTextFieldClientWithoutType>\n\nexport type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<RichTextField>\n\nexport type RichTextFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RichTextFieldClientWithoutType>\n\nexport type RichTextFieldErrorServerComponent = FieldErrorServerComponent<RichTextField>\n\nexport type RichTextFieldErrorClientComponent =\n FieldErrorClientComponent<RichTextFieldClientWithoutType>\n"],"names":[],"mappings":"AAwDA,WAC2D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RichTextField, RichTextFieldClient } from '../../fields/config/types.js'\nimport type { RichTextFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RichTextFieldClientWithoutType = MarkOptional<RichTextFieldClient, 'type'>\n\ntype RichTextFieldBaseClientProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = {\n readonly validate?: RichTextFieldValidation\n}\n\nexport type RichTextFieldClientProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = ClientFieldBase<RichTextFieldClientWithoutType> &\n RichTextFieldBaseClientProps<TValue, TAdapterProps, TExtraProperties>\n\nexport type RichTextFieldServerProps = ServerFieldBase<\n RichTextField,\n RichTextFieldClientWithoutType\n>\n\nexport type RichTextFieldServerComponent = FieldServerComponent<\n RichTextField,\n RichTextFieldClientWithoutType\n>\n\nexport type RichTextFieldClientComponent = FieldClientComponent<\n RichTextFieldClientWithoutType,\n RichTextFieldBaseClientProps\n>\n\nexport type RichTextFieldLabelServerComponent = FieldLabelServerComponent<\n RichTextField,\n RichTextFieldClientWithoutType\n>\n\nexport type RichTextFieldLabelClientComponent =\n FieldLabelClientComponent<RichTextFieldClientWithoutType>\n\nexport type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n RichTextField,\n RichTextFieldClientWithoutType\n>\n\nexport type RichTextFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RichTextFieldClientWithoutType>\n\nexport type RichTextFieldErrorServerComponent = FieldErrorServerComponent<\n RichTextField,\n RichTextFieldClientWithoutType\n>\n\nexport type RichTextFieldErrorClientComponent =\n FieldErrorClientComponent<RichTextFieldClientWithoutType>\n"],"names":[],"mappings":"AAuEA,WAC2D"}
@@ -8,14 +8,14 @@ type RowFieldBaseClientProps = {
8
8
  readonly indexPath: string;
9
9
  };
10
10
  export type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
11
- export type RowFieldServerProps = ServerFieldBase<RowField>;
12
- export type RowFieldServerComponent = FieldServerComponent<RowField>;
11
+ export type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>;
12
+ export type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>;
13
13
  export type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
14
- export type RowFieldLabelServerComponent = FieldLabelServerComponent<RowField>;
14
+ export type RowFieldLabelServerComponent = FieldLabelServerComponent<RowField, RowFieldClientWithoutType>;
15
15
  export type RowFieldLabelClientComponent = FieldLabelClientComponent<RowFieldClientWithoutType>;
16
- export type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<RowField>;
16
+ export type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<RowField, RowFieldClientWithoutType>;
17
17
  export type RowFieldDescriptionClientComponent = FieldDescriptionClientComponent<RowFieldClientWithoutType>;
18
- export type RowFieldErrorServerComponent = FieldErrorServerComponent<RowField>;
18
+ export type RowFieldErrorServerComponent = FieldErrorServerComponent<RowField, RowFieldClientWithoutType>;
19
19
  export type RowFieldErrorClientComponent = FieldErrorClientComponent<RowFieldClientWithoutType>;
20
20
  export {};
21
21
  //# sourceMappingURL=Row.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Row.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC5E,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,yBAAyB,GAAG,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;AAErE,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,yBAAyB,CAAC,GAC1E,uBAAuB,CAAA;AAEzB,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAA;AAE3D,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAEpE,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,CACxD,yBAAyB,EACzB,uBAAuB,CACxB,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;AAE/F,MAAM,MAAM,kCAAkC,GAAG,+BAA+B,CAAC,QAAQ,CAAC,CAAA;AAE1F,MAAM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A;AAED,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,yBAAyB,CAAC,CAAA;AAE/F,MAAM,MAAM,kCAAkC,GAAG,+BAA+B,CAC9E,QAAQ,EACR,yBAAyB,CAC1B,CAAA;AAED,MAAM,MAAM,kCAAkC,GAC5C,+BAA+B,CAAC,yBAAyB,CAAC,CAAA;AAE5D,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAClE,QAAQ,EACR,yBAAyB,CAC1B,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,yBAAyB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RowField, RowFieldClient } from '../../fields/config/types.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldErrorClientComponent,\n FieldErrorServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>\n\ntype RowFieldBaseClientProps = {\n readonly forceRender?: boolean\n readonly indexPath: string\n}\n\nexport type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> &\n RowFieldBaseClientProps\n\nexport type RowFieldServerProps = ServerFieldBase<RowField>\n\nexport type RowFieldServerComponent = FieldServerComponent<RowField>\n\nexport type RowFieldClientComponent = FieldClientComponent<\n RowFieldClientWithoutType,\n RowFieldBaseClientProps\n>\n\nexport type RowFieldLabelServerComponent = FieldLabelServerComponent<RowField>\n\nexport type RowFieldLabelClientComponent = FieldLabelClientComponent<RowFieldClientWithoutType>\n\nexport type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<RowField>\n\nexport type RowFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RowFieldClientWithoutType>\n\nexport type RowFieldErrorServerComponent = FieldErrorServerComponent<RowField>\n\nexport type RowFieldErrorClientComponent = FieldErrorClientComponent<RowFieldClientWithoutType>\n"],"names":[],"mappings":"AAgDA,WAA+F"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RowField, RowFieldClient } from '../../fields/config/types.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldErrorClientComponent,\n FieldErrorServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>\n\ntype RowFieldBaseClientProps = {\n readonly forceRender?: boolean\n readonly indexPath: string\n}\n\nexport type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> &\n RowFieldBaseClientProps\n\nexport type RowFieldServerProps = ServerFieldBase<RowField, RowFieldClientWithoutType>\n\nexport type RowFieldServerComponent = FieldServerComponent<RowField, RowFieldClientWithoutType>\n\nexport type RowFieldClientComponent = FieldClientComponent<\n RowFieldClientWithoutType,\n RowFieldBaseClientProps\n>\n\nexport type RowFieldLabelServerComponent = FieldLabelServerComponent<\n RowField,\n RowFieldClientWithoutType\n>\n\nexport type RowFieldLabelClientComponent = FieldLabelClientComponent<RowFieldClientWithoutType>\n\nexport type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n RowField,\n RowFieldClientWithoutType\n>\n\nexport type RowFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RowFieldClientWithoutType>\n\nexport type RowFieldErrorServerComponent = FieldErrorServerComponent<\n RowField,\n RowFieldClientWithoutType\n>\n\nexport type RowFieldErrorClientComponent = FieldErrorClientComponent<RowFieldClientWithoutType>\n"],"names":[],"mappings":"AAyDA,WAA+F"}
@@ -11,14 +11,14 @@ type SelectFieldBaseClientProps = {
11
11
  readonly value?: string;
12
12
  };
13
13
  export type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> & SelectFieldBaseClientProps;
14
- export type SelectFieldServerProps = ServerFieldBase<SelectField>;
15
- export type SelectFieldServerComponent = FieldServerComponent<SelectField>;
14
+ export type SelectFieldServerProps = ServerFieldBase<SelectField, SelectFieldClientWithoutType>;
15
+ export type SelectFieldServerComponent = FieldServerComponent<SelectField, SelectFieldClientWithoutType>;
16
16
  export type SelectFieldClientComponent = FieldClientComponent<SelectFieldClientWithoutType, SelectFieldBaseClientProps>;
17
- export type SelectFieldLabelServerComponent = FieldLabelServerComponent<SelectField>;
17
+ export type SelectFieldLabelServerComponent = FieldLabelServerComponent<SelectField, SelectFieldClientWithoutType>;
18
18
  export type SelectFieldLabelClientComponent = FieldLabelClientComponent<SelectFieldClientWithoutType>;
19
- export type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<SelectField>;
19
+ export type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<SelectField, SelectFieldClientWithoutType>;
20
20
  export type SelectFieldDescriptionClientComponent = FieldDescriptionClientComponent<SelectFieldClientWithoutType>;
21
- export type SelectFieldErrorServerComponent = FieldErrorServerComponent<SelectField>;
21
+ export type SelectFieldErrorServerComponent = FieldErrorServerComponent<SelectField, SelectFieldClientWithoutType>;
22
22
  export type SelectFieldErrorClientComponent = FieldErrorClientComponent<SelectFieldClientWithoutType>;
23
23
  export {};
24
24
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAA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B,GAAG,yBAAyB,CACrE,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA;AAEzD,MAAM,MAAM,qCAAqC,GAAG,+BAA+B,CACjF,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC/C,+BAA+B,CAAC,4BAA4B,CAAC,CAAA;AAE/D,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CACrE,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { SelectField, SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>\n\ntype SelectFieldBaseClientProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly validate?: SelectFieldValidation\n readonly value?: string\n}\n\nexport type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = ServerFieldBase<SelectField>\n\nexport type SelectFieldServerComponent = FieldServerComponent<SelectField>\n\nexport type SelectFieldClientComponent = FieldClientComponent<\n SelectFieldClientWithoutType,\n SelectFieldBaseClientProps\n>\n\nexport type SelectFieldLabelServerComponent = FieldLabelServerComponent<SelectField>\n\nexport type SelectFieldLabelClientComponent =\n FieldLabelClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<SelectField>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<SelectField>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent<SelectFieldClientWithoutType>\n"],"names":[],"mappings":"AAkDA,WACyD"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { SelectField, SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>\n\ntype SelectFieldBaseClientProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly validate?: SelectFieldValidation\n readonly value?: string\n}\n\nexport type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> &\n SelectFieldBaseClientProps\n\nexport type SelectFieldServerProps = ServerFieldBase<SelectField, SelectFieldClientWithoutType>\n\nexport type SelectFieldServerComponent = FieldServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldClientComponent = FieldClientComponent<\n SelectFieldClientWithoutType,\n SelectFieldBaseClientProps\n>\n\nexport type SelectFieldLabelServerComponent = FieldLabelServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldLabelClientComponent =\n FieldLabelClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<SelectFieldClientWithoutType>\n\nexport type SelectFieldErrorServerComponent = FieldErrorServerComponent<\n SelectField,\n SelectFieldClientWithoutType\n>\n\nexport type SelectFieldErrorClientComponent =\n FieldErrorClientComponent<SelectFieldClientWithoutType>\n"],"names":[],"mappings":"AA8DA,WACyD"}
@@ -10,14 +10,14 @@ export type ClientTab = ({
10
10
  } & Omit<UnnamedTab, 'fields'>);
11
11
  type TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>;
12
12
  export type TabsFieldClientProps = ClientFieldBase<TabsFieldClientWithoutType>;
13
- export type TabsFieldServerProps = ServerFieldBase<TabsField>;
14
- export type TabsFieldServerComponent = FieldServerComponent<TabsField>;
13
+ export type TabsFieldServerProps = ServerFieldBase<TabsField, TabsFieldClientWithoutType>;
14
+ export type TabsFieldServerComponent = FieldServerComponent<TabsField, TabsFieldClientWithoutType>;
15
15
  export type TabsFieldClientComponent = FieldClientComponent<TabsFieldClientWithoutType>;
16
- export type TabsFieldLabelServerComponent = FieldLabelServerComponent<TabsField>;
16
+ export type TabsFieldLabelServerComponent = FieldLabelServerComponent<TabsField, TabsFieldClientWithoutType>;
17
17
  export type TabsFieldLabelClientComponent = FieldLabelClientComponent<TabsFieldClientWithoutType>;
18
- export type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<TabsField>;
18
+ export type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<TabsField, TabsFieldClientWithoutType>;
19
19
  export type TabsFieldDescriptionClientComponent = FieldDescriptionClientComponent<TabsFieldClientWithoutType>;
20
- export type TabsFieldErrorServerComponent = FieldErrorServerComponent<TabsField>;
20
+ export type TabsFieldErrorServerComponent = FieldErrorServerComponent<TabsField, TabsFieldClientWithoutType>;
21
21
  export type TabsFieldErrorClientComponent = FieldErrorClientComponent<TabsFieldClientWithoutType>;
22
22
  export {};
23
23
  //# sourceMapping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0BAA0B,CAAC,CAAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAElG,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,0BAA0B,CAAC,CAAA;AAEvF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,+BAA+B,CAC/E,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC7C,+BAA+B,CAAC,0BAA0B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Tabs.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type {\n ClientField,\n NamedTab,\n TabsField,\n TabsFieldClient,\n UnnamedTab,\n} from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\nexport type ClientTab =\n | ({ fields: ClientField[] } & Omit<NamedTab, 'fields'>)\n | ({ fields: ClientField[] } & Omit<UnnamedTab, 'fields'>)\n\ntype TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>\n\nexport type TabsFieldClientProps = ClientFieldBase<TabsFieldClientWithoutType>\n\nexport type TabsFieldServerProps = ServerFieldBase<TabsField>\n\nexport type TabsFieldServerComponent = FieldServerComponent<TabsField>\n\nexport type TabsFieldClientComponent = FieldClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldLabelServerComponent = FieldLabelServerComponent<TabsField>\n\nexport type TabsFieldLabelClientComponent = FieldLabelClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<TabsField>\n\nexport type TabsFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldErrorServerComponent = FieldErrorServerComponent<TabsField>\n\nexport type TabsFieldErrorClientComponent = FieldErrorClientComponent<TabsFieldClientWithoutType>\n"],"names":[],"mappings":"AAgDA,WAAiG"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Tabs.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type {\n ClientField,\n NamedTab,\n TabsField,\n TabsFieldClient,\n UnnamedTab,\n} from '../../fields/config/types.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\nexport type ClientTab =\n | ({ fields: ClientField[] } & Omit<NamedTab, 'fields'>)\n | ({ fields: ClientField[] } & Omit<UnnamedTab, 'fields'>)\n\ntype TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>\n\nexport type TabsFieldClientProps = ClientFieldBase<TabsFieldClientWithoutType>\n\nexport type TabsFieldServerProps = ServerFieldBase<TabsField, TabsFieldClientWithoutType>\n\nexport type TabsFieldServerComponent = FieldServerComponent<TabsField, TabsFieldClientWithoutType>\n\nexport type TabsFieldClientComponent = FieldClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldLabelServerComponent = FieldLabelServerComponent<\n TabsField,\n TabsFieldClientWithoutType\n>\n\nexport type TabsFieldLabelClientComponent = FieldLabelClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n TabsField,\n TabsFieldClientWithoutType\n>\n\nexport type TabsFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TabsFieldClientWithoutType>\n\nexport type TabsFieldErrorServerComponent = FieldErrorServerComponent<\n TabsField,\n TabsFieldClientWithoutType\n>\n\nexport type TabsFieldErrorClientComponent = FieldErrorClientComponent<TabsFieldClientWithoutType>\n"],"names":[],"mappings":"AAyDA,WAAiG"}
@@ -12,14 +12,14 @@ type TextFieldBaseClientProps = {
12
12
  readonly validate?: TextFieldValidation;
13
13
  };
14
14
  export type TextFieldClientProps = ClientFieldBase<TextFieldClientWithoutType> & TextFieldBaseClientProps;
15
- export type TextFieldServerProps = ServerFieldBase<TextField>;
16
- export type TextFieldServerComponent = FieldServerComponent<TextField>;
15
+ export type TextFieldServerProps = ServerFieldBase<TextField, TextFieldClientWithoutType>;
16
+ export type TextFieldServerComponent = FieldServerComponent<TextField, TextFieldClientWithoutType>;
17
17
  export type TextFieldClientComponent = FieldClientComponent<TextFieldClientWithoutType, TextFieldBaseClientProps>;
18
- export type TextFieldLabelServerComponent = FieldLabelServerComponent<TextField>;
18
+ export type TextFieldLabelServerComponent = FieldLabelServerComponent<TextField, TextFieldClientWithoutType>;
19
19
  export type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>;
20
- export type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextField>;
20
+ export type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextField, TextFieldClientWithoutType>;
21
21
  export type TextFieldDescriptionClientComponent = FieldDescriptionClientComponent<TextFieldClientWithoutType>;
22
- export type TextFieldErrorServerComponent = FieldErrorServerComponent<TextField>;
22
+ export type TextFieldErrorServerComponent = FieldErrorServerComponent<TextField, TextFieldClientWithoutType>;
23
23
  export type TextFieldErrorClientComponent = FieldErrorClientComponent<TextFieldClientWithoutType>;
24
24
  export {};
25
25
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,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,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,0BAA0B,GAAG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;AAEvE,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAA;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,0BAA0B,CAAC,GAC5E,wBAAwB,CAAA;AAE1B,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,SAAS,CAAC,CAAA;AAE7D,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,CAAC,CAAA;AAEt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CAAC,CAAA;IACrD,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,0BAA0B,CAAC,GAC5E,wBAAwB,CAAA;AAE1B,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CAAC,SAAS,EAAE,0BAA0B,CAAC,CAAA;AAElG,MAAM,MAAM,wBAAwB,GAAG,oBAAoB,CACzD,0BAA0B,EAC1B,wBAAwB,CACzB,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA;AAEjG,MAAM,MAAM,mCAAmC,GAAG,+BAA+B,CAC/E,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAC7C,+BAA+B,CAAC,0BAA0B,CAAC,CAAA;AAE7D,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACnE,SAAS,EACT,0BAA0B,CAC3B,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CAAC,0BAA0B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextField, TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>\n\ntype TextFieldBaseClientProps = {\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n}\n\nexport type TextFieldClientProps = ClientFieldBase<TextFieldClientWithoutType> &\n TextFieldBaseClientProps\n\nexport type TextFieldServerProps = ServerFieldBase<TextField>\n\nexport type TextFieldServerComponent = FieldServerComponent<TextField>\n\nexport type TextFieldClientComponent = FieldClientComponent<\n TextFieldClientWithoutType,\n TextFieldBaseClientProps\n>\n\nexport type TextFieldLabelServerComponent = FieldLabelServerComponent<TextField>\n\nexport type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextField>\n\nexport type TextFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldErrorServerComponent = FieldErrorServerComponent<TextField>\n\nexport type TextFieldErrorClientComponent = FieldErrorClientComponent<TextFieldClientWithoutType>\n"],"names":[],"mappings":"AAkDA,WAAiG"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextField, TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>\n\ntype TextFieldBaseClientProps = {\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n}\n\nexport type TextFieldClientProps = ClientFieldBase<TextFieldClientWithoutType> &\n TextFieldBaseClientProps\n\nexport type TextFieldServerProps = ServerFieldBase<TextField, TextFieldClientWithoutType>\n\nexport type TextFieldServerComponent = FieldServerComponent<TextField, TextFieldClientWithoutType>\n\nexport type TextFieldClientComponent = FieldClientComponent<\n TextFieldClientWithoutType,\n TextFieldBaseClientProps\n>\n\nexport type TextFieldLabelServerComponent = FieldLabelServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TextFieldClientWithoutType>\n\nexport type TextFieldErrorServerComponent = FieldErrorServerComponent<\n TextField,\n TextFieldClientWithoutType\n>\n\nexport type TextFieldErrorClientComponent = FieldErrorClientComponent<TextFieldClientWithoutType>\n"],"names":[],"mappings":"AA2DA,WAAiG"}
@@ -12,14 +12,14 @@ type TextareaFieldBaseClientProps = {
12
12
  readonly validate?: TextareaFieldValidation;
13
13
  };
14
14
  export type TextareaFieldClientProps = ClientFieldBase<TextareaFieldClientWithoutType> & TextareaFieldBaseClientProps;
15
- export type TextareaFieldServerProps = ServerFieldBase<TextareaField>;
16
- export type TextareaFieldServerComponent = FieldServerComponent<TextareaField>;
15
+ export type TextareaFieldServerProps = ServerFieldBase<TextareaField, TextareaFieldClientWithoutType>;
16
+ export type TextareaFieldServerComponent = FieldServerComponent<TextareaField, TextareaFieldClientWithoutType>;
17
17
  export type TextareaFieldClientComponent = FieldClientComponent<TextareaFieldClientWithoutType, TextareaFieldBaseClientProps>;
18
- export type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField>;
18
+ export type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField, TextareaFieldClientWithoutType>;
19
19
  export type TextareaFieldLabelClientComponent = FieldLabelClientComponent<TextareaFieldClientWithoutType>;
20
- export type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField>;
20
+ export type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField, TextareaFieldClientWithoutType>;
21
21
  export type TextareaFieldDescriptionClientComponent = FieldDescriptionClientComponent<TextareaFieldClientWithoutType>;
22
- export type TextareaFieldErrorServerComponent = FieldErrorServerComponent<TextareaField>;
22
+ export type TextareaFieldErrorServerComponent = FieldErrorServerComponent<TextareaField, TextareaFieldClientWithoutType>;
23
23
  export type TextareaFieldErrorClientComponent = FieldErrorClientComponent<TextareaFieldClientWithoutType>;
24
24
  export {};
25
25
  //# sourceMappingURL=Textarea.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Textarea.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAA;AAC7F,OAAO,KAAK,EACV,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,aAAa,CAAA;AAEpB,KAAK,8BAA8B,GAAG,YAAY,CAAC,mBAAmB,EAAE,MA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C,GACjD,+BAA+B,CAAC,8BAA8B,CAAC,CAAA;AAEjE,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CACvE,aAAa,EACb,8BAA8B,CAC/B,CAAA;AAED,MAAM,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Textarea.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextareaField, TextareaFieldClient } from '../../fields/config/types.js'\nimport type { TextareaFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>\n\ntype TextareaFieldBaseClientProps = {\n readonly inputRef?: React.Ref<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextareaFieldValidation\n}\n\nexport type TextareaFieldClientProps = ClientFieldBase<TextareaFieldClientWithoutType> &\n TextareaFieldBaseClientProps\n\nexport type TextareaFieldServerProps = ServerFieldBase<TextareaField>\n\nexport type TextareaFieldServerComponent = FieldServerComponent<TextareaField>\n\nexport type TextareaFieldClientComponent = FieldClientComponent<\n TextareaFieldClientWithoutType,\n TextareaFieldBaseClientProps\n>\n\nexport type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField>\n\nexport type TextareaFieldLabelClientComponent =\n FieldLabelClientComponent<TextareaFieldClientWithoutType>\n\nexport type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField>\n\nexport type TextareaFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TextareaFieldClientWithoutType>\n\nexport type TextareaFieldErrorServerComponent = FieldErrorServerComponent<TextareaField>\n\nexport type TextareaFieldErrorClientComponent =\n FieldErrorClientComponent<TextareaFieldClientWithoutType>\n"],"names":[],"mappings":"AAmDA,WAC2D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Textarea.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextareaField, TextareaFieldClient } from '../../fields/config/types.js'\nimport type { TextareaFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>\n\ntype TextareaFieldBaseClientProps = {\n readonly inputRef?: React.Ref<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextareaFieldValidation\n}\n\nexport type TextareaFieldClientProps = ClientFieldBase<TextareaFieldClientWithoutType> &\n TextareaFieldBaseClientProps\n\nexport type TextareaFieldServerProps = ServerFieldBase<\n TextareaField,\n TextareaFieldClientWithoutType\n>\n\nexport type TextareaFieldServerComponent = FieldServerComponent<\n TextareaField,\n TextareaFieldClientWithoutType\n>\n\nexport type TextareaFieldClientComponent = FieldClientComponent<\n TextareaFieldClientWithoutType,\n TextareaFieldBaseClientProps\n>\n\nexport type TextareaFieldLabelServerComponent = FieldLabelServerComponent<\n TextareaField,\n TextareaFieldClientWithoutType\n>\n\nexport type TextareaFieldLabelClientComponent =\n FieldLabelClientComponent<TextareaFieldClientWithoutType>\n\nexport type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n TextareaField,\n TextareaFieldClientWithoutType\n>\n\nexport type TextareaFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<TextareaFieldClientWithoutType>\n\nexport type TextareaFieldErrorServerComponent = FieldErrorServerComponent<\n TextareaField,\n TextareaFieldClientWithoutType\n>\n\nexport type TextareaFieldErrorClientComponent =\n FieldErrorClientComponent<TextareaFieldClientWithoutType>\n"],"names":[],"mappings":"AAkEA,WAC2D"}
@@ -9,14 +9,14 @@ type UploadFieldBaseClientProps = {
9
9
  readonly validate?: UploadFieldValidation;
10
10
  };
11
11
  export type UploadFieldClientProps = ClientFieldBase<UploadFieldClientWithoutType> & UploadFieldBaseClientProps;
12
- export type UploadFieldServerProps = ServerFieldBase<UploadField>;
13
- export type UploadFieldServerComponent = FieldServerComponent<UploadField>;
12
+ export type UploadFieldServerProps = ServerFieldBase<UploadField, UploadFieldClientWithoutType>;
13
+ export type UploadFieldServerComponent = FieldServerComponent<UploadField, UploadFieldClientWithoutType>;
14
14
  export type UploadFieldClientComponent = FieldClientComponent<UploadFieldClientWithoutType, UploadFieldBaseClientProps>;
15
- export type UploadFieldLabelServerComponent = FieldLabelServerComponent<UploadField>;
15
+ export type UploadFieldLabelServerComponent = FieldLabelServerComponent<UploadField, UploadFieldClientWithoutType>;
16
16
  export type UploadFieldLabelClientComponent = FieldLabelClientComponent<UploadFieldClientWithoutType>;
17
- export type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<UploadField>;
17
+ export type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<UploadField, UploadFieldClientWithoutType>;
18
18
  export type UploadFieldDescriptionClientComponent = FieldDescriptionClientComponent<UploadFieldClientWithoutType>;
19
- export type UploadFieldErrorServerComponent = FieldErrorServerComponent<UploadField>;
19
+ export type UploadFieldErrorServerComponent = FieldErrorServerComponent<UploadField, UploadFieldClientWithoutType>;
20
20
  export type UploadFieldErrorClientComponent = FieldErrorClientComponent<UploadFieldClientWithoutType>;
21
21
  export {};
22
22
  //# sourceMappingURL=Upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3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,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA;AAEzD,MAAM,MAAM,qCAAqC,GAAG,+BAA+B,CACjF,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,qCAAqC,GAC/C,+BAA+B,CAAC,4BAA4B,CAAC,CAAA;AAE/D,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CACrE,WAAW,EACX,4BAA4B,CAC7B,CAAA;AAED,MAAM,MAAM,+BAA+B,GACzC,yBAAyB,CAAC,4BAA4B,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Upload.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { UploadField, UploadFieldClient } from '../../fields/config/types.js'\nimport type { UploadFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype UploadFieldClientWithoutType = MarkOptional<UploadFieldClient, 'type'>\n\ntype UploadFieldBaseClientProps = {\n readonly validate?: UploadFieldValidation\n}\n\nexport type UploadFieldClientProps = ClientFieldBase<UploadFieldClientWithoutType> &\n UploadFieldBaseClientProps\n\nexport type UploadFieldServerProps = ServerFieldBase<UploadField>\n\nexport type UploadFieldServerComponent = FieldServerComponent<UploadField>\n\nexport type UploadFieldClientComponent = FieldClientComponent<\n UploadFieldClientWithoutType,\n UploadFieldBaseClientProps\n>\n\nexport type UploadFieldLabelServerComponent = FieldLabelServerComponent<UploadField>\n\nexport type UploadFieldLabelClientComponent =\n FieldLabelClientComponent<UploadFieldClientWithoutType>\n\nexport type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<UploadField>\n\nexport type UploadFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<UploadFieldClientWithoutType>\n\nexport type UploadFieldErrorServerComponent = FieldErrorServerComponent<UploadField>\n\nexport type UploadFieldErrorClientComponent =\n FieldErrorClientComponent<UploadFieldClientWithoutType>\n"],"names":[],"mappings":"AAgDA,WACyD"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Upload.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { UploadField, UploadFieldClient } from '../../fields/config/types.js'\nimport type { UploadFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n ClientFieldBase,\n FieldClientComponent,\n FieldServerComponent,\n ServerFieldBase,\n} from '../forms/Field.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n} from '../types.js'\n\ntype UploadFieldClientWithoutType = MarkOptional<UploadFieldClient, 'type'>\n\ntype UploadFieldBaseClientProps = {\n readonly validate?: UploadFieldValidation\n}\n\nexport type UploadFieldClientProps = ClientFieldBase<UploadFieldClientWithoutType> &\n UploadFieldBaseClientProps\n\nexport type UploadFieldServerProps = ServerFieldBase<UploadField, UploadFieldClientWithoutType>\n\nexport type UploadFieldServerComponent = FieldServerComponent<\n UploadField,\n UploadFieldClientWithoutType\n>\n\nexport type UploadFieldClientComponent = FieldClientComponent<\n UploadFieldClientWithoutType,\n UploadFieldBaseClientProps\n>\n\nexport type UploadFieldLabelServerComponent = FieldLabelServerComponent<\n UploadField,\n UploadFieldClientWithoutType\n>\n\nexport type UploadFieldLabelClientComponent =\n FieldLabelClientComponent<UploadFieldClientWithoutType>\n\nexport type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<\n UploadField,\n UploadFieldClientWithoutType\n>\n\nexport type UploadFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<UploadFieldClientWithoutType>\n\nexport type UploadFieldErrorServerComponent = FieldErrorServerComponent<\n UploadField,\n UploadFieldClientWithoutType\n>\n\nexport type UploadFieldErrorClientComponent =\n FieldErrorClientComponent<UploadFieldClientWithoutType>\n"],"names":[],"mappings":"AA4DA,WACyD"}
@@ -4,7 +4,7 @@ import type { MappedComponent } from '../types.js';
4
4
  import type { ClientFieldWithOptionalType } from './Field.js';
5
5
  export type DescriptionFunction = LabelFunction;
6
6
  export type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
7
- export type FieldDescriptionServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldDescriptionServerProps<TFieldServer>>;
7
+ export type FieldDescriptionServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>;
8
8
  export type StaticDescription = Record<string, string> | string;
9
9
  export type Description = DescriptionFunction | StaticDescription;
10
10
  export type GenericDescriptionProps = {
@@ -13,8 +13,9 @@ export type GenericDescriptionProps = {
13
13
  readonly description?: StaticDescription;
14
14
  readonly marginPlacement?: 'bottom' | 'top';
15
15
  };
16
- export type FieldDescriptionServerProps<TFieldServer extends Field = Field> = {
17
- field: TFieldServer;
16
+ export type FieldDescriptionServerProps<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
17
+ clientField?: TFieldClient;
18
+ readonly field: TFieldServer;
18
19
  } & GenericDescriptionProps & Partial<ServerProps>;
19
20
  export type FieldDescriptionClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
20
21
  field: TFieldClient;
@@ -1 +1 @@
1
- {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MA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AE,YAAY,CAAA;CAC7B,GAAG,uBAAuB,GACzB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,2BAA2B,CACrC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E;IACF,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,uBAAuB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Description.ts"],"sourcesContent":["import type { LabelFunction, ServerProps } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type DescriptionFunction = LabelFunction\n\nexport type FieldDescriptionClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>\n\nexport type FieldDescriptionServerComponent<TFieldServer extends Field = Field> =\n React.ComponentType<FieldDescriptionServerProps<TFieldServer>>\n\nexport type StaticDescription = Record<string, string> | string\n\nexport type Description = DescriptionFunction | StaticDescription\n\nexport type GenericDescriptionProps = {\n readonly className?: string\n readonly Description?: MappedComponent\n readonly description?: StaticDescription\n readonly marginPlacement?: 'bottom' | 'top'\n}\n\nexport type FieldDescriptionServerProps<TFieldServer extends Field = Field> = {\n field: TFieldServer\n} & GenericDescriptionProps &\n Partial<ServerProps>\n\nexport type FieldDescriptionClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericDescriptionProps\n"],"names":[],"mappings":"AA8BA,WAI2B"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Description.ts"],"sourcesContent":["import type { LabelFunction, ServerProps } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type DescriptionFunction = LabelFunction\n\nexport type FieldDescriptionClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>\n\nexport type FieldDescriptionServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldDescriptionServerProps<TFieldServer, TFieldClient>>\n\nexport type StaticDescription = Record<string, string> | string\n\nexport type Description = DescriptionFunction | StaticDescription\n\nexport type GenericDescriptionProps = {\n readonly className?: string\n readonly Description?: MappedComponent\n readonly description?: StaticDescription\n readonly marginPlacement?: 'bottom' | 'top'\n}\n\nexport type FieldDescriptionServerProps<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n clientField?: TFieldClient\n readonly field: TFieldServer\n} & GenericDescriptionProps &\n Partial<ServerProps>\n\nexport type FieldDescriptionClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericDescriptionProps\n"],"names":[],"mappings":"AAoCA,WAI2B"}
@@ -12,9 +12,10 @@ export type GenericErrorProps = {
12
12
  export type FieldErrorClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
13
13
  field: TFieldClient;
14
14
  } & GenericErrorProps;
15
- export type FieldErrorServerProps<TFieldServer extends Field> = {
16
- field: TFieldServer;
15
+ export type FieldErrorServerProps<TFieldServer extends Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
16
+ clientField?: TFieldClient;
17
+ readonly field: TFieldServer;
17
18
  } & GenericErrorProps & Partial<ServerProps>;
18
19
  export type FieldErrorClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldErrorClientProps<TFieldClient>>;
19
- export type FieldErrorServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldErrorServerProps<TFieldServer>>;
20
+ export type FieldErrorServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldErrorServerProps<TFieldServer, TFieldClient>>;
20
21
  //# sourceMappingURL=Error.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAE7D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAA;IACjD,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,qBAAqB,CAC/B,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E;IACF,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,iBAAiB,CAAA;AAErB,MAAM,MAAM,qBAAqB,CAAC,YAAY,SAAS,KAAK,IAAI;IAC9D,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,iBAAiB,GACnB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,yBAAyB,CACnC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,yBAAyB,CAAC,YAAY,SAAS,KAAK,GAAG,KAAK,IAAI,KAAK,CAAC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K,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type GenericErrorProps = {\n readonly alignCaret?: 'center' | 'left' | 'right'\n readonly CustomError?: MappedComponent\n readonly message?: string\n readonly path?: string\n readonly showError?: boolean\n}\n\nexport type FieldErrorClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericErrorProps\n\nexport type FieldErrorServerProps<TFieldServer extends Field> = {\n field: TFieldServer\n} & GenericErrorProps &\n Partial<ServerProps>\n\nexport type FieldErrorClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldErrorClientProps<TFieldClient>>\n\nexport type FieldErrorServerComponent<TFieldServer extends Field = Field> = React.ComponentType<\n FieldErrorServerProps<TFieldServer>\n>\n"],"names":[],"mappings":"AA4BA,WAEC"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type { ServerProps } from '../../config/types.js'\nimport type { Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type GenericErrorProps = {\n readonly alignCaret?: 'center' | 'left' | 'right'\n readonly CustomError?: MappedComponent\n readonly message?: string\n readonly path?: string\n readonly showError?: boolean\n}\n\nexport type FieldErrorClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericErrorProps\n\nexport type FieldErrorServerProps<\n TFieldServer extends Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n clientField?: TFieldClient\n readonly field: TFieldServer\n} & GenericErrorProps &\n Partial<ServerProps>\n\nexport type FieldErrorClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldErrorClientProps<TFieldClient>>\n\nexport type FieldErrorServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldErrorServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAgCA,WAG0E"}
@@ -1,6 +1,6 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
2
  import type { User } from '../../auth/types.js';
3
- import type { Locale } from '../../config/types.js';
3
+ import type { Locale, ServerProps } from '../../config/types.js';
4
4
  import type { ClientField, Field, Validate } from '../../fields/config/types.js';
5
5
  import type { DocumentPreferences } from '../../preferences/types.js';
6
6
  import type { FieldDescriptionClientProps, FieldDescriptionServerProps } from './Description.js';
@@ -13,12 +13,13 @@ export type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = C
13
13
  readonly field: TFieldClient;
14
14
  readonly labelProps?: FieldLabelClientProps<TFieldClient>;
15
15
  } & FormFieldBase;
16
- export type ServerFieldBase<TFieldServer extends Field = Field> = {
17
- readonly descriptionProps?: FieldDescriptionServerProps<TFieldServer>;
18
- readonly errorProps?: FieldErrorServerProps<TFieldServer>;
16
+ export type ServerFieldBase<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
17
+ readonly clientField: TFieldClient;
18
+ readonly descriptionProps?: FieldDescriptionServerProps<TFieldServer, TFieldClient>;
19
+ readonly errorProps?: FieldErrorServerProps<TFieldServer, TFieldClient>;
19
20
  readonly field: TFieldServer;
20
- readonly labelProps?: FieldLabelServerProps<TFieldServer>;
21
- } & FormFieldBase;
21
+ readonly labelProps?: FieldLabelServerProps<TFieldServer, TFieldClient>;
22
+ } & FormFieldBase & Partial<ServerProps>;
22
23
  export type FormFieldBase = {
23
24
  readonly docPreferences?: DocumentPreferences;
24
25
  /**
@@ -34,5 +35,5 @@ export type FormFieldBase = {
34
35
  readonly validate?: Validate;
35
36
  };
36
37
  export type FieldClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType, AdditionalProps extends Record<string, unknown> = Record<string, unknown>> = React.ComponentType<AdditionalProps & ClientFieldBase<TFieldClient>>;
37
- export type FieldServerComponent<TFieldServer extends Field = Field, AdditionalProps extends Record<string, unknown> = Record<string, unknown>> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer>>;
38
+ export type FieldServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType, AdditionalProps extends Record<string, unknown> = Record<string, unknown>> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer, TFieldClient>>;
38
39
  //# sourceMappingURL=Field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAA;AAChG,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAC9E,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAE9E,M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AE,OAAO,CAAC,IACvE,KAAK,CAAC,aAAa,CAAC,eAAe,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,CAAA;AAExE,MAAM,MAAM,oBAAoB,CAC9B,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,EAC9E,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACvE,KAAK,CAAC,aAAa,CAAC,eAAe,GAAG,eAAe,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Field.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { User } from '../../auth/types.js'\nimport type { Locale } from '../../config/types.js'\nimport type { ClientField, Field, Validate } from '../../fields/config/types.js'\nimport type { DocumentPreferences } from '../../preferences/types.js'\nimport type { FieldDescriptionClientProps, FieldDescriptionServerProps } from './Description.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from './Error.js'\nimport type { FieldLabelClientProps, FieldLabelServerProps } from './Label.js'\n\nexport type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\n\nexport type ClientFieldBase<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly descriptionProps?: FieldDescriptionClientProps<TFieldClient>\n readonly errorProps?: FieldErrorClientProps<TFieldClient>\n readonly field: TFieldClient\n readonly labelProps?: FieldLabelClientProps<TFieldClient>\n} & FormFieldBase\n\nexport type ServerFieldBase<TFieldServer extends Field = Field> = {\n readonly descriptionProps?: FieldDescriptionServerProps<TFieldServer>\n readonly errorProps?: FieldErrorServerProps<TFieldServer>\n readonly field: TFieldServer\n readonly labelProps?: FieldLabelServerProps<TFieldServer>\n} & FormFieldBase\n\nexport type FormFieldBase = {\n readonly docPreferences?: DocumentPreferences\n /**\n * `forceRender` is added by RenderField automatically.\n */\n readonly forceRender?: boolean\n readonly locale?: Locale\n /**\n * `readOnly` is added by RenderField automatically. This should be used instead of `field.admin.readOnly`.\n */\n readonly readOnly?: boolean\n readonly user?: User\n readonly validate?: Validate\n}\n\nexport type FieldClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ClientFieldBase<TFieldClient>>\n\nexport type FieldServerComponent<\n TFieldServer extends Field = Field,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer>>\n"],"names":[],"mappings":"AAgDA,WAGwE"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Field.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { User } from '../../auth/types.js'\nimport type { Locale, ServerProps } from '../../config/types.js'\nimport type { ClientField, Field, Validate } from '../../fields/config/types.js'\nimport type { DocumentPreferences } from '../../preferences/types.js'\nimport type { FieldDescriptionClientProps, FieldDescriptionServerProps } from './Description.js'\nimport type { FieldErrorClientProps, FieldErrorServerProps } from './Error.js'\nimport type { FieldLabelClientProps, FieldLabelServerProps } from './Label.js'\n\nexport type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\n\nexport type ClientFieldBase<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly descriptionProps?: FieldDescriptionClientProps<TFieldClient>\n readonly errorProps?: FieldErrorClientProps<TFieldClient>\n readonly field: TFieldClient\n readonly labelProps?: FieldLabelClientProps<TFieldClient>\n} & FormFieldBase\n\nexport type ServerFieldBase<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n readonly clientField: TFieldClient\n readonly descriptionProps?: FieldDescriptionServerProps<TFieldServer, TFieldClient>\n readonly errorProps?: FieldErrorServerProps<TFieldServer, TFieldClient>\n readonly field: TFieldServer\n readonly labelProps?: FieldLabelServerProps<TFieldServer, TFieldClient>\n} & FormFieldBase &\n Partial<ServerProps>\n\nexport type FormFieldBase = {\n readonly docPreferences?: DocumentPreferences\n /**\n * `forceRender` is added by RenderField automatically.\n */\n readonly forceRender?: boolean\n readonly locale?: Locale\n /**\n * `readOnly` is added by RenderField automatically. This should be used instead of `field.admin.readOnly`.\n */\n readonly readOnly?: boolean\n readonly user?: User\n readonly validate?: Validate\n}\n\nexport type FieldClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ClientFieldBase<TFieldClient>>\n\nexport type FieldServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n AdditionalProps extends Record<string, unknown> = Record<string, unknown>,\n> = React.ComponentType<AdditionalProps & ServerFieldBase<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAqDA,WAIsF"}
@@ -13,10 +13,11 @@ export type GenericLabelProps = {
13
13
  export type FieldLabelClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
14
14
  field: TFieldClient;
15
15
  } & GenericLabelProps;
16
- export type FieldLabelServerProps<TFieldServer extends Field> = {
17
- field: TFieldServer;
16
+ export type FieldLabelServerProps<TFieldServer extends Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
17
+ clientField?: TFieldClient;
18
+ readonly field: TFieldServer;
18
19
  } & GenericLabelProps & Partial<ServerProps>;
19
20
  export type SanitizedLabelProps<TFieldClient extends ClientField> = Omit<FieldLabelClientProps<TFieldClient>, 'label' | 'required'>;
20
21
  export type FieldLabelClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldLabelClientProps<TFieldClient>>;
21
- export type FieldLabelServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldLabelServerProps<TFieldServer>>;
22
+ export type FieldLabelServerComponent<TFieldServer extends Field = Field, TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldLabelServerProps<TFieldServer, TFieldClient>>;
22
23
  //# sourceMappingURL=Label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Label.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,YAAY,CAAA;AAE7D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,eAAe,CAAA;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,qBAAqB,CAC/B,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E;IACF,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,iBAAiB,CAAA;AAErB,MAAM,MAAM,qBAAqB,CAAC,YAAY,SAAS,KAAK,IAAI;IAC9D,KAAK,EAAE,YAAY,CAAA;CACpB,GAAG,iBAAiB,GACnB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,mBAAmB,CAAC,YAAY,SAAS,WAAW,IAAI,IAAI,CACtE,qBAAqB,CAAC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IAC5E;IACF,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;CAC7B,GAAG,iBAAiB,GACnB,OAAO,CAAC,WAAW,CAAC,CAAA;AAEtB,MAAM,MAAM,mBAAmB,CAAC,YAAY,SAAS,WAAW,IAAI,IAAI,CACtE,qBAAqB,CAAC,YAAY,CAAC,EACnC,OAAO,GAAG,UAAU,CACrB,CAAA;AAED,MAAM,MAAM,yBAAyB,CACnC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,yBAAyB,CACnC,YAAY,SAAS,KAAK,GAAG,KAAK,EAClC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,qBAAqB,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Label.ts"],"sourcesContent":["import type { ServerProps, StaticLabel } from '../../config/types.js'\nimport type { ClientField, Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type GenericLabelProps = {\n readonly as?: 'label' | 'span'\n readonly htmlFor?: string\n readonly Label?: MappedComponent\n readonly label?: StaticLabel\n readonly required?: boolean\n readonly unstyled?: boolean\n}\n\nexport type FieldLabelClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericLabelProps\n\nexport type FieldLabelServerProps<TFieldServer extends Field> = {\n field: TFieldServer\n} & GenericLabelProps &\n Partial<ServerProps>\n\nexport type SanitizedLabelProps<TFieldClient extends ClientField> = Omit<\n FieldLabelClientProps<TFieldClient>,\n 'label' | 'required'\n>\n\nexport type FieldLabelClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldLabelClientProps<TFieldClient>>\n\nexport type FieldLabelServerComponent<TFieldServer extends Field = Field> = React.ComponentType<\n FieldLabelServerProps<TFieldServer>\n>\n"],"names":[],"mappings":"AAkCA,WAEC"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Label.ts"],"sourcesContent":["import type { ServerProps, StaticLabel } from '../../config/types.js'\nimport type { ClientField, Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\nimport type { ClientFieldWithOptionalType } from './Field.js'\n\nexport type GenericLabelProps = {\n readonly as?: 'label' | 'span'\n readonly htmlFor?: string\n readonly Label?: MappedComponent\n readonly label?: StaticLabel\n readonly required?: boolean\n readonly unstyled?: boolean\n}\n\nexport type FieldLabelClientProps<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n field: TFieldClient\n} & GenericLabelProps\n\nexport type FieldLabelServerProps<\n TFieldServer extends Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = {\n clientField?: TFieldClient\n readonly field: TFieldServer\n} & GenericLabelProps &\n Partial<ServerProps>\n\nexport type SanitizedLabelProps<TFieldClient extends ClientField> = Omit<\n FieldLabelClientProps<TFieldClient>,\n 'label' | 'required'\n>\n\nexport type FieldLabelClientComponent<\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldLabelClientProps<TFieldClient>>\n\nexport type FieldLabelServerComponent<\n TFieldServer extends Field = Field,\n TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType,\n> = React.ComponentType<FieldLabelServerProps<TFieldServer, TFieldClient>>\n"],"names":[],"mappings":"AAsCA,WAG0E"}