payload 3.0.0-beta.78 → 3.0.0-beta.79
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/bin.js +33 -10
- package/dist/admin/RichText.d.ts +20 -17
- package/dist/admin/RichText.d.ts.map +1 -1
- package/dist/admin/RichText.js.map +1 -1
- package/dist/admin/elements/Cell.d.ts +11 -26
- package/dist/admin/elements/Cell.d.ts.map +1 -1
- package/dist/admin/elements/Cell.js.map +1 -1
- package/dist/admin/elements/Tab.d.ts +16 -15
- package/dist/admin/elements/Tab.d.ts.map +1 -1
- package/dist/admin/elements/Tab.js.map +1 -1
- package/dist/admin/fields/Array.d.ts +6 -13
- 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 -25
- 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 +9 -9
- 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 +5 -7
- 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 +3 -4
- 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 +4 -7
- 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 +5 -7
- 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 +3 -6
- package/dist/admin/fields/Group.d.ts.map +1 -1
- package/dist/admin/fields/Group.js.map +1 -1
- package/dist/admin/fields/Hidden.d.ts +7 -5
- package/dist/admin/fields/Hidden.d.ts.map +1 -1
- package/dist/admin/fields/Hidden.js.map +1 -1
- package/dist/admin/fields/JSON.d.ts +4 -7
- 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 +5 -12
- 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 +4 -6
- 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 +6 -9
- 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 +4 -9
- 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 +5 -6
- 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 +3 -4
- 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 +6 -11
- 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 -12
- 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 +7 -13
- 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 +7 -9
- 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 +6 -7
- package/dist/admin/fields/Upload.d.ts.map +1 -1
- package/dist/admin/fields/Upload.js.map +1 -1
- package/dist/admin/forms/Error.d.ts +10 -10
- 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 +17 -24
- package/dist/admin/forms/Field.d.ts.map +1 -1
- package/dist/admin/forms/Field.js +1 -0
- package/dist/admin/forms/Field.js.map +1 -1
- package/dist/admin/forms/FieldDescription.d.ts +10 -9
- package/dist/admin/forms/FieldDescription.d.ts.map +1 -1
- package/dist/admin/forms/FieldDescription.js.map +1 -1
- package/dist/admin/forms/Label.d.ts +14 -15
- 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 +30 -11
- package/dist/admin/types.d.ts.map +1 -1
- package/dist/admin/types.js.map +1 -1
- package/dist/admin/views/types.d.ts +21 -13
- package/dist/admin/views/types.d.ts.map +1 -1
- package/dist/admin/views/types.js.map +1 -1
- package/dist/auth/baseFields/apiKey.js +2 -2
- package/dist/auth/baseFields/apiKey.js.map +1 -1
- package/dist/auth/baseFields/email.js +1 -1
- package/dist/auth/baseFields/email.js.map +1 -1
- package/dist/auth/baseFields/username.js +1 -1
- package/dist/auth/baseFields/username.js.map +1 -1
- package/dist/auth/baseFields/verification.js +1 -1
- package/dist/auth/baseFields/verification.js.map +1 -1
- package/dist/bin/generateImportMap/index.d.ts +47 -0
- package/dist/bin/generateImportMap/index.d.ts.map +1 -0
- package/dist/bin/generateImportMap/index.js +129 -0
- package/dist/bin/generateImportMap/index.js.map +1 -0
- package/dist/bin/generateImportMap/iterateCollections.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateCollections.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateCollections.js +41 -0
- package/dist/bin/generateImportMap/iterateCollections.js.map +1 -0
- package/dist/bin/generateImportMap/iterateConfig.d.ts +10 -0
- package/dist/bin/generateImportMap/iterateConfig.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateConfig.js +75 -0
- package/dist/bin/generateImportMap/iterateConfig.js.map +1 -0
- package/dist/bin/generateImportMap/iterateFields.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateFields.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateFields.js +56 -0
- package/dist/bin/generateImportMap/iterateFields.js.map +1 -0
- package/dist/bin/generateImportMap/iterateGlobals.d.ts +12 -0
- package/dist/bin/generateImportMap/iterateGlobals.d.ts.map +1 -0
- package/dist/bin/generateImportMap/iterateGlobals.js +34 -0
- package/dist/bin/generateImportMap/iterateGlobals.js.map +1 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.d.ts +6 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.d.ts.map +1 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.js +19 -0
- package/dist/bin/generateImportMap/parsePayloadComponent.js.map +1 -0
- package/dist/bin/index.d.ts.map +1 -1
- package/dist/bin/index.js +35 -4
- package/dist/bin/index.js.map +1 -1
- package/dist/collections/config/client.d.ts +32 -308
- package/dist/collections/config/client.d.ts.map +1 -1
- package/dist/collections/config/client.js +1 -82
- package/dist/collections/config/client.js.map +1 -1
- package/dist/collections/config/types.d.ts +9 -9
- package/dist/collections/config/types.d.ts.map +1 -1
- package/dist/collections/config/types.js.map +1 -1
- package/dist/config/client.d.ts +12 -6
- package/dist/config/client.d.ts.map +1 -1
- package/dist/config/client.js +1 -49
- package/dist/config/client.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +4 -0
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/types.d.ts +111 -52
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/exports/node.d.ts +0 -1
- package/dist/exports/node.d.ts.map +1 -1
- package/dist/exports/node.js +0 -1
- package/dist/exports/node.js.map +1 -1
- package/dist/exports/shared.d.ts +2 -1
- package/dist/exports/shared.d.ts.map +1 -1
- package/dist/exports/shared.js +2 -1
- package/dist/exports/shared.js.map +1 -1
- package/dist/fields/config/client.d.ts +3 -1642
- package/dist/fields/config/client.d.ts.map +1 -1
- package/dist/fields/config/client.js +1 -81
- package/dist/fields/config/client.js.map +1 -1
- package/dist/fields/config/sanitize.d.ts.map +1 -1
- package/dist/fields/config/sanitize.js +23 -22
- package/dist/fields/config/sanitize.js.map +1 -1
- package/dist/fields/config/types.d.ts +385 -56
- package/dist/fields/config/types.d.ts.map +1 -1
- package/dist/fields/config/types.js +3 -0
- package/dist/fields/config/types.js.map +1 -1
- package/dist/globals/config/client.d.ts +26 -14
- package/dist/globals/config/client.d.ts.map +1 -1
- package/dist/globals/config/client.js +1 -47
- package/dist/globals/config/client.js.map +1 -1
- package/dist/globals/config/types.d.ts +3 -3
- package/dist/globals/config/types.js.map +1 -1
- package/dist/index.d.ts +15 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/uploads/getBaseFields.d.ts.map +1 -1
- package/dist/uploads/getBaseFields.js +5 -2
- package/dist/uploads/getBaseFields.js.map +1 -1
- package/dist/uploads/types.d.ts +4 -0
- package/dist/uploads/types.d.ts.map +1 -1
- package/dist/uploads/types.js.map +1 -1
- package/dist/utilities/fieldSchemaToJSON.d.ts +4 -4
- package/dist/utilities/fieldSchemaToJSON.d.ts.map +1 -1
- package/dist/utilities/fieldSchemaToJSON.js +0 -10
- package/dist/utilities/fieldSchemaToJSON.js.map +1 -1
- package/dist/utilities/flattenTopLevelFields.d.ts +4 -3
- package/dist/utilities/flattenTopLevelFields.d.ts.map +1 -1
- package/dist/utilities/flattenTopLevelFields.js +12 -7
- package/dist/utilities/flattenTopLevelFields.js.map +1 -1
- package/dist/utilities/getEntityPolicies.d.ts.map +1 -1
- package/dist/utilities/getEntityPolicies.js +5 -5
- package/dist/utilities/getEntityPolicies.js.map +1 -1
- package/dist/utilities/telemetry/conf/index.js.map +1 -1
- package/dist/versions/baseFields.js +1 -1
- package/dist/versions/baseFields.js.map +1 -1
- package/package.json +3 -10
- package/dist/admin/fields/index.d.ts +0 -65
- package/dist/admin/fields/index.d.ts.map +0 -1
- package/dist/admin/fields/index.js +0 -3
- package/dist/admin/fields/index.js.map +0 -1
- package/dist/admin/forms/FieldMap.d.ts +0 -23
- package/dist/admin/forms/FieldMap.d.ts.map +0 -1
- package/dist/admin/forms/FieldMap.js +0 -3
- package/dist/admin/forms/FieldMap.js.map +0 -1
- package/dist/admin/forms/FieldTypes.d.ts +0 -27
- package/dist/admin/forms/FieldTypes.d.ts.map +0 -1
- package/dist/admin/forms/FieldTypes.js +0 -3
- package/dist/admin/forms/FieldTypes.js.map +0 -1
- package/dist/bin/loader/clientExtensions.d.ts +0 -2
- package/dist/bin/loader/clientExtensions.d.ts.map +0 -1
- package/dist/bin/loader/clientExtensions.js +0 -13
- package/dist/bin/loader/clientExtensions.js.map +0 -1
- package/dist/bin/loader/compile.d.ts +0 -5
- package/dist/bin/loader/compile.d.ts.map +0 -1
- package/dist/bin/loader/compile.js +0 -27
- package/dist/bin/loader/compile.js.map +0 -1
- package/dist/bin/loader/ignores.d.ts +0 -2
- package/dist/bin/loader/ignores.d.ts.map +0 -1
- package/dist/bin/loader/ignores.js +0 -5
- package/dist/bin/loader/ignores.js.map +0 -1
- package/dist/bin/loader/index.d.ts +0 -34
- package/dist/bin/loader/index.d.ts.map +0 -1
- package/dist/bin/loader/index.js +0 -116
- package/dist/bin/loader/index.js.map +0 -1
- package/dist/bin/loader/read-default-tsconfig.d.ts +0 -29
- package/dist/bin/loader/read-default-tsconfig.d.ts.map +0 -1
- package/dist/bin/loader/read-default-tsconfig.js +0 -116
- package/dist/bin/loader/read-default-tsconfig.js.map +0 -1
- package/dist/bin/loader/resolveOriginalPath.d.ts +0 -10
- package/dist/bin/loader/resolveOriginalPath.d.ts.map +0 -1
- package/dist/bin/loader/resolveOriginalPath.js +0 -36
- package/dist/bin/loader/resolveOriginalPath.js.map +0 -1
- package/dist/utilities/importWithoutClientFiles.d.ts +0 -7
- package/dist/utilities/importWithoutClientFiles.d.ts.map +0 -1
- package/dist/utilities/importWithoutClientFiles.js +0 -47
- package/dist/utilities/importWithoutClientFiles.js.map +0 -1
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { DateFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { DateFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type DateFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
path?: string;
|
|
9
|
-
placeholder?: DateField['admin']['placeholder'] | string;
|
|
10
|
-
validate?: DateFieldValidation;
|
|
11
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<DateFieldClient, 'type'>;
|
|
8
|
+
readonly validate?: DateFieldValidation;
|
|
12
9
|
} & Omit<FormFieldBase, 'validate'>;
|
|
13
10
|
export type DateFieldLabelComponent = LabelComponent<'date'>;
|
|
14
11
|
export type DateFieldDescriptionComponent = DescriptionComponent<'date'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Date.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Date.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Date.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { DateFieldClient } from '../../fields/config/types.js'\nimport type { DateFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type DateFieldProps = {\n readonly field: MarkOptional<DateFieldClient, 'type'>\n readonly validate?: DateFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type DateFieldLabelComponent = LabelComponent<'date'>\n\nexport type DateFieldDescriptionComponent = DescriptionComponent<'date'>\n\nexport type DateFieldErrorComponent = ErrorComponent<'date'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { EmailFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { EmailFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type EmailFieldProps = {
|
|
6
|
-
autoComplete?: string;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
placeholder?: EmailField['admin']['placeholder'];
|
|
10
|
-
validate?: EmailFieldValidation;
|
|
11
|
-
width?: string;
|
|
7
|
+
readonly autoComplete?: string;
|
|
8
|
+
readonly field: MarkOptional<EmailFieldClient, 'type'>;
|
|
9
|
+
readonly validate?: EmailFieldValidation;
|
|
12
10
|
} & Omit<FormFieldBase, 'validate'>;
|
|
13
11
|
export type EmailFieldLabelComponent = LabelComponent<'email'>;
|
|
14
12
|
export type EmailFieldDescriptionComponent = DescriptionComponent<'email'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Email.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Email.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Email.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { EmailFieldClient } from '../../fields/config/types.js'\nimport type { EmailFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type EmailFieldProps = {\n readonly autoComplete?: string\n readonly field: MarkOptional<EmailFieldClient, 'type'>\n readonly validate?: EmailFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type EmailFieldLabelComponent = LabelComponent<'email'>\n\nexport type EmailFieldDescriptionComponent = DescriptionComponent<'email'>\n\nexport type EmailFieldErrorComponent = ErrorComponent<'email'>\n"],"names":[],"mappings":"AAiBA,WAA8D"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { GroupFieldClient } from '../../fields/config/types.js';
|
|
1
3
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
2
|
-
import type { FieldMap } from '../forms/FieldMap.js';
|
|
3
4
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
4
5
|
export type GroupFieldProps = {
|
|
5
|
-
|
|
6
|
-
forceRender?: boolean;
|
|
7
|
-
hideGutter?: boolean;
|
|
8
|
-
name?: string;
|
|
9
|
-
width?: string;
|
|
6
|
+
readonly field: MarkOptional<GroupFieldClient, 'type'>;
|
|
10
7
|
} & FormFieldBase;
|
|
11
8
|
export type GroupFieldLabelComponent = LabelComponent<'group'>;
|
|
12
9
|
export type GroupFieldDescriptionComponent = DescriptionComponent<'group'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;CACvD,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Group.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { GroupFieldClient } from '../../fields/config/types.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type GroupFieldProps = {\n readonly field: MarkOptional<GroupFieldClient, 'type'>\n} & FormFieldBase\n\nexport type GroupFieldLabelComponent = LabelComponent<'group'>\n\nexport type GroupFieldDescriptionComponent = DescriptionComponent<'group'>\n\nexport type GroupFieldErrorComponent = ErrorComponent<'group'>\n"],"names":[],"mappings":"AAcA,WAA8D"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import type { ClientField } from '../../fields/config/client.js';
|
|
1
2
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
2
3
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
3
4
|
export type HiddenFieldProps = {
|
|
4
|
-
disableModifyingForm?: false;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
readonly disableModifyingForm?: false;
|
|
6
|
+
readonly field?: {
|
|
7
|
+
readonly name?: string;
|
|
8
|
+
} & Pick<ClientField, '_path'>;
|
|
9
|
+
readonly forceUsePathFromProps?: boolean;
|
|
10
|
+
readonly value?: unknown;
|
|
9
11
|
} & FormFieldBase;
|
|
10
12
|
export type HiddenFieldLabelComponent = LabelComponent<'hidden'>;
|
|
11
13
|
export type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,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,oBAAoB,CAAC,EAAE,KAAK,CAAA;
|
|
1
|
+
{"version":3,"file":"Hidden.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Hidden.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAA;IACrC,QAAQ,CAAC,KAAK,CAAC,EAAE;QACf,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KACvB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAA;IAC9B,QAAQ,CAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,aAAa,CAAA;AAEjB,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAA;AAE5E,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type HiddenFieldProps = {\n disableModifyingForm?: false\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Hidden.ts"],"sourcesContent":["import type { ClientField } from '../../fields/config/client.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type HiddenFieldProps = {\n readonly disableModifyingForm?: false\n readonly field?: {\n readonly name?: string\n } & Pick<ClientField, '_path'>\n readonly forceUsePathFromProps?: boolean\n readonly value?: unknown\n} & FormFieldBase\n\nexport type HiddenFieldLabelComponent = LabelComponent<'hidden'>\n\nexport type HiddenFieldDescriptionComponent = DescriptionComponent<'hidden'>\n\nexport type HiddenFieldErrorComponent = ErrorComponent<'hidden'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { JSONFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { JSONFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type JSONFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
name?: string;
|
|
9
|
-
path?: string;
|
|
10
|
-
validate?: JSONFieldValidation;
|
|
11
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<JSONFieldClient, 'type'>;
|
|
8
|
+
readonly validate?: JSONFieldValidation;
|
|
12
9
|
} & Omit<FormFieldBase, 'validate'>;
|
|
13
10
|
export type JSONFieldLabelComponent = LabelComponent<'json'>;
|
|
14
11
|
export type JSONFieldDescriptionComponent = DescriptionComponent<'json'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JSON.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/JSON.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"JSON.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/JSON.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAA;CACxC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/JSON.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/JSON.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { JSONFieldClient } from '../../fields/config/types.js'\nimport type { JSONFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type JSONFieldProps = {\n readonly field: MarkOptional<JSONFieldClient, 'type'>\n readonly validate?: JSONFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type JSONFieldLabelComponent = LabelComponent<'json'>\n\nexport type JSONFieldDescriptionComponent = DescriptionComponent<'json'>\n\nexport type JSONFieldErrorComponent = ErrorComponent<'json'>\n"],"names":[],"mappings":"AAgBA,WAA4D"}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { NumberFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { NumberFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type NumberFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
min?: number;
|
|
10
|
-
name?: string;
|
|
11
|
-
onChange?: (e: number) => void;
|
|
12
|
-
path?: string;
|
|
13
|
-
placeholder?: NumberField['admin']['placeholder'];
|
|
14
|
-
step?: number;
|
|
15
|
-
validate?: NumberFieldValidation;
|
|
16
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<NumberFieldClient, 'type'>;
|
|
8
|
+
readonly onChange?: (e: number) => void;
|
|
9
|
+
readonly validate?: NumberFieldValidation;
|
|
17
10
|
} & Omit<FormFieldBase, 'validate'>;
|
|
18
11
|
export type NumberFieldLabelComponent = LabelComponent<'number'>;
|
|
19
12
|
export type NumberFieldDescriptionComponent = DescriptionComponent<'number'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"Number.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Number.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,iBAAiB,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,KAAK,IAAI,CAAA;IACvC,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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Number.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { NumberFieldClient } from '../../fields/config/types.js'\nimport type { NumberFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type NumberFieldProps = {\n readonly field: MarkOptional<NumberFieldClient, 'type'>\n readonly onChange?: (e: number) => void\n readonly validate?: NumberFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type NumberFieldLabelComponent = LabelComponent<'number'>\n\nexport type NumberFieldDescriptionComponent = DescriptionComponent<'number'>\n\nexport type NumberFieldErrorComponent = ErrorComponent<'number'>\n"],"names":[],"mappings":"AAiBA,WAAgE"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { PointFieldClient } from '../../fields/config/types.js';
|
|
1
3
|
import type { PointFieldValidation } from '../../fields/validations.js';
|
|
2
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
3
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
4
6
|
export type PointFieldProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
placeholder?: string;
|
|
8
|
-
step?: number;
|
|
9
|
-
validate?: PointFieldValidation;
|
|
10
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<PointFieldClient, 'type'>;
|
|
8
|
+
readonly validate?: PointFieldValidation;
|
|
11
9
|
} & Omit<FormFieldBase, 'validate'>;
|
|
12
10
|
export type PointFieldLabelComponent = LabelComponent<'point'>;
|
|
13
11
|
export type PointFieldDescriptionComponent = DescriptionComponent<'point'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,
|
|
1
|
+
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;CACzC,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { PointFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type PointFieldProps = {\n
|
|
1
|
+
{"version":3,"sources":["../../../src/admin/fields/Point.ts"],"sourcesContent":["import type { MarkOptional } from 'ts-essentials'\n\nimport type { PointFieldClient } from '../../fields/config/types.js'\nimport type { PointFieldValidation } from '../../fields/validations.js'\nimport type { ErrorComponent } from '../forms/Error.js'\nimport type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js'\n\nexport type PointFieldProps = {\n readonly field: MarkOptional<PointFieldClient, 'type'>\n readonly validate?: PointFieldValidation\n} & Omit<FormFieldBase, 'validate'>\n\nexport type PointFieldLabelComponent = LabelComponent<'point'>\n\nexport type PointFieldDescriptionComponent = DescriptionComponent<'point'>\n\nexport type PointFieldErrorComponent = ErrorComponent<'point'>\n"],"names":[],"mappings":"AAgBA,WAA8D"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { RadioFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { RadioFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type RadioFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
path?: string;
|
|
11
|
-
validate?: RadioFieldValidation;
|
|
12
|
-
value?: string;
|
|
13
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<RadioFieldClient, 'type'>;
|
|
8
|
+
readonly onChange?: OnChange;
|
|
9
|
+
readonly validate?: RadioFieldValidation;
|
|
10
|
+
readonly value?: string;
|
|
14
11
|
} & Omit<FormFieldBase, 'validate'>;
|
|
15
12
|
export type OnChange<T = string> = (value: T) => void;
|
|
16
13
|
export type RadioFieldLabelComponent = LabelComponent<'radio'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Radio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;
|
|
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;AAEtF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAA;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,oBAAoB,CAAA;IACxC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CACxB,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,QAAQ,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;AAErD,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA;AAE9D,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAA;AAE1E,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Radio.ts"],"sourcesContent":["import type {
|
|
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,16 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { RelationshipFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { RelationshipFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type RelationshipFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
isSortable?: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
relationTo?: RelationshipField['relationTo'];
|
|
11
|
-
sortOptions?: RelationshipField['admin']['sortOptions'];
|
|
12
|
-
validate?: RelationshipFieldValidation;
|
|
13
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<RelationshipFieldClient, 'type'>;
|
|
8
|
+
readonly validate?: RelationshipFieldValidation;
|
|
14
9
|
} & Omit<FormFieldBase, 'validate'>;
|
|
15
10
|
export type RelationshipFieldLabelComponent = LabelComponent<'relationship'>;
|
|
16
11
|
export type RelationshipFieldDescriptionComponent = DescriptionComponent<'relationship'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Relationship.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Relationship.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
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,KAAK,EAAE,YAAY,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAA;IAC7D,QAAQ,CAAC,QAAQ,CAAC,EAAE,2BAA2B,CAAA;CAChD,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA;AAE5E,MAAM,MAAM,qCAAqC,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAA;AAExF,MAAM,MAAM,+BAA+B,GAAG,cAAc,CAAC,cAAc,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Relationship.ts"],"sourcesContent":["import type {
|
|
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,12 +1,11 @@
|
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { RichTextFieldClient } from '../../fields/config/types.js';
|
|
1
3
|
import type { RichTextFieldValidation } from '../../fields/validations.js';
|
|
2
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
3
|
-
import type { MappedField } from '../forms/FieldMap.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
|
-
export type
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
validate?: RichTextFieldValidation;
|
|
9
|
-
width?: string;
|
|
6
|
+
export type RichTextFieldProps<TValue extends object = any, TAdapterProps = any, TExtraProperties = object> = {
|
|
7
|
+
readonly field: MarkOptional<RichTextFieldClient<TValue, TAdapterProps, TExtraProperties>, 'type'>;
|
|
8
|
+
readonly validate?: RichTextFieldValidation;
|
|
10
9
|
} & Omit<FormFieldBase, 'validate'>;
|
|
11
10
|
export type RichTextFieldLabelComponent = LabelComponent<'richText'>;
|
|
12
11
|
export type RichTextFieldDescriptionComponent = DescriptionComponent<'richText'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichText.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/RichText.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
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,2BAA2B,GAAG,cAAc,CAAC,UAAU,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/RichText.ts"],"sourcesContent":["import type {
|
|
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,12 +1,11 @@
|
|
|
1
1
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload';
|
|
2
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
3
|
+
import type { RowFieldClient } from '../../fields/config/types.js';
|
|
2
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
3
|
-
import type { FieldMap } from '../forms/FieldMap.js';
|
|
4
5
|
export type RowFieldProps = {
|
|
5
|
-
|
|
6
|
+
field: MarkOptional<RowFieldClient, 'type'>;
|
|
6
7
|
forceRender?: boolean;
|
|
7
8
|
indexPath: string;
|
|
8
|
-
path?: string;
|
|
9
|
-
width?: string;
|
|
10
9
|
} & FormFieldBase;
|
|
11
10
|
export type RowFieldLabelComponent = LabelComponent<'row'>;
|
|
12
11
|
export type RowFieldDescriptionComponent = DescriptionComponent<'row'>;
|
|
@@ -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;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Row.ts"],"sourcesContent":["import type { DescriptionComponent, FormFieldBase, LabelComponent } from 'payload'\n\nimport type {
|
|
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,18 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { SelectFieldClient } from '../../fields/config/types.js';
|
|
2
3
|
import type { SelectFieldValidation } from '../../fields/validations.js';
|
|
3
4
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
5
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
6
|
export type SelectFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onChange?: (e: string | string[]) => void;
|
|
11
|
-
options?: Option[];
|
|
12
|
-
path?: string;
|
|
13
|
-
validate?: SelectFieldValidation;
|
|
14
|
-
value?: string;
|
|
15
|
-
width?: string;
|
|
7
|
+
readonly field: MarkOptional<SelectFieldClient, 'type'>;
|
|
8
|
+
readonly onChange?: (e: string | string[]) => void;
|
|
9
|
+
readonly validate?: SelectFieldValidation;
|
|
10
|
+
readonly value?: string;
|
|
16
11
|
} & Omit<FormFieldBase, 'validate'>;
|
|
17
12
|
export type SelectFieldLabelComponent = LabelComponent<'select'>;
|
|
18
13
|
export type SelectFieldDescriptionComponent = DescriptionComponent<'select'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Select.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;
|
|
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,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Select.ts"],"sourcesContent":["import type {
|
|
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,19 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
2
|
+
import type { ClientField, NamedTab, TabsFieldClient, UnnamedTab } from '../../fields/config/types.js';
|
|
2
3
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
3
|
-
import type { FieldMap } from '../forms/FieldMap.js';
|
|
4
4
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
|
+
export type ClientTab = ({
|
|
6
|
+
fields: ClientField[];
|
|
7
|
+
} & Omit<NamedTab, 'fields'>) | ({
|
|
8
|
+
fields: ClientField[];
|
|
9
|
+
} & Omit<UnnamedTab, 'fields'>);
|
|
5
10
|
export type TabsFieldProps = {
|
|
6
|
-
|
|
7
|
-
name?: string;
|
|
8
|
-
path?: string;
|
|
9
|
-
tabs?: MappedTab[];
|
|
10
|
-
width?: string;
|
|
11
|
+
readonly field: MarkOptional<TabsFieldClient, 'type'>;
|
|
11
12
|
} & FormFieldBase;
|
|
12
|
-
export type MappedTab = {
|
|
13
|
-
fieldMap?: FieldMap;
|
|
14
|
-
label: TabsField['tabs'][0]['label'];
|
|
15
|
-
name?: string;
|
|
16
|
-
};
|
|
17
13
|
export type TabsFieldLabelComponent = LabelComponent<'tabs'>;
|
|
18
14
|
export type TabsFieldDescriptionComponent = DescriptionComponent<'tabs'>;
|
|
19
15
|
export type TabsFieldErrorComponent = ErrorComponent<'tabs'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Tabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Tabs.ts"],"sourcesContent":["import type {
|
|
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,20 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
3
|
+
import type { TextFieldClient } from '../../fields/config/types.js';
|
|
2
4
|
import type { TextFieldValidation } from '../../fields/validations.js';
|
|
3
5
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
6
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
7
|
export type TextFieldProps = {
|
|
6
|
-
|
|
7
|
-
inputRef?: React.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
minLength?: number;
|
|
11
|
-
minRows?: number;
|
|
12
|
-
name?: string;
|
|
13
|
-
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
14
|
-
path?: string;
|
|
15
|
-
placeholder?: TextField['admin']['placeholder'];
|
|
16
|
-
validate?: TextFieldValidation;
|
|
17
|
-
width?: string;
|
|
8
|
+
readonly field: MarkOptional<TextFieldClient, 'type'>;
|
|
9
|
+
readonly inputRef?: React.RefObject<HTMLInputElement>;
|
|
10
|
+
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
|
+
readonly validate?: TextFieldValidation;
|
|
18
12
|
} & Omit<FormFieldBase, 'validate'>;
|
|
19
13
|
export type TextFieldLabelComponent = LabelComponent<'text'>;
|
|
20
14
|
export type TextFieldDescriptionComponent = DescriptionComponent<'text'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../src/admin/fields/Text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
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,eAAe,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEtF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACrD,QAAQ,CAAC,QAAQ,CAAC,EAAE,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,EAAE,UAAU,CAAC,CAAA;AAEnC,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA;AAE5D,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAExE,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/admin/fields/Text.ts"],"sourcesContent":["import type {
|
|
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,16 +1,14 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MarkOptional } from 'ts-essentials';
|
|
3
|
+
import type { TextareaFieldClient } from '../../fields/config/types.js';
|
|
2
4
|
import type { TextareaFieldValidation } from '../../fields/validations.js';
|
|
3
5
|
import type { ErrorComponent } from '../forms/Error.js';
|
|
4
6
|
import type { DescriptionComponent, FormFieldBase, LabelComponent } from '../types.js';
|
|
5
7
|
export type TextareaFieldProps = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
placeholder?: TextareaField['admin']['placeholder'];
|
|
11
|
-
rows?: number;
|
|
12
|
-
validate?: TextareaFieldValidation;
|
|
13
|
-
width?: string;
|
|
8
|
+
readonly field: MarkOptional<TextareaFieldClient, 'type'>;
|
|
9
|
+
readonly inputRef?: React.Ref<HTMLInputElement>;
|
|
10
|
+
readonly onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
|
|
11
|
+
readonly validate?: TextareaFieldValidation;
|
|
14
12
|
} & Omit<FormFieldBase, 'validate'>;
|
|
15
13
|
export type TextareaFieldLabelComponent = LabelComponent<'textarea'>;
|
|
16
14
|
export type TextareaFieldDescriptionComponent = DescriptionComponent<'textarea'>;
|