@opencrvs/toolkit 2.0.0-rc.7a11d23 → 2.0.0-rc.7ab6732
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/application-config/index.js +1 -0
- package/dist/commons/events/FieldConfig.d.ts +1 -0
- package/dist/commons/events/FieldTypeMapping.d.ts +1 -1
- package/dist/events/index.js +2 -1
- package/dist/notification/index.js +1 -0
- package/opencrvs-toolkit-2.0.0-rc.7ab6732.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.7a11d23.tgz +0 -0
|
@@ -1500,6 +1500,7 @@ var NumberField = BaseField.extend({
|
|
|
1500
1500
|
configuration: import_v43.default.object({
|
|
1501
1501
|
min: import_v43.default.number().optional().describe("Minimum value"),
|
|
1502
1502
|
max: import_v43.default.number().optional().describe("Maximum value"),
|
|
1503
|
+
integer: import_v43.default.boolean().optional().describe("When true, only whole numbers are allowed"),
|
|
1503
1504
|
prefix: TranslationConfig.optional(),
|
|
1504
1505
|
postfix: TranslationConfig.optional()
|
|
1505
1506
|
}).optional()
|
|
@@ -267,6 +267,7 @@ declare const NumberField: z.ZodObject<{
|
|
|
267
267
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
268
268
|
min: z.ZodOptional<z.ZodNumber>;
|
|
269
269
|
max: z.ZodOptional<z.ZodNumber>;
|
|
270
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
270
271
|
prefix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
271
272
|
postfix: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
272
273
|
}, z.core.$strip>>;
|
|
@@ -690,7 +690,7 @@ export declare const isHiddenFieldType: (field: {
|
|
|
690
690
|
value: undefined;
|
|
691
691
|
config: HiddenField;
|
|
692
692
|
};
|
|
693
|
-
export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton |
|
|
693
|
+
export type NonInteractiveFieldType = Divider | PageHeader | ImageViewField | Paragraph | Heading | BulletList | DataField | AlphaPrintButton | LinkButtonField | LoaderField | AutocompleteField;
|
|
694
694
|
export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
|
|
695
695
|
export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
|
|
696
696
|
export {};
|
package/dist/events/index.js
CHANGED
|
@@ -2298,6 +2298,7 @@ var NumberField = BaseField.extend({
|
|
|
2298
2298
|
configuration: import_v43.default.object({
|
|
2299
2299
|
min: import_v43.default.number().optional().describe("Minimum value"),
|
|
2300
2300
|
max: import_v43.default.number().optional().describe("Maximum value"),
|
|
2301
|
+
integer: import_v43.default.boolean().optional().describe("When true, only whole numbers are allowed"),
|
|
2301
2302
|
prefix: TranslationConfig.optional(),
|
|
2302
2303
|
postfix: TranslationConfig.optional()
|
|
2303
2304
|
}).optional()
|
|
@@ -3914,7 +3915,7 @@ var isHiddenFieldType = (field3) => {
|
|
|
3914
3915
|
return field3.config.type === FieldType.ALPHA_HIDDEN;
|
|
3915
3916
|
};
|
|
3916
3917
|
var isNonInteractiveFieldType = (field3) => {
|
|
3917
|
-
return field3.type === FieldType.DIVIDER || field3.type === FieldType.PAGE_HEADER || field3.type === FieldType.PARAGRAPH || field3.type === FieldType.HEADING || field3.type === FieldType.BULLET_LIST || field3.type === FieldType.DATA || field3.type === FieldType.ALPHA_PRINT_BUTTON || field3.type === FieldType.
|
|
3918
|
+
return field3.type === FieldType.DIVIDER || field3.type === FieldType.PAGE_HEADER || field3.type === FieldType.PARAGRAPH || field3.type === FieldType.HEADING || field3.type === FieldType.BULLET_LIST || field3.type === FieldType.DATA || field3.type === FieldType.ALPHA_PRINT_BUTTON || field3.type === FieldType.LINK_BUTTON || field3.type === FieldType.LOADER;
|
|
3918
3919
|
};
|
|
3919
3920
|
|
|
3920
3921
|
// ../commons/src/conditionals/validate.ts
|
|
@@ -1755,6 +1755,7 @@ var NumberField = BaseField.extend({
|
|
|
1755
1755
|
configuration: import_v43.default.object({
|
|
1756
1756
|
min: import_v43.default.number().optional().describe("Minimum value"),
|
|
1757
1757
|
max: import_v43.default.number().optional().describe("Maximum value"),
|
|
1758
|
+
integer: import_v43.default.boolean().optional().describe("When true, only whole numbers are allowed"),
|
|
1758
1759
|
prefix: TranslationConfig.optional(),
|
|
1759
1760
|
postfix: TranslationConfig.optional()
|
|
1760
1761
|
}).optional()
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|