@dev-crew-berlin/enter-js-utils 0.14.1 → 0.15.0
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/models/attendee.d.ts +0 -3
- package/dist/models/attendee.js +1 -3
- package/dist/models/field-group.d.ts +40 -40
- package/dist/models/field.d.ts +29 -29
- package/dist/models/field.js +1 -1
- package/dist/models/user.d.ts +0 -2
- package/dist/models/user.js +1 -2
- package/dist/ui/companion-info.stories.js +1 -2
- package/dist/ui/guest-card.stories.js +2 -4
- package/dist/ui/icons/settings-icon.d.ts +6 -0
- package/dist/ui/icons/settings-icon.js +16 -0
- package/dist/ui/icons/settings-icon.stories.d.ts +12 -0
- package/dist/ui/icons/settings-icon.stories.js +20 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -0
- package/package.json +1 -1
|
@@ -6,7 +6,6 @@ export declare type AttendeeJSON = {
|
|
|
6
6
|
id: string;
|
|
7
7
|
auth: string | null;
|
|
8
8
|
userdata: Record<string, string>;
|
|
9
|
-
metadata: Record<string, string>;
|
|
10
9
|
tags: string[] | null;
|
|
11
10
|
language: string | null;
|
|
12
11
|
time: Date;
|
|
@@ -29,7 +28,6 @@ export declare class Attendee {
|
|
|
29
28
|
id: string;
|
|
30
29
|
auth: string | null;
|
|
31
30
|
userdata: Record<string, FieldValue>;
|
|
32
|
-
metadata: Record<string, string>;
|
|
33
31
|
tags: string[] | null;
|
|
34
32
|
language: string | null;
|
|
35
33
|
time: Date;
|
|
@@ -68,7 +66,6 @@ export declare const rawAttendee: import("fefe").Validator<import("fefe").Object
|
|
|
68
66
|
id: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
69
67
|
auth: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
70
68
|
userdata: (value: unknown) => import("fefe").Result<import("./_helpers").Dictionary<string | number | string[] | null>, import("fefe").FefeError>;
|
|
71
|
-
metadata: (value: unknown) => import("fefe").Result<import("./_helpers").Dictionary<string>, import("fefe").FefeError>;
|
|
72
69
|
tags: import("fefe").Validator<string[] | null, import("fefe").FefeError>;
|
|
73
70
|
language: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
74
71
|
time: import("fefe").Pipe<unknown, Date>;
|
package/dist/models/attendee.js
CHANGED
|
@@ -2,13 +2,12 @@ import { array, boolean, defaultTo, enumerate, number, object, parseDate, pipe,
|
|
|
2
2
|
import { apiValidator, success } from '../lib';
|
|
3
3
|
import { Checkins, checkins } from './checkins';
|
|
4
4
|
import { rawFieldValue } from './field-value';
|
|
5
|
-
import {
|
|
5
|
+
import { maybe, dictionary, constant } from './_helpers';
|
|
6
6
|
export class Attendee {
|
|
7
7
|
constructor(rawAttendee) {
|
|
8
8
|
this.id = rawAttendee.id;
|
|
9
9
|
this.auth = rawAttendee.auth;
|
|
10
10
|
this.userdata = rawAttendee.userdata;
|
|
11
|
-
this.metadata = rawAttendee.metadata;
|
|
12
11
|
this.tags = rawAttendee.tags;
|
|
13
12
|
this.language = rawAttendee.language;
|
|
14
13
|
this.time = rawAttendee.time;
|
|
@@ -80,7 +79,6 @@ export const rawAttendee = object({
|
|
|
80
79
|
id: string(),
|
|
81
80
|
auth: maybe(string()),
|
|
82
81
|
userdata: dictionary(rawFieldValue),
|
|
83
|
-
metadata: dictionary(toString),
|
|
84
82
|
tags: maybe(array(string())),
|
|
85
83
|
language: maybe(string()),
|
|
86
84
|
time: pipe(string()).pipe(parseDate({
|
|
@@ -22,7 +22,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
22
22
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
23
23
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
24
24
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
25
|
-
|
|
25
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
26
26
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
27
27
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
28
28
|
}> | import("fefe").ObjectResult<{
|
|
@@ -30,7 +30,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
30
30
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
31
31
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
32
32
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
33
|
-
|
|
33
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
34
34
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
35
35
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
36
36
|
}> | import("fefe").ObjectResult<{
|
|
@@ -38,7 +38,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
38
38
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
39
39
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
40
40
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
41
|
-
|
|
41
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
42
42
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
43
43
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
44
44
|
}> | import("fefe").ObjectResult<{
|
|
@@ -46,7 +46,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
46
46
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
47
47
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
48
48
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
49
|
-
|
|
49
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
50
50
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
51
51
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
52
52
|
}> | import("fefe").ObjectResult<{
|
|
@@ -54,7 +54,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
54
54
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
55
55
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
56
56
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
57
|
-
|
|
57
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
58
58
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
59
59
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
60
60
|
}> | import("fefe").ObjectResult<{
|
|
@@ -66,7 +66,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
66
66
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
67
67
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
68
68
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
69
|
-
|
|
69
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
70
70
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
71
71
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
72
72
|
}> | import("fefe").ObjectResult<{
|
|
@@ -75,7 +75,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
75
75
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
76
76
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
77
77
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
78
|
-
|
|
78
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
79
79
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
80
80
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
81
81
|
}> | import("fefe").ObjectResult<{
|
|
@@ -87,7 +87,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
87
87
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
88
88
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
89
89
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
90
|
-
|
|
90
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
91
91
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
92
92
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
93
93
|
}> | import("fefe").ObjectResult<{
|
|
@@ -96,7 +96,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
96
96
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
97
97
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
98
98
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
99
|
-
|
|
99
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
100
100
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
101
101
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
102
102
|
}> | import("fefe").ObjectResult<{
|
|
@@ -108,7 +108,7 @@ export declare const fieldGroup: import("fefe").Validator<import("fefe").ObjectR
|
|
|
108
108
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
109
109
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
110
110
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
111
|
-
|
|
111
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
112
112
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
113
113
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
114
114
|
}>)[], import("fefe").FefeError>;
|
|
@@ -131,7 +131,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
131
131
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
132
132
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
133
133
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
134
|
-
|
|
134
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
135
135
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
136
136
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
137
137
|
}> | import("fefe").ObjectResult<{
|
|
@@ -139,7 +139,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
139
139
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
140
140
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
141
141
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
142
|
-
|
|
142
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
143
143
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
144
144
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
145
145
|
}> | import("fefe").ObjectResult<{
|
|
@@ -147,7 +147,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
147
147
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
148
148
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
149
149
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
150
|
-
|
|
150
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
151
151
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
152
152
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
153
153
|
}> | import("fefe").ObjectResult<{
|
|
@@ -155,7 +155,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
155
155
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
156
156
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
157
157
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
158
|
-
|
|
158
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
159
159
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
160
160
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
161
161
|
}> | import("fefe").ObjectResult<{
|
|
@@ -163,7 +163,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
163
163
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
164
164
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
165
165
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
166
|
-
|
|
166
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
167
167
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
168
168
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
169
169
|
}> | import("fefe").ObjectResult<{
|
|
@@ -175,7 +175,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
175
175
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
176
176
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
177
177
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
178
|
-
|
|
178
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
179
179
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
180
180
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
181
181
|
}> | import("fefe").ObjectResult<{
|
|
@@ -184,7 +184,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
184
184
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
185
185
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
186
186
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
187
|
-
|
|
187
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
188
188
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
189
189
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
190
190
|
}> | import("fefe").ObjectResult<{
|
|
@@ -196,7 +196,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
196
196
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
197
197
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
198
198
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
199
|
-
|
|
199
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
200
200
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
201
201
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
202
202
|
}> | import("fefe").ObjectResult<{
|
|
@@ -205,7 +205,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
205
205
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
206
206
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
207
207
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
208
|
-
|
|
208
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
209
209
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
210
210
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
211
211
|
}> | import("fefe").ObjectResult<{
|
|
@@ -217,7 +217,7 @@ declare const rawFieldGroupList: import("fefe").Validator<import("fefe").ObjectR
|
|
|
217
217
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
218
218
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
219
219
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
220
|
-
|
|
220
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
221
221
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
222
222
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
223
223
|
}>)[], import("fefe").FefeError>;
|
|
@@ -240,7 +240,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
240
240
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
241
241
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
242
242
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
243
|
-
|
|
243
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
244
244
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
245
245
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
246
246
|
}> | import("fefe").ObjectResult<{
|
|
@@ -248,7 +248,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
248
248
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
249
249
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
250
250
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
251
|
-
|
|
251
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
252
252
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
253
253
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
254
254
|
}> | import("fefe").ObjectResult<{
|
|
@@ -256,7 +256,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
256
256
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
257
257
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
258
258
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
259
|
-
|
|
259
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
260
260
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
261
261
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
262
262
|
}> | import("fefe").ObjectResult<{
|
|
@@ -264,7 +264,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
264
264
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
265
265
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
266
266
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
267
|
-
|
|
267
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
268
268
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
269
269
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
270
270
|
}> | import("fefe").ObjectResult<{
|
|
@@ -272,7 +272,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
272
272
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
273
273
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
274
274
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
275
|
-
|
|
275
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
276
276
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
277
277
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
278
278
|
}> | import("fefe").ObjectResult<{
|
|
@@ -284,7 +284,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
284
284
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
285
285
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
286
286
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
287
|
-
|
|
287
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
288
288
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
289
289
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
290
290
|
}> | import("fefe").ObjectResult<{
|
|
@@ -293,7 +293,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
293
293
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
294
294
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
295
295
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
296
|
-
|
|
296
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
297
297
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
298
298
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
299
299
|
}> | import("fefe").ObjectResult<{
|
|
@@ -305,7 +305,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
305
305
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
306
306
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
307
307
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
308
|
-
|
|
308
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
309
309
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
310
310
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
311
311
|
}> | import("fefe").ObjectResult<{
|
|
@@ -314,7 +314,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
314
314
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
315
315
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
316
316
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
317
|
-
|
|
317
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
318
318
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
319
319
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
320
320
|
}> | import("fefe").ObjectResult<{
|
|
@@ -326,7 +326,7 @@ export declare const parseFieldGroup: import("../lib").APIValidator<import("fefe
|
|
|
326
326
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
327
327
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
328
328
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
329
|
-
|
|
329
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
330
330
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
331
331
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
332
332
|
}>)[], import("fefe").FefeError>;
|
|
@@ -349,7 +349,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
349
349
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
350
350
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
351
351
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
352
|
-
|
|
352
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
353
353
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
354
354
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
355
355
|
}> | import("fefe").ObjectResult<{
|
|
@@ -357,7 +357,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
357
357
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
358
358
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
359
359
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
360
|
-
|
|
360
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
361
361
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
362
362
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
363
363
|
}> | import("fefe").ObjectResult<{
|
|
@@ -365,7 +365,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
365
365
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
366
366
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
367
367
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
368
|
-
|
|
368
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
369
369
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
370
370
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
371
371
|
}> | import("fefe").ObjectResult<{
|
|
@@ -373,7 +373,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
373
373
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
374
374
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
375
375
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
376
|
-
|
|
376
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
377
377
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
378
378
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
379
379
|
}> | import("fefe").ObjectResult<{
|
|
@@ -381,7 +381,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
381
381
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
382
382
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
383
383
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
384
|
-
|
|
384
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
385
385
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
386
386
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
387
387
|
}> | import("fefe").ObjectResult<{
|
|
@@ -393,7 +393,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
393
393
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
394
394
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
395
395
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
396
|
-
|
|
396
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
397
397
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
398
398
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
399
399
|
}> | import("fefe").ObjectResult<{
|
|
@@ -402,7 +402,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
402
402
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
403
403
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
404
404
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
405
|
-
|
|
405
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
406
406
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
407
407
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
408
408
|
}> | import("fefe").ObjectResult<{
|
|
@@ -414,7 +414,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
414
414
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
415
415
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
416
416
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
417
|
-
|
|
417
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
418
418
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
419
419
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
420
420
|
}> | import("fefe").ObjectResult<{
|
|
@@ -423,7 +423,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
423
423
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
424
424
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
425
425
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
426
|
-
|
|
426
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
427
427
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
428
428
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
429
429
|
}> | import("fefe").ObjectResult<{
|
|
@@ -435,7 +435,7 @@ export declare const parseRawFieldGroupList: import("../lib").APIValidator<impor
|
|
|
435
435
|
title: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
436
436
|
info: import("fefe").Validator<string | Dictionary<string> | null, import("fefe").FefeError>;
|
|
437
437
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
438
|
-
|
|
438
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
439
439
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
440
440
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
441
441
|
}>)[], import("fefe").FefeError>;
|
package/dist/models/field.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ declare const staticField: import("fefe").Validator<import("fefe").ObjectResult<
|
|
|
4
4
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
5
5
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
6
6
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
7
|
-
|
|
7
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
8
8
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
9
9
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
10
10
|
}>, import("fefe").FefeError>;
|
|
@@ -13,7 +13,7 @@ declare const textField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
|
13
13
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
14
14
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
15
15
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
16
|
-
|
|
16
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
17
17
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
18
18
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
19
19
|
}>, import("fefe").FefeError>;
|
|
@@ -22,7 +22,7 @@ declare const emailField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
|
22
22
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
23
23
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
24
24
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
25
|
-
|
|
25
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
26
26
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
27
27
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
28
28
|
}>, import("fefe").FefeError>;
|
|
@@ -31,7 +31,7 @@ declare const numberField: import("fefe").Validator<import("fefe").ObjectResult<
|
|
|
31
31
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
32
32
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
33
33
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
34
|
-
|
|
34
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
35
35
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
36
36
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
37
37
|
}>, import("fefe").FefeError>;
|
|
@@ -44,7 +44,7 @@ declare const checkboxField: import("fefe").Validator<import("fefe").ObjectResul
|
|
|
44
44
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
45
45
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
46
46
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
47
|
-
|
|
47
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
48
48
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
49
49
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
50
50
|
}>, import("fefe").FefeError>;
|
|
@@ -54,7 +54,7 @@ declare const singleCheckboxField: import("fefe").Validator<import("fefe").Objec
|
|
|
54
54
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
55
55
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
56
56
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
57
|
-
|
|
57
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
58
58
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
59
59
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
60
60
|
}>, import("fefe").FefeError>;
|
|
@@ -67,7 +67,7 @@ declare const radioField: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
|
67
67
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
68
68
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
69
69
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
70
|
-
|
|
70
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
71
71
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
72
72
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
73
73
|
}>, import("fefe").FefeError>;
|
|
@@ -77,7 +77,7 @@ declare const singleRadioField: import("fefe").Validator<import("fefe").ObjectRe
|
|
|
77
77
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
78
78
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
79
79
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
80
|
-
|
|
80
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
81
81
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
82
82
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
83
83
|
}>, import("fefe").FefeError>;
|
|
@@ -90,7 +90,7 @@ declare const selectField: import("fefe").Validator<import("fefe").ObjectResult<
|
|
|
90
90
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
91
91
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
92
92
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
93
|
-
|
|
93
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
94
94
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
95
95
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
96
96
|
}>, import("fefe").FefeError>;
|
|
@@ -99,7 +99,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
99
99
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
100
100
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
101
101
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
102
|
-
|
|
102
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
103
103
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
104
104
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
105
105
|
}> | import("fefe").ObjectResult<{
|
|
@@ -107,7 +107,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
107
107
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
108
108
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
109
109
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
110
|
-
|
|
110
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
111
111
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
112
112
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
113
113
|
}> | import("fefe").ObjectResult<{
|
|
@@ -115,7 +115,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
115
115
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
116
116
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
117
117
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
118
|
-
|
|
118
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
119
119
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
120
120
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
121
121
|
}> | import("fefe").ObjectResult<{
|
|
@@ -123,7 +123,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
123
123
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
124
124
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
125
125
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
126
|
-
|
|
126
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
127
127
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
128
128
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
129
129
|
}> | import("fefe").ObjectResult<{
|
|
@@ -131,7 +131,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
131
131
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
132
132
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
133
133
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
134
|
-
|
|
134
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
135
135
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
136
136
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
137
137
|
}> | import("fefe").ObjectResult<{
|
|
@@ -143,7 +143,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
143
143
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
144
144
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
145
145
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
146
|
-
|
|
146
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
147
147
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
148
148
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
149
149
|
}> | import("fefe").ObjectResult<{
|
|
@@ -152,7 +152,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
152
152
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
153
153
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
154
154
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
155
|
-
|
|
155
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
156
156
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
157
157
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
158
158
|
}> | import("fefe").ObjectResult<{
|
|
@@ -164,7 +164,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
164
164
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
165
165
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
166
166
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
167
|
-
|
|
167
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
168
168
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
169
169
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
170
170
|
}> | import("fefe").ObjectResult<{
|
|
@@ -173,7 +173,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
173
173
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
174
174
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
175
175
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
176
|
-
|
|
176
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
177
177
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
178
178
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
179
179
|
}> | import("fefe").ObjectResult<{
|
|
@@ -185,7 +185,7 @@ export declare const field: import("fefe").Validator<import("fefe").ObjectResult
|
|
|
185
185
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
186
186
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
187
187
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
188
|
-
|
|
188
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
189
189
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
190
190
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
191
191
|
}>, import("fefe").LeafError>;
|
|
@@ -194,7 +194,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
194
194
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
195
195
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
196
196
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
197
|
-
|
|
197
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
198
198
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
199
199
|
type: import("fefe").Validator<"static", import("fefe").LeafError>;
|
|
200
200
|
}> | import("fefe").ObjectResult<{
|
|
@@ -202,7 +202,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
202
202
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
203
203
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
204
204
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
205
|
-
|
|
205
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
206
206
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
207
207
|
type: import("fefe").Validator<"text", import("fefe").LeafError>;
|
|
208
208
|
}> | import("fefe").ObjectResult<{
|
|
@@ -210,7 +210,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
210
210
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
211
211
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
212
212
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
213
|
-
|
|
213
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
214
214
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
215
215
|
type: import("fefe").Validator<"longtext", import("fefe").LeafError>;
|
|
216
216
|
}> | import("fefe").ObjectResult<{
|
|
@@ -218,7 +218,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
218
218
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
219
219
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
220
220
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
221
|
-
|
|
221
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
222
222
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
223
223
|
type: import("fefe").Validator<"email", import("fefe").LeafError>;
|
|
224
224
|
}> | import("fefe").ObjectResult<{
|
|
@@ -226,7 +226,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
226
226
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
227
227
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
228
228
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
229
|
-
|
|
229
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
230
230
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
231
231
|
type: import("fefe").Validator<"number", import("fefe").LeafError>;
|
|
232
232
|
}> | import("fefe").ObjectResult<{
|
|
@@ -238,7 +238,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
238
238
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
239
239
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
240
240
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
241
|
-
|
|
241
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
242
242
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
243
243
|
type: import("fefe").Validator<"check", import("fefe").LeafError>;
|
|
244
244
|
}> | import("fefe").ObjectResult<{
|
|
@@ -247,7 +247,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
247
247
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
248
248
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
249
249
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
250
|
-
|
|
250
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
251
251
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
252
252
|
type: import("fefe").Validator<"checkbox", import("fefe").LeafError>;
|
|
253
253
|
}> | import("fefe").ObjectResult<{
|
|
@@ -259,7 +259,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
259
259
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
260
260
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
261
261
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
262
|
-
|
|
262
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
263
263
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
264
264
|
type: import("fefe").Validator<"radio", import("fefe").LeafError>;
|
|
265
265
|
}> | import("fefe").ObjectResult<{
|
|
@@ -268,7 +268,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
268
268
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
269
269
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
270
270
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
271
|
-
|
|
271
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
272
272
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
273
273
|
type: import("fefe").Validator<"radiobutton", import("fefe").LeafError>;
|
|
274
274
|
}> | import("fefe").ObjectResult<{
|
|
@@ -280,7 +280,7 @@ export declare const parseField: import("../lib").APIValidator<import("fefe").Ob
|
|
|
280
280
|
title: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
281
281
|
info: import("fefe").Validator<string | import("./_helpers").Dictionary<string> | null, import("fefe").FefeError>;
|
|
282
282
|
required: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
283
|
-
|
|
283
|
+
isMetaField: import("fefe").Validator<boolean, import("fefe").LeafError>;
|
|
284
284
|
class: import("fefe").Validator<string | null, import("fefe").FefeError>;
|
|
285
285
|
type: import("fefe").Validator<"dropdown", import("fefe").LeafError>;
|
|
286
286
|
}>>;
|
package/dist/models/field.js
CHANGED
|
@@ -8,7 +8,7 @@ const basicFieldProps = {
|
|
|
8
8
|
title: maybe(union(string(), dictionary(string()))),
|
|
9
9
|
info: maybe(union(string(), dictionary(string()))),
|
|
10
10
|
required: maybe(boolean(), false),
|
|
11
|
-
|
|
11
|
+
isMetaField: boolean(),
|
|
12
12
|
class: maybe(string())
|
|
13
13
|
};
|
|
14
14
|
const staticField = object({
|
package/dist/models/user.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ValidatorReturnType } from 'fefe';
|
|
2
2
|
export declare const user: import("fefe").Validator<import("fefe").ObjectResult<{
|
|
3
3
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
4
|
-
admin: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
5
4
|
timeout: import("fefe").Validator<number, import("fefe").LeafError>;
|
|
6
5
|
userdata: (value: unknown) => import("fefe").Result<import("./_helpers").Dictionary<unknown>, import("fefe").FefeError>;
|
|
7
6
|
permissions: import("fefe").Validator<import("./_helpers").Dictionary<string[]>, import("fefe").FefeError> & {
|
|
@@ -11,7 +10,6 @@ export declare const user: import("fefe").Validator<import("fefe").ObjectResult<
|
|
|
11
10
|
export declare type User = ValidatorReturnType<typeof user>;
|
|
12
11
|
export declare const parseUser: import("../lib").APIValidator<import("fefe").ObjectResult<{
|
|
13
12
|
name: import("fefe").Validator<string, import("fefe").LeafError>;
|
|
14
|
-
admin: import("fefe").Validator<boolean, import("fefe").FefeError>;
|
|
15
13
|
timeout: import("fefe").Validator<number, import("fefe").LeafError>;
|
|
16
14
|
userdata: (value: unknown) => import("fefe").Result<import("./_helpers").Dictionary<unknown>, import("fefe").FefeError>;
|
|
17
15
|
permissions: import("fefe").Validator<import("./_helpers").Dictionary<string[]>, import("fefe").FefeError> & {
|
package/dist/models/user.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { array, number, object, string, optional
|
|
1
|
+
import { array, number, object, string, optional } from 'fefe';
|
|
2
2
|
import { apiValidator } from '../lib';
|
|
3
3
|
import { unknown, dictionary } from './_helpers';
|
|
4
4
|
export const user = object({
|
|
5
5
|
name: string(),
|
|
6
|
-
admin: defaultTo(boolean(), false),
|
|
7
6
|
timeout: number(),
|
|
8
7
|
userdata: dictionary(unknown()),
|
|
9
8
|
permissions: optional(dictionary(array(string())))
|
|
@@ -27,8 +27,7 @@ const attendee = new Attendee({
|
|
|
27
27
|
},
|
|
28
28
|
userdata: {
|
|
29
29
|
name: 'Max Mustermann'
|
|
30
|
-
}
|
|
31
|
-
metadata: {}
|
|
30
|
+
}
|
|
32
31
|
});
|
|
33
32
|
const companion = new Attendee({
|
|
34
33
|
id: 'my-companion',
|
|
@@ -47,8 +46,7 @@ const companion = new Attendee({
|
|
|
47
46
|
},
|
|
48
47
|
userdata: {
|
|
49
48
|
name: 'Jhon Doe'
|
|
50
|
-
}
|
|
51
|
-
metadata: {}
|
|
49
|
+
}
|
|
52
50
|
});
|
|
53
51
|
|
|
54
52
|
const Template = args => /*#__PURE__*/React.createElement(GuestCard, args);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { colors } from '../../lib/theme';
|
|
3
|
+
export const SettingsIcon = ({
|
|
4
|
+
color = colors.enterDarkGrey
|
|
5
|
+
}) => {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
width: "100%",
|
|
9
|
+
height: "auto",
|
|
10
|
+
viewBox: "0 0 19 20"
|
|
11
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
12
|
+
fill: color,
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
d: "M17.168 10.226c0 1.105.619 1.989 1.812 2.74-.177.619-.442 1.237-.751 1.856-1.06-.265-2.077.088-3.093 1.016-.796.884-1.06 1.9-.751 3.093-.619.265-1.238.574-1.9.795-.707-1.237-1.724-1.855-3.005-1.855s-2.298.618-3.005 1.855c-.662-.22-1.281-.53-1.9-.795.31-1.237.045-2.253-.75-3.093-.796-.795-1.857-1.06-3.094-.751A30.225 30.225 0 0 1-.02 13.23c1.237-.795 1.856-1.812 1.856-3.005 0-1.104-.619-2.032-1.856-2.783.31-.884.574-1.503.751-1.856 1.149.265 2.165-.088 3.093-1.016.796-.84 1.06-1.856.751-3.093.663-.31 1.282-.575 1.9-.752C7.182 1.92 8.2 2.538 9.48 2.538s2.298-.619 3.005-1.812c.618.177 1.237.442 1.9.752-.31 1.193-.045 2.209.75 3.093 1.017.928 2.033 1.281 3.094 1.016.31.618.574 1.237.751 1.856-1.193.75-1.812 1.679-1.812 2.783m-7.688 4.11c1.149 0 2.12-.398 2.916-1.193.796-.796 1.193-1.768 1.193-2.917 0-1.148-.397-2.12-1.193-2.96-.795-.795-1.767-1.193-2.916-1.193s-2.12.398-2.916 1.193c-.796.84-1.193 1.812-1.193 2.96 0 1.15.397 2.121 1.193 2.917.795.795 1.767 1.193 2.916 1.193"
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
3
|
+
declare const _default: ComponentMeta<React.FunctionComponent<{
|
|
4
|
+
color?: string | undefined;
|
|
5
|
+
}>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const Basic: ComponentStory<React.FunctionComponent<{
|
|
8
|
+
color?: string | undefined;
|
|
9
|
+
}>>;
|
|
10
|
+
export declare const White: ComponentStory<React.FunctionComponent<{
|
|
11
|
+
color?: string | undefined;
|
|
12
|
+
}>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SettingsIcon } from './settings-icon';
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Icons/Settings',
|
|
5
|
+
component: SettingsIcon
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Template = args => /*#__PURE__*/React.createElement(SettingsIcon, args);
|
|
9
|
+
|
|
10
|
+
export const Basic = Template.bind({});
|
|
11
|
+
Basic.args = {};
|
|
12
|
+
export const White = Template.bind({});
|
|
13
|
+
White.parameters = {
|
|
14
|
+
backgrounds: {
|
|
15
|
+
default: 'dark'
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
White.args = {
|
|
19
|
+
color: '#fff'
|
|
20
|
+
};
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Input } from './form-elements/input';
|
|
2
2
|
export { Label } from './form-elements/label';
|
|
3
3
|
export { SegmentedControl } from './form-elements/segmented-control';
|
|
4
|
+
export { SettingsIcon } from './icons/settings-icon';
|
|
4
5
|
export { Button } from './button';
|
|
5
6
|
export { CheckinCountIndicator } from './checkin-count-indicator';
|
|
6
7
|
export { CheckinProgressBar } from './checkin-progress-bar';
|
package/dist/ui/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { Input } from './form-elements/input';
|
|
2
2
|
export { Label } from './form-elements/label';
|
|
3
3
|
export { SegmentedControl } from './form-elements/segmented-control';
|
|
4
|
+
export { SettingsIcon } from './icons/settings-icon';
|
|
4
5
|
export { Button } from './button';
|
|
5
6
|
export { CheckinCountIndicator } from './checkin-count-indicator';
|
|
6
7
|
export { CheckinProgressBar } from './checkin-progress-bar';
|