payload 3.0.0-beta.86 → 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 (97) 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/fields/config/types.d.ts +49 -48
  88. package/dist/fields/config/types.d.ts.map +1 -1
  89. package/dist/fields/config/types.js.map +1 -1
  90. package/dist/utilities/flattenTopLevelFields.d.ts +2 -2
  91. package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
  92. package/dist/utilities/flattenTopLevelFields.js.map +1 -1
  93. package/package.json +2 -2
  94. package/dist/admin/forms/FieldDescription.d.ts +0 -17
  95. package/dist/admin/forms/FieldDescription.d.ts.map +0 -1
  96. package/dist/admin/forms/FieldDescription.js +0 -3
  97. package/dist/admin/forms/FieldDescription.js.map +0 -1
@@ -1,16 +1,20 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { RadioFieldClient } from '../../fields/config/types.js';
2
+ import type { RadioField, RadioFieldClient } from '../../fields/config/types.js';
3
3
  import type { RadioFieldValidation } 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 RadioFieldClientWithoutType = MarkOptional<RadioFieldClient, 'type'>;
6
7
  export type RadioFieldProps = {
7
- readonly field: MarkOptional<RadioFieldClient, 'type'>;
8
8
  readonly onChange?: OnChange;
9
9
  readonly validate?: RadioFieldValidation;
10
10
  readonly value?: string;
11
- } & Omit<FormFieldBase, 'validate'>;
11
+ } & Omit<FormFieldBase<RadioFieldClientWithoutType>, 'validate'>;
12
12
  export type OnChange<T = string> = (value: T) => void;
13
- export type RadioFieldLabelComponent = LabelComponent<'radio'>;
14
- export type RadioFieldDescriptionComponent = DescriptionComponent<'radio'>;
15
- export type RadioFieldErrorComponent = ErrorComponent<'radio'>;
13
+ export type RadioFieldLabelServerComponent = FieldLabelServerComponent<RadioField>;
14
+ export type RadioFieldLabelClientComponent = FieldLabelClientComponent<RadioFieldClientWithoutType>;
15
+ export type RadioFieldDescriptionServerComponent = FieldDescriptionServerComponent<RadioField>;
16
+ export type RadioFieldDescriptionClientComponent = FieldDescriptionClientComponent<RadioFieldClientWithoutType>;
17
+ export type RadioFieldErrorServerComponent = FieldErrorServerComponent<RadioField>;
18
+ export type RadioFieldErrorClientComponent = FieldErrorClientComponent<RadioFieldClientWithoutType>;
19
+ export {};
16
20
  //# sourceMappingURL=Radio.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Radio.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;AA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AAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC,EAAE,UAAU,CAAC,CAAA;AAEhE,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;AAErD,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/Radio.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RadioFieldClient } from '../../fields/config/types.js'\nimport type { RadioFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RadioFieldProps = {\n readonly field: MarkOptional<RadioFieldClient, 'type'>\n readonly onChange?: OnChange\n readonly validate?: RadioFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type OnChange<T = string> = (value: T) => void\n\nexport type RadioFieldLabelComponent = LabelComponent<'radio'>\n\nexport type RadioFieldDescriptionComponent = DescriptionComponent<'radio'>\n\nexport type RadioFieldErrorComponent = ErrorComponent<'radio'>\n"],"names":[],"mappings":"AAoBA,WAA8D"}
1
+ {"version":3,"sources":["../../../src/admin/fields/Radio.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RadioField, RadioFieldClient } from '../../fields/config/types.js'\nimport type { RadioFieldValidation } 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 RadioFieldClientWithoutType = MarkOptional<RadioFieldClient, 'type'>\n\nexport type RadioFieldProps = {\n readonly onChange?: OnChange\n readonly validate?: RadioFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase<RadioFieldClientWithoutType>, 'validate'>\n\nexport type OnChange<T = string> = (value: T) => void\n\nexport type RadioFieldLabelServerComponent = FieldLabelServerComponent<RadioField>\n\nexport type RadioFieldLabelClientComponent = FieldLabelClientComponent<RadioFieldClientWithoutType>\n\nexport type RadioFieldDescriptionServerComponent = FieldDescriptionServerComponent<RadioField>\n\nexport type RadioFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<RadioFieldClientWithoutType>\n\nexport type RadioFieldErrorServerComponent = FieldErrorServerComponent<RadioField>\n\nexport type RadioFieldErrorClientComponent = FieldErrorClientComponent<RadioFieldClientWithoutType>\n"],"names":[],"mappings":"AAkCA,WAAmG"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { RelationshipFieldClient } from '../../fields/config/types.js';
2
+ import type { RelationshipField, RelationshipFieldClient } from '../../fields/config/types.js';
3
3
  import type { RelationshipFieldValidation } 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 RelationshipFieldClientWithoutType = MarkOptional<RelationshipFieldClient, 'type'>;
6
7
  export type RelationshipFieldProps = {
7
- readonly field: MarkOptional<RelationshipFieldClient, 'type'>;
8
8
  readonly validate?: RelationshipFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type RelationshipFieldLabelComponent = LabelComponent<'relationship'>;
11
- export type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>;
12
- export type RelationshipFieldErrorComponent = ErrorComponent<'relationship'>;
9
+ } & Omit<FormFieldBase<RelationshipFieldClientWithoutType>, 'validate'>;
10
+ export type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<RelationshipField>;
11
+ export type RelationshipFieldLabelClientComponent = FieldLabelClientComponent<RelationshipFieldClientWithoutType>;
12
+ export type RelationshipFieldDescriptionServerComponent = FieldDescriptionServerComponent<RelationshipField>;
13
+ export type RelationshipFieldDescriptionClientComponent = FieldDescriptionClientComponent<RelationshipFieldClientWithoutType>;
14
+ export type RelationshipFieldErrorServerComponent = FieldErrorServerComponent<RelationshipField>;
15
+ export type RelationshipFieldErrorClientComponent = FieldErrorClientComponent<RelationshipFieldClientWithoutType>;
16
+ export {};
13
17
  //# 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,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAC3E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAA;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,KAA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C,iBAAiB,CAAC,CAAA;AAEpD,MAAM,MAAM,2CAA2C,GACrD,+BAA+B,CAAC,kCAAkC,CAAC,CAAA;AAErE,MAAM,MAAM,qCAAqC,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,CAAA;AAEhG,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 { RelationshipFieldClient } from '../../fields/config/types.js'\nimport type { RelationshipFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RelationshipFieldProps = {\n readonly field: MarkOptional<RelationshipFieldClient, 'type'>\n readonly validate?: RelationshipFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RelationshipFieldLabelComponent = LabelComponent<'relationship'>\n\nexport type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>\n\nexport type RelationshipFieldErrorComponent = ErrorComponent<'relationship'>\n"],"names":[],"mappings":"AAgBA,WAA4E"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype RelationshipFieldClientWithoutType = MarkOptional<RelationshipFieldClient, 'type'>\n\nexport type RelationshipFieldProps = {\n readonly validate?: RelationshipFieldValidation\n} & Omit<FormFieldBase<RelationshipFieldClientWithoutType>, 'validate'>\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":"AAgCA,WAC+D"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { RichTextFieldClient } from '../../fields/config/types.js';
2
+ import type { RichTextField, RichTextFieldClient } from '../../fields/config/types.js';
3
3
  import type { RichTextFieldValidation } 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 RichTextFieldClientWithoutType = MarkOptional<RichTextFieldClient, 'type'>;
6
7
  export type RichTextFieldProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
7
- readonly field: MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
8
8
  readonly validate?: RichTextFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type RichTextFieldLabelComponent = LabelComponent<'richText'>;
11
- export type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>;
12
- export type RichTextFieldErrorComponent = ErrorComponent<'richText'>;
9
+ } & Omit<FormFieldBase<RichTextFieldClientWithoutType>, 'validate'>;
10
+ export type RichTextFieldLabelServerComponent = FieldLabelServerComponent<RichTextField>;
11
+ export type RichTextFieldLabelClientComponent = FieldLabelClientComponent<RichTextFieldClientWithoutType>;
12
+ export type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<RichTextField>;
13
+ export type RichTextFieldDescriptionClientComponent = FieldDescriptionClientComponent<RichTextFieldClientWithoutType>;
14
+ export type RichTextFieldErrorServerComponent = FieldErrorServerComponent<RichTextField>;
15
+ export type RichTextFieldErrorClientComponent = FieldErrorClientComponent<RichTextFieldClientWithoutType>;
16
+ export {};
13
17
  //# 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,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,CAC5B,MAAM,SAAS,MAAM,GAAG,GAAG,EAC3B,aAAa,GAAG,GAAG,EACnB,gBAAgB,GAAG,MAAM,IACvB;IACF,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAA;IAClG,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,iCAAiC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEhF,MAAM,MAAM,2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1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { RichTextFieldClient } from '../../fields/config/types.js'\nimport type { RichTextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type RichTextFieldProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = {\n readonly field: MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>\n readonly validate?: RichTextFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type RichTextFieldLabelComponent = LabelComponent<'richText'>\n\nexport type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>\n\nexport type RichTextFieldErrorComponent = ErrorComponent<'richText'>\n"],"names":[],"mappings":"AAoBA,WAAoE"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype RichTextFieldClientWithoutType = MarkOptional<RichTextFieldClient, 'type'>\n\nexport type RichTextFieldProps<\n TValue extends object = any,\n TAdapterProps = any,\n TExtraProperties = object,\n> = {\n readonly validate?: RichTextFieldValidation\n} & Omit<FormFieldBase<RichTextFieldClientWithoutType>, 'validate'>\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":"AAmCA,WAC2D"}
@@ -1,13 +1,16 @@
1
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload';
2
1
  import type { MarkOptional } from 'ts-essentials';
3
- import type { RowFieldClient } from '../../fields/config/types.js';
4
- import type { ErrorComponent } from '../forms/Error.js';
2
+ import type { RowField, RowFieldClient } from '../../fields/config/types.js';
3
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldErrorClientComponent, FieldErrorServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
4
+ type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
5
5
  export type RowFieldProps = {
6
- field: MarkOptional<RowFieldClient, 'type'>;
7
- forceRender?: boolean;
8
- indexPath: string;
9
- } & FormFieldBase;
10
- export type RowFieldLabelComponent = LabelComponent<'row'>;
11
- export type RowFieldDescriptionComponent = DescriptionComponent<'row'>;
12
- export type RowFieldErrorComponent = ErrorComponent<'row'>;
6
+ readonly forceRender?: boolean;
7
+ readonly indexPath: string;
8
+ } & FormFieldBase<RowFieldClientWithoutType>;
9
+ export type RowFieldLabelServerComponent = FieldLabelServerComponent<RowField>;
10
+ export type RowFieldLabelClientComponent = FieldLabelClientComponent<RowFieldClientWithoutType>;
11
+ export type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<RowField>;
12
+ export type RowFieldDescriptionClientComponent = FieldDescriptionClientComponent<RowFieldClientWithoutType>;
13
+ export type RowFieldErrorServerComponent = FieldErrorServerComponent<RowField>;
14
+ export type RowFieldErrorClientComponent = FieldErrorClientComponent<RowFieldClientWithoutType>;
15
+ export {};
13
16
  //# 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,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAClF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAEvD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA;AAE1D,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAA;AAEtE,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAA"}
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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,yBAAyB,GAAG,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,CAAA;AAErE,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;CAC3B,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAA;AAE5C,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,MAAM,kCAAkC,GAC5C,+BAA+B,CAAC,yBAAyB,CAAC,CAAA;AAE5D,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,yBAAyB,CAAC,yBAAyB,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { RowFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\n\nexport type RowFieldProps = {\n field: MarkOptional<RowFieldClient, 'type'>\n forceRender?: boolean\n indexPath: string\n} & FormFieldBase\n\nexport type RowFieldLabelComponent = LabelComponent<'row'>\n\nexport type RowFieldDescriptionComponent = DescriptionComponent<'row'>\n\nexport type RowFieldErrorComponent = ErrorComponent<'row'>\n"],"names":[],"mappings":"AAgBA,WAA0D"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldErrorClientComponent,\n FieldErrorServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>\n\nexport type RowFieldProps = {\n readonly forceRender?: boolean\n readonly indexPath: string\n} & FormFieldBase<RowFieldClientWithoutType>\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":"AA+BA,WAA+F"}
@@ -1,15 +1,19 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { SelectFieldClient } from '../../fields/config/types.js';
2
+ import type { SelectField, SelectFieldClient } from '../../fields/config/types.js';
3
3
  import type { SelectFieldValidation } 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 SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>;
6
7
  export type SelectFieldProps = {
7
- readonly field: MarkOptional<SelectFieldClient, 'type'>;
8
8
  readonly onChange?: (e: string | string[]) => void;
9
9
  readonly validate?: SelectFieldValidation;
10
10
  readonly value?: string;
11
- } & Omit<FormFieldBase, 'validate'>;
12
- export type SelectFieldLabelComponent = LabelComponent<'select'>;
13
- export type SelectFieldDescriptionComponent = DescriptionComponent<'select'>;
14
- export type SelectFieldErrorComponent = ErrorComponent<'select'>;
11
+ } & Omit<FormFieldBase<SelectFieldClientWithoutType>, 'validate'>;
12
+ export type SelectFieldLabelServerComponent = FieldLabelServerComponent<SelectField>;
13
+ export type SelectFieldLabelClientComponent = FieldLabelClientComponent<SelectFieldClientWithoutType>;
14
+ export type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<SelectField>;
15
+ export type SelectFieldDescriptionClientComponent = FieldDescriptionClientComponent<SelectFieldClientWithoutType>;
16
+ export type SelectFieldErrorServerComponent = FieldErrorServerComponent<SelectField>;
17
+ export type SelectFieldErrorClientComponent = FieldErrorClientComponent<SelectFieldClientWithoutType>;
18
+ export {};
15
19
  //# 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,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,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,KAAK,EAAE,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAA;IAClD,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IACzC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB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A+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 { SelectFieldClient } from '../../fields/config/types.js'\nimport type { SelectFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type SelectFieldProps = {\n readonly field: MarkOptional<SelectFieldClient, 'type'>\n readonly onChange?: (e: string | string[]) => void\n readonly validate?: SelectFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase, 'validate'>\n\nexport type SelectFieldLabelComponent = LabelComponent<'select'>\n\nexport type SelectFieldDescriptionComponent = DescriptionComponent<'select'>\n\nexport type SelectFieldErrorComponent = ErrorComponent<'select'>\n"],"names":[],"mappings":"AAkBA,WAAgE"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>\n\nexport type SelectFieldProps = {\n readonly onChange?: (e: string | string[]) => void\n readonly validate?: SelectFieldValidation\n readonly value?: string\n} & Omit<FormFieldBase<SelectFieldClientWithoutType>, 'validate'>\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":"AAiCA,WACyD"}
@@ -1,16 +1,18 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { ClientField, NamedTab, TabsFieldClient, UnnamedTab } from '../../fields/config/types.js';
3
- import type { ErrorComponent } from '../forms/Error.js';
4
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
2
+ import type { ClientField, NamedTab, TabsField, TabsFieldClient, UnnamedTab } 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
5
  export type ClientTab = ({
6
6
  fields: ClientField[];
7
7
  } & Omit<NamedTab, 'fields'>) | ({
8
8
  fields: ClientField[];
9
9
  } & Omit<UnnamedTab, 'fields'>);
10
- export type TabsFieldProps = {
11
- readonly field: MarkOptional<TabsFieldClient, 'type'>;
12
- } & FormFieldBase;
13
- export type TabsFieldLabelComponent = LabelComponent<'tabs'>;
14
- export type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>;
15
- export type TabsFieldErrorComponent = ErrorComponent<'tabs'>;
10
+ export type TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>;
11
+ export type TabsFieldProps = FormFieldBase<TabsFieldClientWithoutType>;
12
+ export type TabsFieldLabelServerComponent = FieldLabelServerComponent<TabsField>;
13
+ export type TabsFieldLabelClientComponent = FieldLabelClientComponent<TabsFieldClientWithoutType>;
14
+ export type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<TabsField>;
15
+ export type TabsFieldDescriptionClientComponent = FieldDescriptionClientComponent<TabsFieldClientWithoutType>;
16
+ export type TabsFieldErrorServerComponent = FieldErrorServerComponent<TabsField>;
17
+ export type TabsFieldErrorClientComponent = FieldErrorClientComponent<TabsFieldClientWithoutType>;
16
18
  //# sourceMappingURL=Tabs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAA;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,SAAS,GACjB,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,GACtD,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;CACtD,GAAG,aAAa,CAAA;AAEjB,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":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,SAAS,EACT,eAAe,EACf,UAAU,EACX,MAAM,8BAA8B,CAAA;AACrC,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,MAAM,MAAM,SAAS,GACjB,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,GACtD,CAAC;IAAE,MAAM,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAA;AAE5D,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;AAE9E,MAAM,MAAM,cAAc,GAAG,aAAa,CAAC,0BAA0B,CAAC,CAAA;AAEtE,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/Tabs.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type {\n ClientField,\n NamedTab,\n TabsFieldClient,\n UnnamedTab,\n} from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type ClientTab =\n | ({ fields: ClientField[] } & Omit<NamedTab, 'fields'>)\n | ({ fields: ClientField[] } & Omit<UnnamedTab, 'fields'>)\n\nexport type TabsFieldProps = {\n readonly field: MarkOptional<TabsFieldClient, 'type'>\n} & FormFieldBase\n\nexport type TabsFieldLabelComponent = LabelComponent<'tabs'>\n\nexport type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>\n\nexport type TabsFieldErrorComponent = ErrorComponent<'tabs'>\n"],"names":[],"mappings":"AAuBA,WAA4D"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\nexport type ClientTab =\n | ({ fields: ClientField[] } & Omit<NamedTab, 'fields'>)\n | ({ fields: ClientField[] } & Omit<UnnamedTab, 'fields'>)\n\nexport type TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>\n\nexport type TabsFieldProps = FormFieldBase<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":"AAqCA,WAAiG"}
@@ -1,16 +1,20 @@
1
1
  import type React from 'react';
2
2
  import type { MarkOptional } from 'ts-essentials';
3
- import type { TextFieldClient } from '../../fields/config/types.js';
3
+ import type { TextField, TextFieldClient } from '../../fields/config/types.js';
4
4
  import type { TextFieldValidation } from '../../fields/validations.js';
5
- import type { ErrorComponent } from '../forms/Error.js';
6
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
7
+ type TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>;
7
8
  export type TextFieldProps = {
8
- readonly field: MarkOptional<TextFieldClient, 'type'>;
9
9
  readonly inputRef?: React.RefObject<HTMLInputElement>;
10
10
  readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
11
11
  readonly validate?: TextFieldValidation;
12
- } & Omit<FormFieldBase, 'validate'>;
13
- export type TextFieldLabelComponent = LabelComponent<'text'>;
14
- export type TextFieldDescriptionComponent = DescriptionComponent<'text'>;
15
- export type TextFieldErrorComponent = ErrorComponent<'text'>;
12
+ } & Omit<FormFieldBase<TextFieldClientWithoutType>, 'validate'>;
13
+ export type TextFieldLabelServerComponent = FieldLabelServerComponent<TextField>;
14
+ export type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>;
15
+ export type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextField>;
16
+ export type TextFieldDescriptionClientComponent = FieldDescriptionClientComponent<TextFieldClientWithoutType>;
17
+ export type TextFieldErrorServerComponent = FieldErrorServerComponent<TextField>;
18
+ export type TextFieldErrorClientComponent = FieldErrorClientComponent<TextFieldClientWithoutType>;
19
+ export {};
16
20
  //# sourceMappingURL=Text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/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,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,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,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/Text.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextFieldClient } from '../../fields/config/types.js'\nimport type { TextFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextFieldProps = {\n readonly field: MarkOptional<TextFieldClient, 'type'>\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextFieldLabelComponent = LabelComponent<'text'>\n\nexport type TextFieldDescriptionComponent = DescriptionComponent<'text'>\n\nexport type TextFieldErrorComponent = ErrorComponent<'text'>\n"],"names":[],"mappings":"AAmBA,WAA4D"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>\n\nexport type TextFieldProps = {\n readonly inputRef?: React.RefObject<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextFieldValidation\n} & Omit<FormFieldBase<TextFieldClientWithoutType>, 'validate'>\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":"AAiCA,WAAiG"}
@@ -1,16 +1,20 @@
1
1
  import type React from 'react';
2
2
  import type { MarkOptional } from 'ts-essentials';
3
- import type { TextareaFieldClient } from '../../fields/config/types.js';
3
+ import type { TextareaField, TextareaFieldClient } from '../../fields/config/types.js';
4
4
  import type { TextareaFieldValidation } from '../../fields/validations.js';
5
- import type { ErrorComponent } from '../forms/Error.js';
6
- import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
5
+ import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
6
+ import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent, FormFieldBase } from '../types.js';
7
+ type TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>;
7
8
  export type TextareaFieldProps = {
8
- readonly field: MarkOptional<TextareaFieldClient, 'type'>;
9
9
  readonly inputRef?: React.Ref<HTMLInputElement>;
10
10
  readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
11
11
  readonly validate?: TextareaFieldValidation;
12
- } & Omit<FormFieldBase, 'validate'>;
13
- export type TextareaFieldLabelComponent = LabelComponent<'textarea'>;
14
- export type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>;
15
- export type TextareaFieldErrorComponent = ErrorComponent<'textarea'>;
12
+ } & Omit<FormFieldBase<TextareaFieldClientWithoutType>, 'validate'>;
13
+ export type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField>;
14
+ export type TextareaFieldLabelClientComponent = FieldLabelClientComponent<TextareaFieldClientWithoutType>;
15
+ export type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField>;
16
+ export type TextareaFieldDescriptionClientComponent = FieldDescriptionClientComponent<TextareaFieldClientWithoutType>;
17
+ export type TextareaFieldErrorServerComponent = FieldErrorServerComponent<TextareaField>;
18
+ export type TextareaFieldErrorClientComponent = FieldErrorClientComponent<TextareaFieldClientWithoutType>;
19
+ export {};
16
20
  //# 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,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,KAAK,EAAE,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;IACzD,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,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,iCAAiC,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAEhF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACd,MAAM,aAAa,CAAA;AAEpB,KAAK,8BAA8B,GAAG,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;AAE/E,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAA;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,CAAA;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CAC5C,GAAG,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC,EAAE,UAAU,CAAC,CAAA;AAEnE,MAAM,MAAM,iCAAiC,GAAG,yBAAyB,CAAC,aAAa,CAAC,CAAA;AAExF,MAAM,MAAM,iCAAiC,GAC3C,yBAAyB,CAAC,8BAA8B,CAAC,CAAA;AAE3D,MAAM,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/Textarea.ts"],"sourcesContent":["import type React from 'react'\nimport type { MarkOptional } from 'ts-essentials'\n\nimport type { TextareaFieldClient } from '../../fields/config/types.js'\nimport type { TextareaFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type TextareaFieldProps = {\n readonly field: MarkOptional<TextareaFieldClient, 'type'>\n readonly inputRef?: React.Ref<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextareaFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type TextareaFieldLabelComponent = LabelComponent<'textarea'>\n\nexport type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>\n\nexport type TextareaFieldErrorComponent = ErrorComponent<'textarea'>\n"],"names":[],"mappings":"AAmBA,WAAoE"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>\n\nexport type TextareaFieldProps = {\n readonly inputRef?: React.Ref<HTMLInputElement>\n readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>\n readonly validate?: TextareaFieldValidation\n} & Omit<FormFieldBase<TextareaFieldClientWithoutType>, 'validate'>\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":"AAkCA,WAC2D"}
@@ -1,13 +1,17 @@
1
1
  import type { MarkOptional } from 'ts-essentials';
2
- import type { UploadFieldClient } from '../../fields/config/types.js';
2
+ import type { UploadField, UploadFieldClient } from '../../fields/config/types.js';
3
3
  import type { UploadFieldValidation } 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 UploadFieldClientWithoutType = MarkOptional<UploadFieldClient, 'type'>;
6
7
  export type UploadFieldProps = {
7
- readonly field: MarkOptional<UploadFieldClient, 'type'>;
8
8
  readonly validate?: UploadFieldValidation;
9
- } & Omit<FormFieldBase, 'validate'>;
10
- export type UploadFieldLabelComponent = LabelComponent<'upload'>;
11
- export type UploadFieldDescriptionComponent = DescriptionComponent<'upload'>;
12
- export type UploadFieldErrorComponent = ErrorComponent<'upload'>;
9
+ } & Omit<FormFieldBase<UploadFieldClientWithoutType>, 'validate'>;
10
+ export type UploadFieldLabelServerComponent = FieldLabelServerComponent<UploadField>;
11
+ export type UploadFieldLabelClientComponent = FieldLabelClientComponent<UploadFieldClientWithoutType>;
12
+ export type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<UploadField>;
13
+ export type UploadFieldDescriptionClientComponent = FieldDescriptionClientComponent<UploadFieldClientWithoutType>;
14
+ export type UploadFieldErrorServerComponent = FieldErrorServerComponent<UploadField>;
15
+ export type UploadFieldErrorClientComponent = FieldErrorClientComponent<UploadFieldClientWithoutType>;
16
+ export {};
13
17
  //# sourceMappingURL=Upload.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Upload.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Upload.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AACrE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,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,KAAK,EAAE,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,qBAAqB,CAAA;CAC1C,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,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":"Upload.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Upload.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,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,4BAA4B,GAAG,YAAY,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAA;AAE3E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,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/Upload.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { UploadFieldClient } from '../../fields/config/types.js'\nimport type { UploadFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type UploadFieldProps = {\n readonly field: MarkOptional<UploadFieldClient, 'type'>\n readonly validate?: UploadFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type UploadFieldLabelComponent = LabelComponent<'upload'>\n\nexport type UploadFieldDescriptionComponent = DescriptionComponent<'upload'>\n\nexport type UploadFieldErrorComponent = ErrorComponent<'upload'>\n"],"names":[],"mappings":"AAgBA,WAAgE"}
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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n FormFieldBase,\n} from '../types.js'\n\ntype UploadFieldClientWithoutType = MarkOptional<UploadFieldClient, 'type'>\n\nexport type UploadFieldProps = {\n readonly validate?: UploadFieldValidation\n} & Omit<FormFieldBase<UploadFieldClientWithoutType>, 'validate'>\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":"AA+BA,WACyD"}
@@ -0,0 +1,24 @@
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { LabelFunction, ServerProps } from '../../config/types.js';
3
+ import type { ClientField, Field } from '../../fields/config/types.js';
4
+ import type { MappedComponent } from '../types.js';
5
+ export type DescriptionFunction = LabelFunction;
6
+ type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
7
+ export type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
8
+ export type FieldDescriptionServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldDescriptionServerProps<TFieldServer>>;
9
+ export type StaticDescription = Record<string, string> | string;
10
+ export type Description = DescriptionFunction | StaticDescription;
11
+ export type GenericDescriptionProps = {
12
+ readonly Description?: MappedComponent;
13
+ readonly className?: string;
14
+ readonly description?: StaticDescription;
15
+ readonly marginPlacement?: 'bottom' | 'top';
16
+ };
17
+ export type FieldDescriptionServerProps<TFieldServer extends Field = Field> = {
18
+ field: TFieldServer;
19
+ } & GenericDescriptionProps & Partial<ServerProps>;
20
+ export type FieldDescriptionClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
21
+ field: TFieldClient;
22
+ } & GenericDescriptionProps;
23
+ export {};
24
+ //# sourceMappingURL=Description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAA;AAE/C,KAAK,2BAA2B,GAAG,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;AAEpE,MAAM,MAAM,+BAA+B,CACzC,YAAY,SAAS,2BAA2B,GAAG,2BAA2B,IAC5E,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAA;AAElE,MAAM,MAAM,+BAA+B,CAAC,YAAY,SAAS,KAAK,GAAG,KAAK,IAC5E,KAAK,CAAC,aAAa,CAAC,2BAA2B,CAAC,YAAY,CAAC,CAAC,CAAA;AAEhE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAA;AAE/D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG,iBAAiB,CAAA;AAEjE,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IACxC,QAAQ,CAAC,eAAe,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAA;CAC5C,CAAA;AAED,MAAM,MAAM,2BAA2B,CAAC,YAAY,SAAS,KAAK,GAAG,KAAK,IAAI;IAC5E,KAAK,EAAE,YAAY,CAAA;CACpB,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"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=Description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/admin/forms/Description.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { LabelFunction, ServerProps } from '../../config/types.js'\nimport type { ClientField, Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type DescriptionFunction = LabelFunction\n\ntype ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\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 Description?: MappedComponent\n readonly className?: string\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":"AAiCA,WAI2B"}
@@ -1,5 +1,6 @@
1
- import type { CustomComponent, ServerProps } from '../../config/types.js';
2
- import type { FieldTypes } from '../../fields/config/types.js';
1
+ import type { MarkOptional } from 'ts-essentials';
2
+ import type { ServerProps } from '../../config/types.js';
3
+ import type { ClientField, Field } from '../../fields/config/types.js';
3
4
  import type { MappedComponent } from '../types.js';
4
5
  export type GenericErrorProps = {
5
6
  readonly CustomError?: MappedComponent;
@@ -8,8 +9,14 @@ export type GenericErrorProps = {
8
9
  readonly path?: string;
9
10
  readonly showError?: boolean;
10
11
  };
11
- export type ErrorProps<T extends 'hidden' | FieldTypes = any> = {
12
- type: T;
12
+ type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
13
+ export type FieldErrorClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
14
+ field: TFieldClient;
15
+ } & GenericErrorProps;
16
+ export type FieldErrorServerProps<TFieldServer extends Field> = {
17
+ field: TFieldServer;
13
18
  } & GenericErrorProps & Partial<ServerProps>;
14
- export type ErrorComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<ErrorProps<T>>;
19
+ export type FieldErrorClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldErrorClientProps<TFieldClient>>;
20
+ export type FieldErrorServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldErrorServerProps<TFieldServer>>;
21
+ export {};
15
22
  //# 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,eAAe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AA;IACjD,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,KAAK,2BAA2B,GAAG,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,CAAA;AAEpE,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,aAAa,CAC7F,qBAAqB,CAAC,YAAY,CAAC,CACpC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type { CustomComponent, ServerProps } from '../../config/types.js'\nimport type { FieldTypes } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type GenericErrorProps = {\n readonly CustomError?: MappedComponent\n readonly alignCaret?: 'center' | 'left' | 'right'\n readonly message?: string\n readonly path?: string\n readonly showError?: boolean\n}\n\nexport type ErrorProps<T extends 'hidden' | FieldTypes = any> = {\n type: T\n} & GenericErrorProps &\n Partial<ServerProps>\n\nexport type ErrorComponent<T extends 'hidden' | FieldTypes = any> = CustomComponent<ErrorProps<T>>\n"],"names":[],"mappings":"AAiBA,WAAkG"}
1
+ {"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { ServerProps } from '../../config/types.js'\nimport type { ClientField, Field } from '../../fields/config/types.js'\nimport type { MappedComponent } from '../types.js'\n\nexport type GenericErrorProps = {\n readonly CustomError?: MappedComponent\n readonly alignCaret?: 'center' | 'left' | 'right'\n readonly message?: string\n readonly path?: string\n readonly showError?: boolean\n}\n\ntype ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>\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":"AA+BA,WAEC"}