payload 3.0.0-beta.101 → 3.0.0-beta.102
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.
- package/dist/admin/RichText.d.ts +2 -2
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/fields/Array.d.ts +8 -3
- package/dist/admin/fields/Array.d.ts.map +1 -1
- package/dist/admin/fields/Array.js.map +1 -1
- package/dist/admin/fields/Blocks.d.ts +8 -3
- package/dist/admin/fields/Blocks.d.ts.map +1 -1
- package/dist/admin/fields/Blocks.js.map +1 -1
- package/dist/admin/fields/Checkbox.d.ts +8 -3
- package/dist/admin/fields/Checkbox.d.ts.map +1 -1
- package/dist/admin/fields/Checkbox.js.map +1 -1
- package/dist/admin/fields/Code.d.ts +9 -4
- package/dist/admin/fields/Code.d.ts.map +1 -1
- package/dist/admin/fields/Code.js.map +1 -1
- package/dist/admin/fields/Collapsible.d.ts +6 -2
- package/dist/admin/fields/Collapsible.d.ts.map +1 -1
- package/dist/admin/fields/Collapsible.js.map +1 -1
- package/dist/admin/fields/Date.d.ts +8 -3
- package/dist/admin/fields/Date.d.ts.map +1 -1
- package/dist/admin/fields/Date.js.map +1 -1
- package/dist/admin/fields/Email.d.ts +8 -3
- package/dist/admin/fields/Email.d.ts.map +1 -1
- package/dist/admin/fields/Email.js.map +1 -1
- package/dist/admin/fields/Group.d.ts +6 -2
- package/dist/admin/fields/Group.d.ts.map +1 -1
- package/dist/admin/fields/Group.js.map +1 -1
- package/dist/admin/fields/JSON.d.ts +8 -3
- package/dist/admin/fields/JSON.d.ts.map +1 -1
- package/dist/admin/fields/JSON.js.map +1 -1
- package/dist/admin/fields/Number.d.ts +8 -3
- package/dist/admin/fields/Number.d.ts.map +1 -1
- package/dist/admin/fields/Number.js.map +1 -1
- package/dist/admin/fields/Point.d.ts +8 -3
- package/dist/admin/fields/Point.d.ts.map +1 -1
- package/dist/admin/fields/Point.js.map +1 -1
- package/dist/admin/fields/Radio.d.ts +8 -3
- package/dist/admin/fields/Radio.d.ts.map +1 -1
- package/dist/admin/fields/Radio.js.map +1 -1
- package/dist/admin/fields/Relationship.d.ts +8 -3
- package/dist/admin/fields/Relationship.d.ts.map +1 -1
- package/dist/admin/fields/Relationship.js.map +1 -1
- package/dist/admin/fields/RichText.d.ts +8 -3
- package/dist/admin/fields/RichText.d.ts.map +1 -1
- package/dist/admin/fields/RichText.js.map +1 -1
- package/dist/admin/fields/Row.d.ts +8 -3
- package/dist/admin/fields/Row.d.ts.map +1 -1
- package/dist/admin/fields/Row.js.map +1 -1
- package/dist/admin/fields/Select.d.ts +8 -3
- package/dist/admin/fields/Select.d.ts.map +1 -1
- package/dist/admin/fields/Select.js.map +1 -1
- package/dist/admin/fields/Tabs.d.ts +8 -3
- package/dist/admin/fields/Tabs.d.ts.map +1 -1
- package/dist/admin/fields/Tabs.js.map +1 -1
- package/dist/admin/fields/Text.d.ts +8 -3
- package/dist/admin/fields/Text.d.ts.map +1 -1
- package/dist/admin/fields/Text.js.map +1 -1
- package/dist/admin/fields/Textarea.d.ts +8 -3
- package/dist/admin/fields/Textarea.d.ts.map +1 -1
- package/dist/admin/fields/Textarea.js.map +1 -1
- package/dist/admin/fields/Upload.d.ts +8 -3
- package/dist/admin/fields/Upload.d.ts.map +1 -1
- package/dist/admin/fields/Upload.js.map +1 -1
- package/dist/admin/forms/Description.d.ts +2 -4
- package/dist/admin/forms/Description.d.ts.map +1 -1
- package/dist/admin/forms/Description.js.map +1 -1
- package/dist/admin/forms/Error.d.ts +2 -4
- package/dist/admin/forms/Error.d.ts.map +1 -1
- package/dist/admin/forms/Error.js.map +1 -1
- package/dist/admin/forms/Field.d.ts +18 -7
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/forms/Label.d.ts +1 -3
- package/dist/admin/forms/Label.d.ts.map +1 -1
- package/dist/admin/forms/Label.js.map +1 -1
- package/dist/admin/types.d.ts +20 -20
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/fields/baseFields/baseBeforeDuplicateArrays.d.ts +6 -0
- package/dist/fields/baseFields/baseBeforeDuplicateArrays.d.ts.map +1 -0
- package/dist/fields/baseFields/baseBeforeDuplicateArrays.js +15 -0
- package/dist/fields/baseFields/baseBeforeDuplicateArrays.js.map +1 -0
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +19 -0
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/types.d.ts +2 -2
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,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,
|
|
1
|
+
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,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,2BAA2B,GAAG,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;AAEzE,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,2BAA2B,CAAC,GAC9E,yBAAyB,CAAA;AAE3B,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;AAE/D,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAAA;AAExE,MAAM,MAAM,yBAAyB,GAAG,oBAAoB,CAC1D,2BAA2B,EAC3B,yBAAyB,CAC1B,CAAA;AAED,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/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointField, PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointField, PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js'\nimport type {\n 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 PointFieldClientWithoutType = MarkOptional<PointFieldClient, 'type'>\n\ntype PointFieldBaseClientProps = {\n readonly validate?: PointFieldValidation\n}\n\nexport type PointFieldClientProps = ClientFieldBase<PointFieldClientWithoutType> &\n PointFieldBaseClientProps\n\nexport type PointFieldServerProps = ServerFieldBase<PointField>\n\nexport type PointFieldServerComponent = FieldServerComponent<PointField>\n\nexport type PointFieldClientComponent = FieldClientComponent<\n PointFieldClientWithoutType,\n PointFieldBaseClientProps\n>\n\nexport type PointFieldLabelServerComponent = FieldLabelServerComponent<PointField>\n\nexport type PointFieldLabelClientComponent = FieldLabelClientComponent<PointFieldClientWithoutType>\n\nexport type PointFieldDescriptionServerComponent = FieldDescriptionServerComponent<PointField>\n\nexport type PointFieldDescriptionClientComponent =\n FieldDescriptionClientComponent<PointFieldClientWithoutType>\n\nexport type PointFieldErrorServerComponent = FieldErrorServerComponent<PointField>\n\nexport type PointFieldErrorClientComponent = FieldErrorClientComponent<PointFieldClientWithoutType>\n"],"names":[],"mappings":"AA+CA,WAAmG"}
|
|
@@ -2,13 +2,18 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { RadioField, RadioFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { RadioFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type RadioFieldClientWithoutType = MarkOptional<RadioFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type RadioFieldBaseClientProps = {
|
|
8
9
|
readonly onChange?: OnChange;
|
|
9
10
|
readonly validate?: RadioFieldValidation;
|
|
10
11
|
readonly value?: string;
|
|
11
|
-
}
|
|
12
|
+
};
|
|
13
|
+
export type RadioFieldClientProps = ClientFieldBase<RadioFieldClientWithoutType> & RadioFieldBaseClientProps;
|
|
14
|
+
export type RadioFieldServerProps = ServerFieldBase<RadioField>;
|
|
15
|
+
export type RadioFieldServerComponent = FieldServerComponent<RadioField>;
|
|
16
|
+
export type RadioFieldClientComponent = FieldClientComponent<RadioFieldClientWithoutType, RadioFieldBaseClientProps>;
|
|
12
17
|
export type OnChange<T = string> = (value: T) => void;
|
|
13
18
|
export type RadioFieldLabelServerComponent = FieldLabelServerComponent<RadioField>;
|
|
14
19
|
export type RadioFieldLabelClientComponent = FieldLabelClientComponent<RadioFieldClientWithoutType>;
|
|
@@ -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,UAAU,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,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,yBAAyB,CAC1B,CAAA;AAED,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 { 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
|
|
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 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 RadioFieldClientWithoutType = MarkOptional<RadioFieldClient, 'type'>\n\ntype RadioFieldBaseClientProps = {\n readonly onChange?: OnChange\n readonly validate?: RadioFieldValidation\n readonly value?: string\n}\n\nexport type RadioFieldClientProps = ClientFieldBase<RadioFieldClientWithoutType> &\n RadioFieldBaseClientProps\n\nexport type RadioFieldServerProps = ServerFieldBase<RadioField>\n\nexport type RadioFieldServerComponent = FieldServerComponent<RadioField>\n\nexport type RadioFieldClientComponent = FieldClientComponent<\n RadioFieldClientWithoutType,\n RadioFieldBaseClientProps\n>\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":"AAmDA,WAAmG"}
|
|
@@ -2,11 +2,16 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { RelationshipField, RelationshipFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { RelationshipFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type RelationshipFieldClientWithoutType = MarkOptional<RelationshipFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type RelationshipFieldBaseClientProps = {
|
|
8
9
|
readonly validate?: RelationshipFieldValidation;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
11
|
+
export type RelationshipFieldClientProps = ClientFieldBase<RelationshipFieldClientWithoutType> & RelationshipFieldBaseClientProps;
|
|
12
|
+
export type RelationshipFieldServerProps = ServerFieldBase<RelationshipField>;
|
|
13
|
+
export type RelationshipFieldServerComponent = FieldServerComponent<RelationshipField>;
|
|
14
|
+
export type RelationshipFieldClientComponent = FieldClientComponent<RelationshipFieldClientWithoutType, RelationshipFieldBaseClientProps>;
|
|
10
15
|
export type RelationshipFieldLabelServerComponent = FieldLabelServerComponent<RelationshipField>;
|
|
11
16
|
export type RelationshipFieldLabelClientComponent = FieldLabelClientComponent<RelationshipFieldClientWithoutType>;
|
|
12
17
|
export type RelationshipFieldDescriptionServerComponent = FieldDescriptionServerComponent<RelationshipField>;
|
|
@@ -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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
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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"],"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
|
|
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"}
|
|
@@ -2,11 +2,16 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { RichTextField, RichTextFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { RichTextFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type RichTextFieldClientWithoutType = MarkOptional<RichTextFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type RichTextFieldBaseClientProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
|
|
8
9
|
readonly validate?: RichTextFieldValidation;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
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>;
|
|
14
|
+
export type RichTextFieldClientComponent = FieldClientComponent<RichTextFieldClientWithoutType, RichTextFieldBaseClientProps>;
|
|
10
15
|
export type RichTextFieldLabelServerComponent = FieldLabelServerComponent<RichTextField>;
|
|
11
16
|
export type RichTextFieldLabelClientComponent = FieldLabelClientComponent<RichTextFieldClientWithoutType>;
|
|
12
17
|
export type RichTextFieldDescriptionServerComponent = FieldDescriptionServerComponent<RichTextField>;
|
|
@@ -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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
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,GAAG,YAAY,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAA;AAE/E,KAAK,4BAA4B,CAC/B,MAAM,SAAS,MAAM,GAAG,GAAG,EAC3B,aAAa,GAAG,GAAG,EACnB,gBAAgB,GAAG,MAAM,IACvB;IACF,QAAQ,CAAC,QAAQ,CAAC,EAAE,uBAAuB,CAAA;CAC5C,CAAA;AAED,MAAM,MAAM,wBAAwB,CAClC,MAAM,SAAS,MAAM,GAAG,GAAG,EAC3B,aAAa,GAAG,GAAG,EACnB,gBAAgB,GAAG,MAAM,IACvB,eAAe,CAAC,8BAA8B,CAAC,GACjD,4BAA4B,CAAC,MAAM,EAAE,aAAa,EAAE,gBAAgB,CAAC,CAAA;AAEvE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;AAErE,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAC7D,8BAA8B,EAC9B,4BAA4B,CAC7B,CAAA;AAED,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/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
|
|
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,11 +1,16 @@
|
|
|
1
1
|
import type { MarkOptional } from 'ts-essentials';
|
|
2
2
|
import type { RowField, RowFieldClient } from '../../fields/config/types.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
4
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldErrorClientComponent, FieldErrorServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
4
5
|
type RowFieldClientWithoutType = MarkOptional<RowFieldClient, 'type'>;
|
|
5
|
-
|
|
6
|
+
type RowFieldBaseClientProps = {
|
|
6
7
|
readonly forceRender?: boolean;
|
|
7
8
|
readonly indexPath: string;
|
|
8
|
-
}
|
|
9
|
+
};
|
|
10
|
+
export type RowFieldClientProps = ClientFieldBase<RowFieldClientWithoutType> & RowFieldBaseClientProps;
|
|
11
|
+
export type RowFieldServerProps = ServerFieldBase<RowField>;
|
|
12
|
+
export type RowFieldServerComponent = FieldServerComponent<RowField>;
|
|
13
|
+
export type RowFieldClientComponent = FieldClientComponent<RowFieldClientWithoutType, RowFieldBaseClientProps>;
|
|
9
14
|
export type RowFieldLabelServerComponent = FieldLabelServerComponent<RowField>;
|
|
10
15
|
export type RowFieldLabelClientComponent = FieldLabelClientComponent<RowFieldClientWithoutType>;
|
|
11
16
|
export type RowFieldDescriptionServerComponent = FieldDescriptionServerComponent<RowField>;
|
|
@@ -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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,
|
|
1
|
+
{"version":3,"file":"Row.d.ts","sourceRoot":"","s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E9E,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 FieldDescriptionClientComponent,\n FieldDescriptionServerComponent,\n FieldErrorClientComponent,\n FieldErrorServerComponent,\n FieldLabelClientComponent,\n FieldLabelServerComponent,\n
|
|
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"}
|
|
@@ -2,13 +2,18 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { SelectField, SelectFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { SelectFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type SelectFieldClientWithoutType = MarkOptional<SelectFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type SelectFieldBaseClientProps = {
|
|
8
9
|
readonly onChange?: (e: string | string[]) => void;
|
|
9
10
|
readonly validate?: SelectFieldValidation;
|
|
10
11
|
readonly value?: string;
|
|
11
|
-
}
|
|
12
|
+
};
|
|
13
|
+
export type SelectFieldClientProps = ClientFieldBase<SelectFieldClientWithoutType> & SelectFieldBaseClientProps;
|
|
14
|
+
export type SelectFieldServerProps = ServerFieldBase<SelectField>;
|
|
15
|
+
export type SelectFieldServerComponent = FieldServerComponent<SelectField>;
|
|
16
|
+
export type SelectFieldClientComponent = FieldClientComponent<SelectFieldClientWithoutType, SelectFieldBaseClientProps>;
|
|
12
17
|
export type SelectFieldLabelServerComponent = FieldLabelServerComponent<SelectField>;
|
|
13
18
|
export type SelectFieldLabelClientComponent = FieldLabelClientComponent<SelectFieldClientWithoutType>;
|
|
14
19
|
export type SelectFieldDescriptionServerComponent = FieldDescriptionServerComponent<SelectField>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Select.ts"],"names":[],"mappings":"AAAA,OAAO,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,CAAC,GAChF,0BAA0B,CAAA;AAE5B,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC,WAAW,CAAC,CAAA;AAEjE,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,WAAW,CAAC,CAAA;AAE1E,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAC3D,4BAA4B,EAC5B,0BAA0B,CAC3B,CAAA;AAED,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/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
|
|
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,18 +1,23 @@
|
|
|
1
1
|
import type { MarkOptional } from 'ts-essentials';
|
|
2
2
|
import type { ClientField, NamedTab, TabsField, TabsFieldClient, UnnamedTab } from '../../fields/config/types.js';
|
|
3
3
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
4
|
-
import type {
|
|
4
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
5
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
5
6
|
export type ClientTab = ({
|
|
6
7
|
fields: ClientField[];
|
|
7
8
|
} & Omit<NamedTab, 'fields'>) | ({
|
|
8
9
|
fields: ClientField[];
|
|
9
10
|
} & Omit<UnnamedTab, 'fields'>);
|
|
10
|
-
|
|
11
|
-
export type
|
|
11
|
+
type TabsFieldClientWithoutType = MarkOptional<TabsFieldClient, 'type'>;
|
|
12
|
+
export type TabsFieldClientProps = ClientFieldBase<TabsFieldClientWithoutType>;
|
|
13
|
+
export type TabsFieldServerProps = ServerFieldBase<TabsField>;
|
|
14
|
+
export type TabsFieldServerComponent = FieldServerComponent<TabsField>;
|
|
15
|
+
export type TabsFieldClientComponent = FieldClientComponent<TabsFieldClientWithoutType>;
|
|
12
16
|
export type TabsFieldLabelServerComponent = FieldLabelServerComponent<TabsField>;
|
|
13
17
|
export type TabsFieldLabelClientComponent = FieldLabelClientComponent<TabsFieldClientWithoutType>;
|
|
14
18
|
export type TabsFieldDescriptionServerComponent = FieldDescriptionServerComponent<TabsField>;
|
|
15
19
|
export type TabsFieldDescriptionClientComponent = FieldDescriptionClientComponent<TabsFieldClientWithoutType>;
|
|
16
20
|
export type TabsFieldErrorServerComponent = FieldErrorServerComponent<TabsField>;
|
|
17
21
|
export type TabsFieldErrorClientComponent = FieldErrorClientComponent<TabsFieldClientWithoutType>;
|
|
22
|
+
export {};
|
|
18
23
|
//# 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,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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AAC,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 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
|
|
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"}
|
|
@@ -3,13 +3,18 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
3
3
|
import type { TextField, TextFieldClient } from '../../fields/config/types.js';
|
|
4
4
|
import type { TextFieldValidation } from '../../fields/validations.js';
|
|
5
5
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
7
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
7
8
|
type TextFieldClientWithoutType = MarkOptional<TextFieldClient, 'type'>;
|
|
8
|
-
|
|
9
|
+
type TextFieldBaseClientProps = {
|
|
9
10
|
readonly inputRef?: React.RefObject<HTMLInputElement>;
|
|
10
11
|
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
12
|
readonly validate?: TextFieldValidation;
|
|
12
|
-
}
|
|
13
|
+
};
|
|
14
|
+
export type TextFieldClientProps = ClientFieldBase<TextFieldClientWithoutType> & TextFieldBaseClientProps;
|
|
15
|
+
export type TextFieldServerProps = ServerFieldBase<TextField>;
|
|
16
|
+
export type TextFieldServerComponent = FieldServerComponent<TextField>;
|
|
17
|
+
export type TextFieldClientComponent = FieldClientComponent<TextFieldClientWithoutType, TextFieldBaseClientProps>;
|
|
13
18
|
export type TextFieldLabelServerComponent = FieldLabelServerComponent<TextField>;
|
|
14
19
|
export type TextFieldLabelClientComponent = FieldLabelClientComponent<TextFieldClientWithoutType>;
|
|
15
20
|
export type TextFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextField>;
|
|
@@ -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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
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,CA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{ 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
|
|
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"}
|
|
@@ -3,13 +3,18 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
3
3
|
import type { TextareaField, TextareaFieldClient } from '../../fields/config/types.js';
|
|
4
4
|
import type { TextareaFieldValidation } from '../../fields/validations.js';
|
|
5
5
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
7
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
7
8
|
type TextareaFieldClientWithoutType = MarkOptional<TextareaFieldClient, 'type'>;
|
|
8
|
-
|
|
9
|
+
type TextareaFieldBaseClientProps = {
|
|
9
10
|
readonly inputRef?: React.Ref<HTMLInputElement>;
|
|
10
11
|
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
12
|
readonly validate?: TextareaFieldValidation;
|
|
12
|
-
}
|
|
13
|
+
};
|
|
14
|
+
export type TextareaFieldClientProps = ClientFieldBase<TextareaFieldClientWithoutType> & TextareaFieldBaseClientProps;
|
|
15
|
+
export type TextareaFieldServerProps = ServerFieldBase<TextareaField>;
|
|
16
|
+
export type TextareaFieldServerComponent = FieldServerComponent<TextareaField>;
|
|
17
|
+
export type TextareaFieldClientComponent = FieldClientComponent<TextareaFieldClientWithoutType, TextareaFieldBaseClientProps>;
|
|
13
18
|
export type TextareaFieldLabelServerComponent = FieldLabelServerComponent<TextareaField>;
|
|
14
19
|
export type TextareaFieldLabelClientComponent = FieldLabelClientComponent<TextareaFieldClientWithoutType>;
|
|
15
20
|
export type TextareaFieldDescriptionServerComponent = FieldDescriptionServerComponent<TextareaField>;
|
|
@@ -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,+BAA+B,EAC/B,+BAA+B,EAC/B,yBAAyB,EACzB,yBAAyB,
|
|
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,MAAM,CAAC,CAAA;AAE/E,KAAK,4BAA4B,GAAG;IAClC,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,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,8BAA8B,CAAC,GACpF,4BAA4B,CAAA;AAE9B,MAAM,MAAM,wBAAwB,GAAG,eAAe,CAAC,aAAa,CAAC,CAAA;AAErE,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAA;AAE9E,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,CAC7D,8BAA8B,EAC9B,4BAA4B,CAC7B,CAAA;AAED,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 { 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
|
|
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"}
|
|
@@ -2,11 +2,16 @@ import type { MarkOptional } from 'ts-essentials';
|
|
|
2
2
|
import type { UploadField, UploadFieldClient } from '../../fields/config/types.js';
|
|
3
3
|
import type { UploadFieldValidation } from '../../fields/validations.js';
|
|
4
4
|
import type { FieldErrorClientComponent, FieldErrorServerComponent } from '../forms/Error.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { ClientFieldBase, FieldClientComponent, FieldServerComponent, ServerFieldBase } from '../forms/Field.js';
|
|
6
|
+
import type { FieldDescriptionClientComponent, FieldDescriptionServerComponent, FieldLabelClientComponent, FieldLabelServerComponent } from '../types.js';
|
|
6
7
|
type UploadFieldClientWithoutType = MarkOptional<UploadFieldClient, 'type'>;
|
|
7
|
-
|
|
8
|
+
type UploadFieldBaseClientProps = {
|
|
8
9
|
readonly validate?: UploadFieldValidation;
|
|
9
|
-
}
|
|
10
|
+
};
|
|
11
|
+
export type UploadFieldClientProps = ClientFieldBase<UploadFieldClientWithoutType> & UploadFieldBaseClientProps;
|
|
12
|
+
export type UploadFieldServerProps = ServerFieldBase<UploadField>;
|
|
13
|
+
export type UploadFieldServerComponent = FieldServerComponent<UploadField>;
|
|
14
|
+
export type UploadFieldClientComponent = FieldClientComponent<UploadFieldClientWithoutType, UploadFieldBaseClientProps>;
|
|
10
15
|
export type UploadFieldLabelServerComponent = FieldLabelServerComponent<UploadField>;
|
|
11
16
|
export type UploadFieldLabelClientComponent = FieldLabelClientComponent<UploadFieldClientWithoutType>;
|
|
12
17
|
export type UploadFieldDescriptionServerComponent = FieldDescriptionServerComponent<UploadField>;
|
|
@@ -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,WAAW,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAClF,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AACxE,OAAO,KAAK,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MA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AA;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 { 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
|
|
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,9 +1,8 @@
|
|
|
1
|
-
import type { MarkOptional } from 'ts-essentials';
|
|
2
1
|
import type { LabelFunction, ServerProps } from '../../config/types.js';
|
|
3
|
-
import type {
|
|
2
|
+
import type { Field } from '../../fields/config/types.js';
|
|
4
3
|
import type { MappedComponent } from '../types.js';
|
|
4
|
+
import type { ClientFieldWithOptionalType } from './Field.js';
|
|
5
5
|
export type DescriptionFunction = LabelFunction;
|
|
6
|
-
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
7
6
|
export type FieldDescriptionClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldDescriptionClientProps<TFieldClient>>;
|
|
8
7
|
export type FieldDescriptionServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldDescriptionServerProps<TFieldServer>>;
|
|
9
8
|
export type StaticDescription = Record<string, string> | string;
|
|
@@ -20,5 +19,4 @@ export type FieldDescriptionServerProps<TFieldServer extends Field = Field> = {
|
|
|
20
19
|
export type FieldDescriptionClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
21
20
|
field: TFieldClient;
|
|
22
21
|
} & GenericDescriptionProps;
|
|
23
|
-
export {};
|
|
24
22
|
//# sourceMappingURL=Description.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../src/admin/forms/Description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACvE,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,mBAAmB,GAAG,aAAa,CAAA;AAE/C,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,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,eAAe,CAAA;IACtC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/Description.ts"],"sourcesContent":["import type {
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import type { MarkOptional } from 'ts-essentials';
|
|
2
1
|
import type { ServerProps } from '../../config/types.js';
|
|
3
|
-
import type {
|
|
2
|
+
import type { Field } from '../../fields/config/types.js';
|
|
4
3
|
import type { MappedComponent } from '../types.js';
|
|
4
|
+
import type { ClientFieldWithOptionalType } from './Field.js';
|
|
5
5
|
export type GenericErrorProps = {
|
|
6
6
|
readonly alignCaret?: 'center' | 'left' | 'right';
|
|
7
7
|
readonly CustomError?: MappedComponent;
|
|
@@ -9,7 +9,6 @@ export type GenericErrorProps = {
|
|
|
9
9
|
readonly path?: string;
|
|
10
10
|
readonly showError?: boolean;
|
|
11
11
|
};
|
|
12
|
-
type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
13
12
|
export type FieldErrorClientProps<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
14
13
|
field: TFieldClient;
|
|
15
14
|
} & GenericErrorProps;
|
|
@@ -18,5 +17,4 @@ export type FieldErrorServerProps<TFieldServer extends Field> = {
|
|
|
18
17
|
} & GenericErrorProps & Partial<ServerProps>;
|
|
19
18
|
export type FieldErrorClientComponent<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = React.ComponentType<FieldErrorClientProps<TFieldClient>>;
|
|
20
19
|
export type FieldErrorServerComponent<TFieldServer extends Field = Field> = React.ComponentType<FieldErrorServerProps<TFieldServer>>;
|
|
21
|
-
export {};
|
|
22
20
|
//# 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,
|
|
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,aAAa,CAC7F,qBAAqB,CAAC,YAAY,CAAC,CACpC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/forms/Error.ts"],"sourcesContent":["import type {
|
|
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,21 +1,30 @@
|
|
|
1
1
|
import type { MarkOptional } from 'ts-essentials';
|
|
2
2
|
import type { User } from '../../auth/types.js';
|
|
3
3
|
import type { Locale } from '../../config/types.js';
|
|
4
|
-
import type { ClientField, Validate } from '../../fields/config/types.js';
|
|
4
|
+
import type { ClientField, Field, Validate } from '../../fields/config/types.js';
|
|
5
5
|
import type { DocumentPreferences } from '../../preferences/types.js';
|
|
6
|
-
import type { FieldDescriptionClientProps } from './Description.js';
|
|
7
|
-
import type { FieldErrorClientProps } from './Error.js';
|
|
8
|
-
import type { FieldLabelClientProps } from './Label.js';
|
|
9
|
-
export type
|
|
6
|
+
import type { FieldDescriptionClientProps, FieldDescriptionServerProps } from './Description.js';
|
|
7
|
+
import type { FieldErrorClientProps, FieldErrorServerProps } from './Error.js';
|
|
8
|
+
import type { FieldLabelClientProps, FieldLabelServerProps } from './Label.js';
|
|
9
|
+
export type ClientFieldWithOptionalType = MarkOptional<ClientField, 'type'>;
|
|
10
|
+
export type ClientFieldBase<TFieldClient extends ClientFieldWithOptionalType = ClientFieldWithOptionalType> = {
|
|
10
11
|
readonly descriptionProps?: FieldDescriptionClientProps<TFieldClient>;
|
|
11
|
-
readonly docPreferences?: DocumentPreferences;
|
|
12
12
|
readonly errorProps?: FieldErrorClientProps<TFieldClient>;
|
|
13
13
|
readonly field: TFieldClient;
|
|
14
|
+
readonly labelProps?: FieldLabelClientProps<TFieldClient>;
|
|
15
|
+
} & FormFieldBase;
|
|
16
|
+
export type ServerFieldBase<TFieldServer extends Field = Field> = {
|
|
17
|
+
readonly descriptionProps?: FieldDescriptionServerProps<TFieldServer>;
|
|
18
|
+
readonly errorProps?: FieldErrorServerProps<TFieldServer>;
|
|
19
|
+
readonly field: TFieldServer;
|
|
20
|
+
readonly labelProps?: FieldLabelServerProps<TFieldServer>;
|
|
21
|
+
} & FormFieldBase;
|
|
22
|
+
export type FormFieldBase = {
|
|
23
|
+
readonly docPreferences?: DocumentPreferences;
|
|
14
24
|
/**
|
|
15
25
|
* `forceRender` is added by RenderField automatically.
|
|
16
26
|
*/
|
|
17
27
|
readonly forceRender?: boolean;
|
|
18
|
-
readonly labelProps?: FieldLabelClientProps<TFieldClient>;
|
|
19
28
|
readonly locale?: Locale;
|
|
20
29
|
/**
|
|
21
30
|
* `readOnly` is added by RenderField automatically. This should be used instead of `field.admin.readOnly`.
|
|
@@ -24,4 +33,6 @@ export type FormFieldBase<TFieldClient extends MarkOptional<ClientField, 'type'>
|
|
|
24
33
|
readonly user?: User;
|
|
25
34
|
readonly validate?: Validate;
|
|
26
35
|
};
|
|
36
|
+
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>>;
|
|
27
38
|
//# sourceMappingURL=Field.d.ts.map
|