@opencrvs/toolkit 1.8.0-rc.f466707 → 1.8.0-rc.f8f3eb3

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.
@@ -1170,6 +1170,8 @@ declare const DateField: z.ZodObject<z.objectUtil.extendShape<{
1170
1170
  } | undefined;
1171
1171
  }>;
1172
1172
  export type DateField = z.infer<typeof DateField>;
1173
+ declare const HtmlFontVariant: z.ZodEnum<["reg12", "reg14", "reg16", "reg18", "h4", "h3", "h2", "h1"]>;
1174
+ export type HtmlFontVariant = z.infer<typeof HtmlFontVariant>;
1173
1175
  declare const Paragraph: z.ZodObject<z.objectUtil.extendShape<{
1174
1176
  id: z.ZodString;
1175
1177
  defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodNumber, z.ZodBoolean]>, z.ZodObject<{
@@ -80,7 +80,6 @@ export declare const findActiveActionFields: (configuration: EventConfig, action
80
80
  */
81
81
  export declare function getActiveActionFields(configuration: EventConfig, action: ActionType): FieldConfig[];
82
82
  export declare function getEventConfiguration(eventConfigurations: EventConfig[], type: string): EventConfig;
83
- export declare function isOptionalUncheckedCheckbox(field: FieldConfig, form: EventState): boolean;
84
83
  export declare function stripHiddenFields(fields: FieldConfig[], data: EventState): import("lodash").Dictionary<string | number | boolean | {
85
84
  type: string;
86
85
  filename: string;
@@ -149,7 +149,6 @@ __export(events_exports, {
149
149
  isLocationFieldType: () => isLocationFieldType,
150
150
  isNumberFieldType: () => isNumberFieldType,
151
151
  isOfficeFieldType: () => isOfficeFieldType,
152
- isOptionalUncheckedCheckbox: () => isOptionalUncheckedCheckbox,
153
152
  isPageHeaderFieldType: () => isPageHeaderFieldType,
154
153
  isParagraphFieldType: () => isParagraphFieldType,
155
154
  isRadioGroupFieldType: () => isRadioGroupFieldType,
@@ -1475,10 +1474,7 @@ function getEventConfiguration(eventConfigurations, type) {
1475
1474
  return config;
1476
1475
  }
1477
1476
  function isOptionalUncheckedCheckbox(field2, form) {
1478
- if (field2.type !== FieldType.CHECKBOX) {
1479
- return false;
1480
- }
1481
- if (field2.required) {
1477
+ if (field2.type !== FieldType.CHECKBOX || field2.required) {
1482
1478
  return false;
1483
1479
  }
1484
1480
  return !form[field2.id];
@@ -2867,7 +2863,7 @@ var TENNIS_CLUB_FORM = defineForm({
2867
2863
  review: {
2868
2864
  title: {
2869
2865
  id: "v2.event.tennis-club-membership.action.declare.form.review.title",
2870
- defaultMessage: "Member declaration for {firstname} {surname}",
2866
+ defaultMessage: "{applicant.firstname, select, __EMPTY__ {Member declaration} other {{applicant.surname, select, __EMPTY__ {Member declaration} other {Member declaration for {applicant.firstname} {applicant.surname}}}}}",
2871
2867
  description: "Title of the form to show in review page"
2872
2868
  },
2873
2869
  fields: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.8.0-rc.f466707",
3
+ "version": "1.8.0-rc.f8f3eb3",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {