@opencrvs/toolkit 1.9.8-rc.2acd0d7 → 1.9.8-rc.7c8400d
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.
|
@@ -5278,6 +5278,7 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5278
5278
|
description: string;
|
|
5279
5279
|
defaultMessage: string;
|
|
5280
5280
|
}>>;
|
|
5281
|
+
showParentFieldError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
5281
5282
|
}, "strip", z.ZodTypeAny, {
|
|
5282
5283
|
name?: {
|
|
5283
5284
|
firstname?: {
|
|
@@ -5303,6 +5304,7 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5303
5304
|
maxLength?: number | undefined;
|
|
5304
5305
|
prefix?: TranslationConfig | undefined;
|
|
5305
5306
|
postfix?: TranslationConfig | undefined;
|
|
5307
|
+
showParentFieldError?: boolean | undefined;
|
|
5306
5308
|
}, {
|
|
5307
5309
|
name?: {
|
|
5308
5310
|
firstname?: {
|
|
@@ -5360,6 +5362,7 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5360
5362
|
description: string;
|
|
5361
5363
|
defaultMessage: string;
|
|
5362
5364
|
} | undefined;
|
|
5365
|
+
showParentFieldError?: boolean | undefined;
|
|
5363
5366
|
}>>>;
|
|
5364
5367
|
}>, "strip", z.ZodTypeAny, {
|
|
5365
5368
|
type: "NAME";
|
|
@@ -5441,6 +5444,7 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5441
5444
|
maxLength?: number | undefined;
|
|
5442
5445
|
prefix?: TranslationConfig | undefined;
|
|
5443
5446
|
postfix?: TranslationConfig | undefined;
|
|
5447
|
+
showParentFieldError?: boolean | undefined;
|
|
5444
5448
|
} | undefined;
|
|
5445
5449
|
}, {
|
|
5446
5450
|
type: "NAME";
|
|
@@ -5574,6 +5578,7 @@ declare const NameField: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5574
5578
|
description: string;
|
|
5575
5579
|
defaultMessage: string;
|
|
5576
5580
|
} | undefined;
|
|
5581
|
+
showParentFieldError?: boolean | undefined;
|
|
5577
5582
|
} | undefined;
|
|
5578
5583
|
}>;
|
|
5579
5584
|
declare const PhoneField: z.ZodObject<z.objectUtil.extendShape<{
|
package/dist/events/index.js
CHANGED
|
@@ -2209,7 +2209,10 @@ var NameField = BaseField.extend({
|
|
|
2209
2209
|
order: import_zod16.z.array(import_zod16.z.enum(["firstname", "middlename", "surname"])).optional(),
|
|
2210
2210
|
maxLength: import_zod16.z.number().optional().describe("Maximum length of the text"),
|
|
2211
2211
|
prefix: TranslationConfig.optional(),
|
|
2212
|
-
postfix: TranslationConfig.optional()
|
|
2212
|
+
postfix: TranslationConfig.optional(),
|
|
2213
|
+
showParentFieldError: import_zod16.z.boolean().default(false).optional().describe(
|
|
2214
|
+
`If true, shows the parent field error and hides the subfield error`
|
|
2215
|
+
)
|
|
2213
2216
|
}).default({
|
|
2214
2217
|
name: {
|
|
2215
2218
|
firstname: { required: true },
|
|
@@ -1731,7 +1731,10 @@ var NameField = BaseField.extend({
|
|
|
1731
1731
|
order: import_zod16.z.array(import_zod16.z.enum(["firstname", "middlename", "surname"])).optional(),
|
|
1732
1732
|
maxLength: import_zod16.z.number().optional().describe("Maximum length of the text"),
|
|
1733
1733
|
prefix: TranslationConfig.optional(),
|
|
1734
|
-
postfix: TranslationConfig.optional()
|
|
1734
|
+
postfix: TranslationConfig.optional(),
|
|
1735
|
+
showParentFieldError: import_zod16.z.boolean().default(false).optional().describe(
|
|
1736
|
+
`If true, shows the parent field error and hides the subfield error`
|
|
1737
|
+
)
|
|
1735
1738
|
}).default({
|
|
1736
1739
|
name: {
|
|
1737
1740
|
firstname: { required: true },
|