c2-clinical 1.0.85 → 1.0.86
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IDefault } from "../Default";
|
|
3
|
-
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum
|
|
3
|
+
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum } from "../enum";
|
|
4
4
|
import { IForm } from "./Form";
|
|
5
5
|
export interface IModalConfig {
|
|
6
6
|
title: string;
|
|
@@ -8,6 +8,9 @@ export interface IModalConfig {
|
|
|
8
8
|
labelButtonCancel: string;
|
|
9
9
|
labelButtonConfirm: string;
|
|
10
10
|
}
|
|
11
|
+
export interface IGroupConfig {
|
|
12
|
+
showTips: boolean;
|
|
13
|
+
}
|
|
11
14
|
export interface ITip {
|
|
12
15
|
type: TypeTipEnum;
|
|
13
16
|
title: string;
|
|
@@ -44,7 +47,6 @@ export interface IFormUnit extends IDefault {
|
|
|
44
47
|
typeAnswer: TypeAnswerEnum;
|
|
45
48
|
defaultAnswer: string;
|
|
46
49
|
category: CategoryFormEnum;
|
|
47
|
-
typeChoiceView: VariantViewEnum;
|
|
48
50
|
typeButtonAction: TypeButtonAction;
|
|
49
51
|
measurementUnit: string;
|
|
50
52
|
options: IQuestionOption[];
|
|
@@ -62,8 +64,8 @@ export interface IFormUnit extends IDefault {
|
|
|
62
64
|
requestGraphicData: IRequestGraphicData[];
|
|
63
65
|
children?: IFormUnit[];
|
|
64
66
|
modalConfig?: IModalConfig;
|
|
65
|
-
showTips?: boolean;
|
|
66
67
|
tips?: ITip[];
|
|
68
|
+
groupConfig: IGroupConfig;
|
|
67
69
|
}
|
|
68
70
|
export interface IQuestionOption {
|
|
69
71
|
sequence: number;
|
|
@@ -237,7 +239,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
237
239
|
body?: any;
|
|
238
240
|
dataset?: any;
|
|
239
241
|
}>;
|
|
240
|
-
showTips: any;
|
|
241
242
|
tips: Types.DocumentArray<{
|
|
242
243
|
type: string;
|
|
243
244
|
text?: string | null | undefined;
|
|
@@ -277,6 +278,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
277
278
|
labelFreeText?: string | null | undefined;
|
|
278
279
|
graphicData?: any;
|
|
279
280
|
modalConfig?: any;
|
|
281
|
+
groupConfig?: any;
|
|
280
282
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
|
|
281
283
|
type: string;
|
|
282
284
|
required: any;
|
|
@@ -349,7 +351,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
349
351
|
body?: any;
|
|
350
352
|
dataset?: any;
|
|
351
353
|
}>;
|
|
352
|
-
showTips: any;
|
|
353
354
|
tips: Types.DocumentArray<{
|
|
354
355
|
type: string;
|
|
355
356
|
text?: string | null | undefined;
|
|
@@ -389,6 +390,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
389
390
|
labelFreeText?: string | null | undefined;
|
|
390
391
|
graphicData?: any;
|
|
391
392
|
modalConfig?: any;
|
|
393
|
+
groupConfig?: any;
|
|
392
394
|
}>, {}> & import("mongoose").FlatRecord<{} & {
|
|
393
395
|
type: string;
|
|
394
396
|
required: any;
|
|
@@ -461,7 +463,6 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
461
463
|
body?: any;
|
|
462
464
|
dataset?: any;
|
|
463
465
|
}>;
|
|
464
|
-
showTips: any;
|
|
465
466
|
tips: Types.DocumentArray<{
|
|
466
467
|
type: string;
|
|
467
468
|
text?: string | null | undefined;
|
|
@@ -501,6 +502,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
501
502
|
labelFreeText?: string | null | undefined;
|
|
502
503
|
graphicData?: any;
|
|
503
504
|
modalConfig?: any;
|
|
505
|
+
groupConfig?: any;
|
|
504
506
|
}> & {
|
|
505
507
|
_id: Types.ObjectId;
|
|
506
508
|
} & {
|
|
@@ -76,7 +76,12 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
76
76
|
labelButtonConfirm: { type: String }
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
|
|
79
|
+
//DADOS PARA GRUPO
|
|
80
|
+
groupConfig: {
|
|
81
|
+
type: {
|
|
82
|
+
showTips: { type: Boolean, default: true }
|
|
83
|
+
}
|
|
84
|
+
},
|
|
80
85
|
tips: {
|
|
81
86
|
type: [
|
|
82
87
|
{
|
package/package.json
CHANGED