@payloadcms/ui 3.0.0-beta.104 → 3.0.0-beta.105
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/elements/SelectRow/index.js +29 -20
- package/dist/elements/SelectRow/index.js.map +1 -1
- package/dist/elements/TableColumns/buildColumnState.d.ts.map +1 -1
- package/dist/elements/TableColumns/buildColumnState.js +0 -1
- package/dist/elements/TableColumns/buildColumnState.js.map +1 -1
- package/dist/elements/WhereBuilder/reduceClientFields.d.ts.map +1 -1
- package/dist/elements/WhereBuilder/reduceClientFields.js +3 -1
- package/dist/elements/WhereBuilder/reduceClientFields.js.map +1 -1
- package/dist/exports/client/index.js +7 -7
- package/dist/exports/client/index.js.map +3 -3
- package/dist/fields/Array/index.d.ts.map +1 -1
- package/dist/fields/Array/index.js +0 -3
- package/dist/fields/Array/index.js.map +1 -1
- package/dist/fields/Blocks/index.d.ts.map +1 -1
- package/dist/fields/Blocks/index.js +0 -3
- package/dist/fields/Blocks/index.js.map +1 -1
- package/dist/fields/Checkbox/Input.js +1 -1
- package/dist/fields/Checkbox/Input.js.map +1 -1
- package/dist/fields/Checkbox/index.scss +13 -0
- package/dist/fields/Code/index.d.ts.map +1 -1
- package/dist/fields/Code/index.js +31 -36
- package/dist/fields/Code/index.js.map +1 -1
- package/dist/fields/Collapsible/index.d.ts +141 -4
- package/dist/fields/Collapsible/index.d.ts.map +1 -1
- package/dist/fields/DateTime/index.d.ts.map +1 -1
- package/dist/fields/DateTime/index.js +32 -37
- package/dist/fields/DateTime/index.js.map +1 -1
- package/dist/fields/Email/index.d.ts.map +1 -1
- package/dist/fields/Email/index.js +28 -32
- package/dist/fields/Email/index.js.map +1 -1
- package/dist/fields/FieldLabel/index.d.ts.map +1 -1
- package/dist/fields/FieldLabel/index.js +7 -1
- package/dist/fields/FieldLabel/index.js.map +1 -1
- package/dist/fields/JSON/index.d.ts.map +1 -1
- package/dist/fields/JSON/index.js +0 -2
- package/dist/fields/JSON/index.js.map +1 -1
- package/dist/fields/Number/index.d.ts.map +1 -1
- package/dist/fields/Number/index.js +35 -40
- package/dist/fields/Number/index.js.map +1 -1
- package/dist/fields/Point/index.d.ts.map +1 -1
- package/dist/fields/Point/index.js +1 -0
- package/dist/fields/Point/index.js.map +1 -1
- package/dist/fields/RadioGroup/index.d.ts.map +1 -1
- package/dist/fields/RadioGroup/index.js +34 -39
- package/dist/fields/RadioGroup/index.js.map +1 -1
- package/dist/fields/Relationship/index.d.ts +4 -4
- package/dist/fields/Relationship/index.d.ts.map +1 -1
- package/dist/fields/Relationship/index.js +0 -3
- package/dist/fields/Relationship/index.js.map +1 -1
- package/dist/fields/Select/Input.d.ts +1 -1
- package/dist/fields/Select/Input.d.ts.map +1 -1
- package/dist/fields/Select/Input.js.map +1 -1
- package/dist/fields/Select/index.d.ts.map +1 -1
- package/dist/fields/Select/index.js +0 -2
- package/dist/fields/Select/index.js.map +1 -1
- package/dist/fields/Text/index.d.ts.map +1 -1
- package/dist/fields/Text/index.js +0 -2
- package/dist/fields/Text/index.js.map +1 -1
- package/dist/fields/Text/types.d.ts +1 -1
- package/dist/fields/Text/types.d.ts.map +1 -1
- package/dist/fields/Text/types.js.map +1 -1
- package/dist/fields/Textarea/index.d.ts.map +1 -1
- package/dist/fields/Textarea/index.js +0 -2
- package/dist/fields/Textarea/index.js.map +1 -1
- package/dist/fields/Textarea/types.d.ts +1 -1
- package/dist/fields/Textarea/types.d.ts.map +1 -1
- package/dist/fields/Textarea/types.js.map +1 -1
- package/dist/fields/Upload/Input.d.ts +1 -1
- package/dist/fields/Upload/Input.d.ts.map +1 -1
- package/dist/fields/Upload/Input.js +11 -12
- package/dist/fields/Upload/Input.js.map +1 -1
- package/dist/fields/Upload/index.d.ts.map +1 -1
- package/dist/fields/Upload/index.js +14 -17
- package/dist/fields/Upload/index.js.map +1 -1
- package/dist/providers/Selection/index.d.ts +1 -1
- package/dist/providers/Selection/index.d.ts.map +1 -1
- package/dist/providers/Selection/index.js +43 -29
- package/dist/providers/Selection/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -6
|
@@ -1,9 +1,146 @@
|
|
|
1
|
+
import type { AdminClient } from 'payload';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import './index.scss';
|
|
3
4
|
export declare const CollapsibleField: React.FC<Record<string, unknown> & {
|
|
4
|
-
readonly descriptionProps?: import("payload").FieldDescriptionClientProps<Omit<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
readonly descriptionProps?: import("payload").FieldDescriptionClientProps<(Omit<{
|
|
6
|
+
fields: import("payload").ClientField[];
|
|
7
|
+
} & {
|
|
8
|
+
admin: {
|
|
9
|
+
components: {
|
|
10
|
+
RowLabel: import("payload").MappedComponent;
|
|
11
|
+
} & AdminClient["components"];
|
|
12
|
+
initCollapsed?: boolean;
|
|
13
|
+
} & AdminClient;
|
|
14
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
15
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
16
|
+
fields: import("payload").ClientField[];
|
|
17
|
+
} & {
|
|
18
|
+
admin: {
|
|
19
|
+
components: {
|
|
20
|
+
RowLabel: import("payload").MappedComponent;
|
|
21
|
+
} & AdminClient["components"];
|
|
22
|
+
initCollapsed?: boolean;
|
|
23
|
+
} & AdminClient;
|
|
24
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
25
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>) | (Omit<{
|
|
26
|
+
fields: import("payload").ClientField[];
|
|
27
|
+
} & {
|
|
28
|
+
admin?: {
|
|
29
|
+
initCollapsed?: boolean;
|
|
30
|
+
} & AdminClient;
|
|
31
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
32
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
33
|
+
fields: import("payload").ClientField[];
|
|
34
|
+
} & {
|
|
35
|
+
admin?: {
|
|
36
|
+
initCollapsed?: boolean;
|
|
37
|
+
} & AdminClient;
|
|
38
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
39
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>)>;
|
|
40
|
+
readonly errorProps?: import("payload").FieldErrorClientProps<(Omit<{
|
|
41
|
+
fields: import("payload").ClientField[];
|
|
42
|
+
} & {
|
|
43
|
+
admin: {
|
|
44
|
+
components: {
|
|
45
|
+
RowLabel: import("payload").MappedComponent;
|
|
46
|
+
} & AdminClient["components"];
|
|
47
|
+
initCollapsed?: boolean;
|
|
48
|
+
} & AdminClient;
|
|
49
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
50
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
51
|
+
fields: import("payload").ClientField[];
|
|
52
|
+
} & {
|
|
53
|
+
admin: {
|
|
54
|
+
components: {
|
|
55
|
+
RowLabel: import("payload").MappedComponent;
|
|
56
|
+
} & AdminClient["components"];
|
|
57
|
+
initCollapsed?: boolean;
|
|
58
|
+
} & AdminClient;
|
|
59
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
60
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>) | (Omit<{
|
|
61
|
+
fields: import("payload").ClientField[];
|
|
62
|
+
} & {
|
|
63
|
+
admin?: {
|
|
64
|
+
initCollapsed?: boolean;
|
|
65
|
+
} & AdminClient;
|
|
66
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
67
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
68
|
+
fields: import("payload").ClientField[];
|
|
69
|
+
} & {
|
|
70
|
+
admin?: {
|
|
71
|
+
initCollapsed?: boolean;
|
|
72
|
+
} & AdminClient;
|
|
73
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
74
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>)>;
|
|
75
|
+
readonly field: (Omit<{
|
|
76
|
+
fields: import("payload").ClientField[];
|
|
77
|
+
} & {
|
|
78
|
+
admin: {
|
|
79
|
+
components: {
|
|
80
|
+
RowLabel: import("payload").MappedComponent;
|
|
81
|
+
} & AdminClient["components"];
|
|
82
|
+
initCollapsed?: boolean;
|
|
83
|
+
} & AdminClient;
|
|
84
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
85
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
86
|
+
fields: import("payload").ClientField[];
|
|
87
|
+
} & {
|
|
88
|
+
admin: {
|
|
89
|
+
components: {
|
|
90
|
+
RowLabel: import("payload").MappedComponent;
|
|
91
|
+
} & AdminClient["components"];
|
|
92
|
+
initCollapsed?: boolean;
|
|
93
|
+
} & AdminClient;
|
|
94
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
95
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>) | (Omit<{
|
|
96
|
+
fields: import("payload").ClientField[];
|
|
97
|
+
} & {
|
|
98
|
+
admin?: {
|
|
99
|
+
initCollapsed?: boolean;
|
|
100
|
+
} & AdminClient;
|
|
101
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
102
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
103
|
+
fields: import("payload").ClientField[];
|
|
104
|
+
} & {
|
|
105
|
+
admin?: {
|
|
106
|
+
initCollapsed?: boolean;
|
|
107
|
+
} & AdminClient;
|
|
108
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
109
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>);
|
|
110
|
+
readonly labelProps?: import("payload").FieldLabelClientProps<(Omit<{
|
|
111
|
+
fields: import("payload").ClientField[];
|
|
112
|
+
} & {
|
|
113
|
+
admin: {
|
|
114
|
+
components: {
|
|
115
|
+
RowLabel: import("payload").MappedComponent;
|
|
116
|
+
} & AdminClient["components"];
|
|
117
|
+
initCollapsed?: boolean;
|
|
118
|
+
} & AdminClient;
|
|
119
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
120
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
121
|
+
fields: import("payload").ClientField[];
|
|
122
|
+
} & {
|
|
123
|
+
admin: {
|
|
124
|
+
components: {
|
|
125
|
+
RowLabel: import("payload").MappedComponent;
|
|
126
|
+
} & AdminClient["components"];
|
|
127
|
+
initCollapsed?: boolean;
|
|
128
|
+
} & AdminClient;
|
|
129
|
+
label?: Required<import("payload").FieldBaseClient["label"]>;
|
|
130
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>) | (Omit<{
|
|
131
|
+
fields: import("payload").ClientField[];
|
|
132
|
+
} & {
|
|
133
|
+
admin?: {
|
|
134
|
+
initCollapsed?: boolean;
|
|
135
|
+
} & AdminClient;
|
|
136
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
137
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type"> & Partial<Pick<{
|
|
138
|
+
fields: import("payload").ClientField[];
|
|
139
|
+
} & {
|
|
140
|
+
admin?: {
|
|
141
|
+
initCollapsed?: boolean;
|
|
142
|
+
} & AdminClient;
|
|
143
|
+
label: Required<import("payload").FieldBaseClient["label"]>;
|
|
144
|
+
} & Omit<import("payload").FieldBaseClient, "label" | "name" | "validate"> & Pick<import("payload").CollapsibleField, "type">, "type">>)>;
|
|
8
145
|
} & import("payload").FormFieldBase>;
|
|
9
146
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Collapsible/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Collapsible/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAwD,MAAM,SAAS,CAAA;AAEhG,OAAO,KAAqD,MAAM,OAAO,CAAA;AAazE,OAAO,cAAc,CAAA;AAqKrB,eAAO,MAAM,gBAAgB;;;;;;;;yBACu4kB,CAAC;;;;;;;;;;yBAAD,CAAC;;;;;;;yBAAyH,CAAC;;;;;;;yBAAD,CAAC;;;;;;;;;;;yBAA3H,CAAC;;;;;;;;;;yBAAD,CAAC;;;;;;;yBAAyH,CAAC;;;;;;;yBAAD,CAAC;;;;;;;;;;;yBAA3H,CAAC;;;;;;;;;;yBAAD,CAAC;;;;;;;yBAAyH,CAAC;;;;;;;yBAAD,CAAC;;;;;;;;;;;yBAA3H,CAAC;;;;;;;;;;yBAAD,CAAC;;;;;;;yBAAyH,CAAC;;;;;;;yBAAD,CAAC;;;;oCADv9kB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/DateTime/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA4B,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAG5E,OAAO,KAAsB,MAAM,OAAO,CAAA;AAO1C,OAAO,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/DateTime/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAA4B,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAG5E,OAAO,KAAsB,MAAM,OAAO,CAAA;AAO1C,OAAO,cAAc,CAAA;AAwGrB,eAAO,MAAM,aAAa;;;;;;;oCAAwC,CAAA"}
|
|
@@ -17,7 +17,7 @@ import { RenderComponent } from '../../providers/Config/RenderComponent.js';
|
|
|
17
17
|
import { FieldDescription } from '../FieldDescription/index.js';
|
|
18
18
|
import { FieldError } from '../FieldError/index.js';
|
|
19
19
|
const DateTimeFieldComponent = props => {
|
|
20
|
-
const $ = _c(
|
|
20
|
+
const $ = _c(37);
|
|
21
21
|
const {
|
|
22
22
|
descriptionProps,
|
|
23
23
|
errorProps,
|
|
@@ -31,7 +31,6 @@ const DateTimeFieldComponent = props => {
|
|
|
31
31
|
name,
|
|
32
32
|
_path: pathFromProps,
|
|
33
33
|
admin: t1,
|
|
34
|
-
label,
|
|
35
34
|
required
|
|
36
35
|
} = t0;
|
|
37
36
|
let t2;
|
|
@@ -112,43 +111,43 @@ const DateTimeFieldComponent = props => {
|
|
|
112
111
|
}
|
|
113
112
|
const t9 = t8.join(" ");
|
|
114
113
|
let t10;
|
|
115
|
-
if ($[12] !== style || $[13] !== width || $[14] !== field || $[15] !== labelProps || $[16] !==
|
|
114
|
+
if ($[12] !== style || $[13] !== width || $[14] !== field || $[15] !== labelProps || $[16] !== path || $[17] !== errorProps || $[18] !== disabled || $[19] !== setValue || $[20] !== placeholder || $[21] !== i18n || $[22] !== datePickerProps || $[23] !== value_0 || $[24] !== descriptionProps || $[25] !== description || $[26] !== t9) {
|
|
116
115
|
let t11;
|
|
117
|
-
if ($[
|
|
116
|
+
if ($[28] !== labelProps) {
|
|
118
117
|
t11 = labelProps || {};
|
|
119
|
-
$[
|
|
120
|
-
$[
|
|
118
|
+
$[28] = labelProps;
|
|
119
|
+
$[29] = t11;
|
|
121
120
|
} else {
|
|
122
|
-
t11 = $[
|
|
121
|
+
t11 = $[29];
|
|
123
122
|
}
|
|
124
123
|
let t12;
|
|
125
|
-
if ($[
|
|
124
|
+
if ($[30] !== errorProps) {
|
|
126
125
|
t12 = errorProps || {};
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
126
|
+
$[30] = errorProps;
|
|
127
|
+
$[31] = t12;
|
|
129
128
|
} else {
|
|
130
|
-
t12 = $[
|
|
129
|
+
t12 = $[31];
|
|
131
130
|
}
|
|
132
131
|
let t13;
|
|
133
|
-
if ($[
|
|
132
|
+
if ($[32] !== disabled || $[33] !== setValue) {
|
|
134
133
|
t13 = incomingDate => {
|
|
135
134
|
if (!disabled) {
|
|
136
135
|
setValue(incomingDate?.toISOString() || null);
|
|
137
136
|
}
|
|
138
137
|
};
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
138
|
+
$[32] = disabled;
|
|
139
|
+
$[33] = setValue;
|
|
140
|
+
$[34] = t13;
|
|
142
141
|
} else {
|
|
143
|
-
t13 = $[
|
|
142
|
+
t13 = $[34];
|
|
144
143
|
}
|
|
145
144
|
let t14;
|
|
146
|
-
if ($[
|
|
145
|
+
if ($[35] !== descriptionProps) {
|
|
147
146
|
t14 = descriptionProps || {};
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
147
|
+
$[35] = descriptionProps;
|
|
148
|
+
$[36] = t14;
|
|
150
149
|
} else {
|
|
151
|
-
t14 = $[
|
|
150
|
+
t14 = $[36];
|
|
152
151
|
}
|
|
153
152
|
t10 = _jsxs("div", {
|
|
154
153
|
className: t9,
|
|
@@ -159,8 +158,6 @@ const DateTimeFieldComponent = props => {
|
|
|
159
158
|
children: [_jsx(FieldLabel, {
|
|
160
159
|
field,
|
|
161
160
|
Label: field?.admin?.components?.Label,
|
|
162
|
-
label,
|
|
163
|
-
required,
|
|
164
161
|
...t11
|
|
165
162
|
}), _jsxs("div", {
|
|
166
163
|
className: `${fieldBaseClass}__wrap`,
|
|
@@ -192,22 +189,20 @@ const DateTimeFieldComponent = props => {
|
|
|
192
189
|
$[13] = width;
|
|
193
190
|
$[14] = field;
|
|
194
191
|
$[15] = labelProps;
|
|
195
|
-
$[16] =
|
|
196
|
-
$[17] =
|
|
197
|
-
$[18] =
|
|
198
|
-
$[19] =
|
|
199
|
-
$[20] =
|
|
200
|
-
$[21] =
|
|
201
|
-
$[22] =
|
|
202
|
-
$[23] =
|
|
203
|
-
$[24] =
|
|
204
|
-
$[25] =
|
|
205
|
-
$[26] =
|
|
206
|
-
$[27] =
|
|
207
|
-
$[28] = t9;
|
|
208
|
-
$[29] = t10;
|
|
192
|
+
$[16] = path;
|
|
193
|
+
$[17] = errorProps;
|
|
194
|
+
$[18] = disabled;
|
|
195
|
+
$[19] = setValue;
|
|
196
|
+
$[20] = placeholder;
|
|
197
|
+
$[21] = i18n;
|
|
198
|
+
$[22] = datePickerProps;
|
|
199
|
+
$[23] = value_0;
|
|
200
|
+
$[24] = descriptionProps;
|
|
201
|
+
$[25] = description;
|
|
202
|
+
$[26] = t9;
|
|
203
|
+
$[27] = t10;
|
|
209
204
|
} else {
|
|
210
|
-
t10 = $[
|
|
205
|
+
t10 = $[27];
|
|
211
206
|
}
|
|
212
207
|
return t10;
|
|
213
208
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useCallback","DatePickerField","useField","useTranslation","FieldLabel","fieldBaseClass","baseClass","useFieldProps","withCondition","RenderComponent","FieldDescription","FieldError","DateTimeFieldComponent","props","$","descriptionProps","errorProps","field","t0","labelProps","readOnly","readOnlyFromTopLevelProps","validate","name","_path","pathFromProps","admin","t1","
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useCallback","DatePickerField","useField","useTranslation","FieldLabel","fieldBaseClass","baseClass","useFieldProps","withCondition","RenderComponent","FieldDescription","FieldError","DateTimeFieldComponent","props","$","descriptionProps","errorProps","field","t0","labelProps","readOnly","readOnlyFromTopLevelProps","validate","name","_path","pathFromProps","admin","t1","required","t2","undefined","className","date","datePickerProps","description","placeholder","readOnlyFromAdmin","style","width","readOnlyFromProps","i18n","t3","value","options","memoizedValidate","path","pathFromContext","readOnlyFromContext","t4","t5","formInitializing","formProcessing","setValue","showError","value_0","disabled","t6","t7","t8","filter","Boolean","t9","join","t10","t11","t12","t13","incomingDate","toISOString","t14","_jsxs","children","_jsx","Label","components","id","replace","CustomError","Error","mappedComponent","beforeInput","onChange","afterInput","Description","DateTimeField"],"sources":["../../../src/fields/DateTime/index.tsx"],"sourcesContent":["'use client'\nimport type { DateFieldClientComponent, DateFieldValidation } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback } from 'react'\n\nimport { DatePickerField } from '../../elements/DatePicker/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport './index.scss'\n\nconst baseClass = 'date-time-field'\n\nimport { useFieldProps } from '../../forms/FieldPropsProvider/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { RenderComponent } from '../../providers/Config/RenderComponent.js'\nimport { FieldDescription } from '../FieldDescription/index.js'\nimport { FieldError } from '../FieldError/index.js'\n\nconst DateTimeFieldComponent: DateFieldClientComponent = (props) => {\n const {\n descriptionProps,\n errorProps,\n field,\n field: {\n name,\n _path: pathFromProps,\n admin: {\n className,\n date: datePickerProps,\n description,\n placeholder,\n readOnly: readOnlyFromAdmin,\n style,\n width,\n } = {},\n label,\n required,\n },\n labelProps,\n readOnly: readOnlyFromTopLevelProps,\n validate,\n } = props\n const readOnlyFromProps = readOnlyFromTopLevelProps || readOnlyFromAdmin\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: DateFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const { path: pathFromContext, readOnly: readOnlyFromContext } = useFieldProps()\n\n const { formInitializing, formProcessing, path, setValue, showError, value } = useField<Date>({\n path: pathFromContext ?? pathFromProps ?? name,\n validate: memoizedValidate,\n })\n\n const disabled = readOnlyFromProps || readOnlyFromContext || formProcessing || formInitializing\n\n return (\n <div\n className={[\n fieldBaseClass,\n baseClass,\n className,\n showError && `${baseClass}--has-error`,\n disabled && 'read-only',\n ]\n .filter(Boolean)\n .join(' ')}\n style={{\n ...style,\n width,\n }}\n >\n <FieldLabel field={field} Label={field?.admin?.components?.Label} {...(labelProps || {})} />\n <div className={`${fieldBaseClass}__wrap`} id={`field-${path.replace(/\\./g, '__')}`}>\n <FieldError\n CustomError={field?.admin?.components?.Error}\n field={field}\n path={path}\n {...(errorProps || {})}\n />\n <RenderComponent mappedComponent={field?.admin?.components?.beforeInput} />\n <DatePickerField\n {...datePickerProps}\n onChange={(incomingDate) => {\n if (!disabled) {\n setValue(incomingDate?.toISOString() || null)\n }\n }}\n placeholder={getTranslation(placeholder, i18n)}\n readOnly={disabled}\n value={value}\n />\n <RenderComponent mappedComponent={field?.admin?.components?.afterInput} />\n </div>\n <FieldDescription\n Description={field?.admin?.components?.Description}\n description={description}\n field={field}\n {...(descriptionProps || {})}\n />\n </div>\n )\n}\n\nexport const DateTimeField = withCondition(DateTimeFieldComponent)\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAGA,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,IAASC,WAAW,QAAQ;AAEnC,SAASC,eAAe,QAAQ;AAChC,SAASC,QAAQ,QAAQ;AACzB,SAASC,cAAc,QAAQ;AAC/B,SAASC,UAAU,QAAQ;AAC3B,SAASC,cAAc,QAAQ;AAC/B,OAAO;AAEP,MAAMC,SAAA,GAAY;AAElB,SAASC,aAAa,QAAQ;AAC9B,SAASC,aAAa,QAAQ;AAC9B,SAASC,eA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":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Email/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAGhB,OAAO,KAAsB,MAAM,OAAO,CAAA;AAW1C,OAAO,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/Email/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAGV,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAGhB,OAAO,KAAsB,MAAM,OAAO,CAAA;AAW1C,OAAO,cAAc,CAAA;AA8FrB,eAAO,MAAM,UAAU;;;;;;;;oCAAqC,CAAA"}
|
|
@@ -15,7 +15,7 @@ import { FieldLabel } from '../FieldLabel/index.js';
|
|
|
15
15
|
import { fieldBaseClass } from '../shared/index.js';
|
|
16
16
|
import './index.scss';
|
|
17
17
|
const EmailFieldComponent = props => {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(37);
|
|
19
19
|
const {
|
|
20
20
|
autoComplete,
|
|
21
21
|
descriptionProps,
|
|
@@ -38,7 +38,6 @@ const EmailFieldComponent = props => {
|
|
|
38
38
|
name,
|
|
39
39
|
_path: pathFromProps,
|
|
40
40
|
admin: t2,
|
|
41
|
-
label,
|
|
42
41
|
required
|
|
43
42
|
} = t1;
|
|
44
43
|
let t3;
|
|
@@ -118,30 +117,30 @@ const EmailFieldComponent = props => {
|
|
|
118
117
|
}
|
|
119
118
|
const t10 = t9.join(" ");
|
|
120
119
|
let t11;
|
|
121
|
-
if ($[14] !== style || $[15] !== width || $[16] !== field || $[17] !== labelProps || $[18] !==
|
|
120
|
+
if ($[14] !== style || $[15] !== width || $[16] !== field || $[17] !== labelProps || $[18] !== errorProps || $[19] !== path || $[20] !== placeholder || $[21] !== i18n || $[22] !== value_0 || $[23] !== autoComplete || $[24] !== disabled || $[25] !== setValue || $[26] !== required || $[27] !== descriptionProps || $[28] !== description || $[29] !== t10) {
|
|
122
121
|
let t12;
|
|
123
|
-
if ($[
|
|
122
|
+
if ($[31] !== labelProps) {
|
|
124
123
|
t12 = labelProps || {};
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
124
|
+
$[31] = labelProps;
|
|
125
|
+
$[32] = t12;
|
|
127
126
|
} else {
|
|
128
|
-
t12 = $[
|
|
127
|
+
t12 = $[32];
|
|
129
128
|
}
|
|
130
129
|
let t13;
|
|
131
|
-
if ($[
|
|
130
|
+
if ($[33] !== errorProps) {
|
|
132
131
|
t13 = errorProps || {};
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
132
|
+
$[33] = errorProps;
|
|
133
|
+
$[34] = t13;
|
|
135
134
|
} else {
|
|
136
|
-
t13 = $[
|
|
135
|
+
t13 = $[34];
|
|
137
136
|
}
|
|
138
137
|
let t14;
|
|
139
|
-
if ($[
|
|
138
|
+
if ($[35] !== descriptionProps) {
|
|
140
139
|
t14 = descriptionProps || {};
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
140
|
+
$[35] = descriptionProps;
|
|
141
|
+
$[36] = t14;
|
|
143
142
|
} else {
|
|
144
|
-
t14 = $[
|
|
143
|
+
t14 = $[36];
|
|
145
144
|
}
|
|
146
145
|
t11 = _jsxs("div", {
|
|
147
146
|
className: t10,
|
|
@@ -152,8 +151,6 @@ const EmailFieldComponent = props => {
|
|
|
152
151
|
children: [_jsx(FieldLabel, {
|
|
153
152
|
field,
|
|
154
153
|
Label: field?.admin?.components?.Label,
|
|
155
|
-
label,
|
|
156
|
-
required,
|
|
157
154
|
...t12
|
|
158
155
|
}), _jsxs("div", {
|
|
159
156
|
className: `${fieldBaseClass}__wrap`,
|
|
@@ -188,22 +185,21 @@ const EmailFieldComponent = props => {
|
|
|
188
185
|
$[15] = width;
|
|
189
186
|
$[16] = field;
|
|
190
187
|
$[17] = labelProps;
|
|
191
|
-
$[18] =
|
|
192
|
-
$[19] =
|
|
193
|
-
$[20] =
|
|
194
|
-
$[21] =
|
|
195
|
-
$[22] =
|
|
196
|
-
$[23] =
|
|
197
|
-
$[24] =
|
|
198
|
-
$[25] =
|
|
199
|
-
$[26] =
|
|
200
|
-
$[27] =
|
|
201
|
-
$[28] =
|
|
202
|
-
$[29] =
|
|
203
|
-
$[30] =
|
|
204
|
-
$[31] = t11;
|
|
188
|
+
$[18] = errorProps;
|
|
189
|
+
$[19] = path;
|
|
190
|
+
$[20] = placeholder;
|
|
191
|
+
$[21] = i18n;
|
|
192
|
+
$[22] = value_0;
|
|
193
|
+
$[23] = autoComplete;
|
|
194
|
+
$[24] = disabled;
|
|
195
|
+
$[25] = setValue;
|
|
196
|
+
$[26] = required;
|
|
197
|
+
$[27] = descriptionProps;
|
|
198
|
+
$[28] = description;
|
|
199
|
+
$[29] = t10;
|
|
200
|
+
$[30] = t11;
|
|
205
201
|
} else {
|
|
206
|
-
t11 = $[
|
|
202
|
+
t11 = $[30];
|
|
207
203
|
}
|
|
208
204
|
return t11;
|
|
209
205
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useCallback","useFieldProps","useField","withCondition","RenderComponent","useTranslation","FieldDescription","FieldError","FieldLabel","fieldBaseClass","EmailFieldComponent","props","$","autoComplete","descriptionProps","errorProps","field","t0","labelProps","readOnly","readOnlyFromTopLevelProps","validate","t1","undefined","name","_path","pathFromProps","admin","t2","
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useCallback","useFieldProps","useField","withCondition","RenderComponent","useTranslation","FieldDescription","FieldError","FieldLabel","fieldBaseClass","EmailFieldComponent","props","$","autoComplete","descriptionProps","errorProps","field","t0","labelProps","readOnly","readOnlyFromTopLevelProps","validate","t1","undefined","name","_path","pathFromProps","admin","t2","required","t3","readOnlyFromAdmin","className","description","placeholder","style","width","readOnlyFromProps","i18n","t4","value","options","memoizedValidate","path","pathFromContext","readOnlyFromContext","t5","t6","formInitializing","formProcessing","setValue","showError","value_0","disabled","t7","t8","t9","filter","Boolean","t10","join","t11","t12","t13","t14","_jsxs","children","_jsx","Label","components","CustomError","Error","mappedComponent","beforeInput","id","replace","onChange","type","afterInput","Description","EmailField"],"sources":["../../../src/fields/Email/index.tsx"],"sourcesContent":["'use client'\nimport type {\n EmailFieldClientComponent,\n EmailFieldClientProps,\n EmailFieldValidation,\n} from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React, { useCallback } from 'react'\n\nimport { useFieldProps } from '../../forms/FieldPropsProvider/index.js'\nimport { useField } from '../../forms/useField/index.js'\nimport { withCondition } from '../../forms/withCondition/index.js'\nimport { RenderComponent } from '../../providers/Config/RenderComponent.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { FieldDescription } from '../FieldDescription/index.js'\nimport { FieldError } from '../FieldError/index.js'\nimport { FieldLabel } from '../FieldLabel/index.js'\nimport { fieldBaseClass } from '../shared/index.js'\nimport './index.scss'\n\nconst EmailFieldComponent: EmailFieldClientComponent = (props) => {\n const {\n autoComplete,\n descriptionProps,\n errorProps,\n field: {\n name,\n _path: pathFromProps,\n admin: {\n readOnly: readOnlyFromAdmin,\n\n className,\n description,\n placeholder,\n style,\n width,\n } = {} as EmailFieldClientProps['field']['admin'],\n label,\n required,\n } = {} as EmailFieldClientProps['field'],\n field,\n labelProps,\n readOnly: readOnlyFromTopLevelProps,\n validate,\n } = props\n\n const readOnlyFromProps = readOnlyFromTopLevelProps || readOnlyFromAdmin\n\n const { i18n } = useTranslation()\n\n const memoizedValidate: EmailFieldValidation = useCallback(\n (value, options) => {\n if (typeof validate === 'function') {\n return validate(value, { ...options, required })\n }\n },\n [validate, required],\n )\n\n const { path: pathFromContext, readOnly: readOnlyFromContext } = useFieldProps()\n\n const { formInitializing, formProcessing, path, setValue, showError, value } = useField({\n path: pathFromContext ?? pathFromProps ?? name,\n validate: memoizedValidate,\n })\n\n const disabled = readOnlyFromProps || readOnlyFromContext || formProcessing || formInitializing\n\n return (\n <div\n className={[fieldBaseClass, 'email', className, showError && 'error', disabled && 'read-only']\n .filter(Boolean)\n .join(' ')}\n style={{\n ...style,\n width,\n }}\n >\n <FieldLabel field={field} Label={field?.admin?.components?.Label} {...(labelProps || {})} />\n <div className={`${fieldBaseClass}__wrap`}>\n <FieldError\n CustomError={field?.admin?.components?.Error}\n field={field}\n path={path}\n {...(errorProps || {})}\n />\n <RenderComponent mappedComponent={field?.admin?.components?.beforeInput} />\n {/* disable eslint here because the label is dynamic */}\n {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}\n <input\n autoComplete={autoComplete}\n disabled={disabled}\n id={`field-${path.replace(/\\./g, '__')}`}\n name={path}\n onChange={setValue}\n placeholder={getTranslation(placeholder, i18n)}\n required={required}\n type=\"email\"\n value={(value as string) || ''}\n />\n <RenderComponent mappedComponent={field?.admin?.components?.afterInput} />\n </div>\n <FieldDescription\n Description={field?.admin?.components?.Description}\n description={description}\n field={field}\n {...(descriptionProps || {})}\n />\n </div>\n )\n}\n\nexport const EmailField = withCondition(EmailFieldComponent)\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAOA,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,IAASC,WAAW,QAAQ;AAEnC,SAASC,aAAa,QAAQ;AAC9B,SAASC,QAAQ,QAAQ;AACzB,SAASC,aAAa,QAAQ;AAC9B,SAASC,eAAe,QAAQ;AAChC,SAASC,cAAc,QAAQ;AAC/B,SAASC,gBAAgB,QAAQ;AACjC,SAASC,UAAU,QAAQ;AAC3B,SAASC,UAAU,QAAQ;AAC3B,SAASC,cAAc,QAAQ;AAC/B,OAAO;AAEP,MAAMC,mBAAA,GAAiDC,KAAA;EAAA,MAAAC,CAAA,GAAAf,EAAA;EACrD;IAAAgB,YAAA;IAAAC,gBAAA;IAAAC,UAAA;IAAAC,KAAA,EAAAC,EAAA;IAAAD,KAAA;IAAAE,UAAA;IAAAC,QAAA,EAAAC,yBAAA;IAAAC;EAAA,IAuBIV,KAAA;EAAA,IAAAW,EA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EAAAE,KAAA;UAAAvD,KAAA;UAAA2B,IAAA;UAAA,GAGRoB;QAAgB,C,GAEvBI,IAAA,CAAA/D,eAAA;UAAAoE,eAAA,EAAkCxD,KAAA,EAAAW,KAAA,EAAA0C,UAAA,EAAAI;QAAA,C,GAGlCN,IAAA,CAAC;UAAAtD,YAAA;UAAAwC,QAAA;UAAAqB,EAAA,EAGK,SAAS/B,IAAA,CAAAgC,OAAA,QAAoB,OAAO;UAAAnD,IAAA,EAClCmB,IAAA;UAAAiC,QAAA,EACI1B,QAAA;UAAAhB,WAAA,EACGpC,cAAA,CAAeoC,WAAA,EAAaI,IAAA;UAAAT,QAAA;UAAAgD,IAAA,EAEpC;UAAArC,KAAA,EACEA,OAAC,IAAoB;QAAA,C,GAE9B2B,IAAA,CAAA/D,eAAA;UAAAoE,eAAA,EAAkCxD,KAAA,EAAAW,KAAA,EAAA0C,UAAA,EAAAS;QAAA,C;UAEpCX,IAAA,CAAA7D,gBAAA;QAAAyE,WAAA,EACe/D,KAAA,EAAAW,KAAA,EAAA0C,UAAA,EAAAU,WAAA;QAAA9C,WAAA;QAAAjB,KAAA;QAAA,GAGRgD;MAAsB,C;;;;;;;;;;;;;;;;;;;;;;SArC/BH,G;CAyCJ;AAEA,OAAO,MAAMmB,UAAA,GAAa7E,aAAA,CAAcO,mBAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/FieldLabel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/FieldLabel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,yBAAyB,EAAkC,MAAM,SAAS,CAAA;AAWxF,OAAO,cAAc,CAAA;AA8BrB,eAAO,MAAM,UAAU,EAAE,yBAwBxB,CAAA"}
|
|
@@ -86,6 +86,8 @@ export const FieldLabel = props => {
|
|
|
86
86
|
Label,
|
|
87
87
|
...rest
|
|
88
88
|
} = props;
|
|
89
|
+
// Don't get `Label` from `field.admin.components.Label` here because
|
|
90
|
+
// this will cause an infinite loop when threading field through custom usages of `FieldLabel`
|
|
89
91
|
if (Label) {
|
|
90
92
|
return /*#__PURE__*/_jsx(RenderComponent, {
|
|
91
93
|
clientProps: rest,
|
|
@@ -93,7 +95,11 @@ export const FieldLabel = props => {
|
|
|
93
95
|
});
|
|
94
96
|
}
|
|
95
97
|
return /*#__PURE__*/_jsx(DefaultFieldLabel, {
|
|
96
|
-
...rest
|
|
98
|
+
...rest,
|
|
99
|
+
label: typeof props?.label !== 'undefined' ? props.label : props?.field && 'label' in props.field && props.field.label // type assertion needed for `row` fields
|
|
100
|
+
,
|
|
101
|
+
|
|
102
|
+
required: typeof props.required !== 'undefined' ? props.required : props?.field && 'required' in props.field && props.field?.required // type assertion needed for `group` fields
|
|
97
103
|
});
|
|
98
104
|
};
|
|
99
105
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useFieldProps","useForm","RenderComponent","useEditDepth","useTranslation","generateFieldID","DefaultFieldLabel","props","$","as","t0","htmlFor","htmlForFromProps","label","labelFromProps","required","t1","unstyled","t2","Element","undefined","uuid","path","editDepth","t3","i18n","t4","t5","t6","_jsx","className","children","_jsxs","FieldLabel","Label","rest","clientProps","mappedComponent"],"sources":["../../../src/fields/FieldLabel/index.tsx"],"sourcesContent":["'use client'\n\nimport type { FieldLabelClientComponent, GenericLabelProps } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { useFieldProps } from '../../forms/FieldPropsProvider/index.js'\nimport { useForm } from '../../forms/Form/context.js'\nimport { RenderComponent } from '../../providers/Config/RenderComponent.js'\nimport { useEditDepth } from '../../providers/EditDepth/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { generateFieldID } from '../../utilities/generateFieldID.js'\nimport './index.scss'\n\nconst DefaultFieldLabel: React.FC<GenericLabelProps> = (props) => {\n const {\n as: Element = 'label',\n htmlFor: htmlForFromProps,\n label: labelFromProps,\n required = false,\n unstyled = false,\n } = props\n\n const { uuid } = useForm()\n const { path } = useFieldProps()\n const editDepth = useEditDepth()\n const htmlFor = htmlForFromProps || generateFieldID(path, editDepth, uuid)\n\n const { i18n } = useTranslation()\n\n if (labelFromProps) {\n return (\n <Element className={`field-label ${unstyled ? 'unstyled' : ''}`} htmlFor={htmlFor}>\n {getTranslation(labelFromProps, i18n)}\n {required && !unstyled && <span className=\"required\">*</span>}\n </Element>\n )\n }\n\n return null\n}\n\nexport const FieldLabel: FieldLabelClientComponent = (props) => {\n const { Label, ...rest } = props\n\n if (Label) {\n return <RenderComponent clientProps={rest} mappedComponent={Label} />\n }\n\n return <DefaultFieldLabel
|
|
1
|
+
{"version":3,"file":"index.js","names":["c","_c","getTranslation","React","useFieldProps","useForm","RenderComponent","useEditDepth","useTranslation","generateFieldID","DefaultFieldLabel","props","$","as","t0","htmlFor","htmlForFromProps","label","labelFromProps","required","t1","unstyled","t2","Element","undefined","uuid","path","editDepth","t3","i18n","t4","t5","t6","_jsx","className","children","_jsxs","FieldLabel","Label","rest","clientProps","mappedComponent","field"],"sources":["../../../src/fields/FieldLabel/index.tsx"],"sourcesContent":["'use client'\n\nimport type { FieldLabelClientComponent, GenericLabelProps, StaticLabel } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { useFieldProps } from '../../forms/FieldPropsProvider/index.js'\nimport { useForm } from '../../forms/Form/context.js'\nimport { RenderComponent } from '../../providers/Config/RenderComponent.js'\nimport { useEditDepth } from '../../providers/EditDepth/index.js'\nimport { useTranslation } from '../../providers/Translation/index.js'\nimport { generateFieldID } from '../../utilities/generateFieldID.js'\nimport './index.scss'\n\nconst DefaultFieldLabel: React.FC<GenericLabelProps> = (props) => {\n const {\n as: Element = 'label',\n htmlFor: htmlForFromProps,\n label: labelFromProps,\n required = false,\n unstyled = false,\n } = props\n\n const { uuid } = useForm()\n const { path } = useFieldProps()\n const editDepth = useEditDepth()\n const htmlFor = htmlForFromProps || generateFieldID(path, editDepth, uuid)\n\n const { i18n } = useTranslation()\n\n if (labelFromProps) {\n return (\n <Element className={`field-label ${unstyled ? 'unstyled' : ''}`} htmlFor={htmlFor}>\n {getTranslation(labelFromProps, i18n)}\n {required && !unstyled && <span className=\"required\">*</span>}\n </Element>\n )\n }\n\n return null\n}\n\nexport const FieldLabel: FieldLabelClientComponent = (props) => {\n const { Label, ...rest } = props\n\n // Don't get `Label` from `field.admin.components.Label` here because\n // this will cause an infinite loop when threading field through custom usages of `FieldLabel`\n if (Label) {\n return <RenderComponent clientProps={rest} mappedComponent={Label} />\n }\n\n return (\n <DefaultFieldLabel\n {...rest}\n label={\n typeof props?.label !== 'undefined'\n ? props.label\n : props?.field && 'label' in props.field && (props.field.label as StaticLabel) // type assertion needed for `row` fields\n }\n required={\n typeof props.required !== 'undefined'\n ? props.required\n : props?.field && 'required' in props.field && (props.field?.required as boolean) // type assertion needed for `group` fields\n }\n />\n )\n}\n"],"mappings":"AAAA;;AAAA,SAAAA,CAAA,IAAAC,EAAA;;AAIA,SAASC,cAAc,QAAQ;AAC/B,OAAOC,KAAA,MAAW;AAElB,SAASC,aAAa,QAAQ;AAC9B,SAASC,OAAO,QAAQ;AACxB,SAASC,eAAe,QAAQ;AAChC,SAASC,YAAY,QAAQ;AAC7B,SAASC,cAAc,QAAQ;AAC/B,SAASC,eAAe,QAAQ;AAChC,OAAO;AAEP,MAAMC,iBAAA,GAAiDC,KAAA;EAAA,MAAAC,CAAA,GAAAX,EAAA;EACrD;IAAAY,EAAA,EAAAC,EAAA;IAAAC,OAAA,EAAAC,gBAAA;IAAAC,KAAA,EAAAC,cAAA;IAAAC,QAAA,EAAAC,EAAA;IAAAC,QAAA,EAAAC;EAAA,IAMIX,KAAA;EALE,MAAAY,OAAA,GAAA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;MAFvDJ,EAAA,GAAAK,KAAA,CAACb,OAAA;QAAAW,SAAA,EAAmBJ,EAA2C;QAAAf,OAAA;QAAAoB,QAAA,GAC5DjC,cAAA,CAAegB,cAAA,EAAgBW,IAAA,GAC/BG,E;;;;;;;;;;;;;WAFHD,E;;;CAQN;AAEA,OAAO,MAAMM,UAAA,GAAyC1B,KAAA;EACpD,MAAM;IAAE2B,KAAK;IAAE,GAAGC;EAAA,CAAM,GAAG5B,KAAA;EAE3B;EACA;EACA,IAAI2B,KAAA,EAAO;IACT,oBAAOL,IAAA,CAAC3B,eAAA;MAAgBkC,WAAA,EAAaD,IAAA;MAAME,eAAA,EAAiBH;;EAC9D;EAEA,oBACEL,IAAA,CAACvB,iBAAA;IACE,GAAG6B,IAAI;IACRtB,KAAA,EACE,OAAON,KAAA,EAAOM,KAAA,KAAU,cACpBN,KAAA,CAAMM,KAAK,GACXN,KAAA,EAAO+B,KAAA,IAAS,WAAW/B,KAAA,CAAM+B,KAAK,IAAK/B,KAAA,CAAM+B,KAAK,CAACzB,KAAK,CAAiB;IAAA;;IAEnFE,QAAA,EACE,OAAOR,KAAA,CAAMQ,QAAQ,KAAK,cACtBR,KAAA,CAAMQ,QAAQ,GACdR,KAAA,EAAO+B,KAAA,IAAS,cAAc/B,KAAA,CAAM+B,KAAK,IAAK/B,KAAA,CAAM+B,KAAK,EAAEvB,QAAA,CAAqB;;AAI5F","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/JSON/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAO/D,OAAO,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fields/JSON/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAO/D,OAAO,cAAc,CAAA;AA0JrB,eAAO,MAAM,SAAS;;;;;;;oCAAoC,CAAA"}
|
|
@@ -110,8 +110,6 @@ const JSONFieldComponent = props => {
|
|
|
110
110
|
children: [/*#__PURE__*/_jsx(FieldLabel, {
|
|
111
111
|
field: field,
|
|
112
112
|
Label: field?.admin?.components?.Label,
|
|
113
|
-
label: label,
|
|
114
|
-
required: required,
|
|
115
113
|
...(labelProps || {})
|
|
116
114
|
}), /*#__PURE__*/_jsxs("div", {
|
|
117
115
|
className: `${fieldBaseClass}__wrap`,
|