c2-clinical 1.0.59 → 1.0.60
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/enum.d.ts
CHANGED
|
@@ -91,10 +91,15 @@ export declare enum TypeButtonAction {
|
|
|
91
91
|
CONFIRM_MODAL = "CONFIRM_MODAL"
|
|
92
92
|
}
|
|
93
93
|
export declare enum TypeValidationEnum {
|
|
94
|
-
TIP = "TIP",
|
|
95
94
|
WARNING = "WARNING",
|
|
96
95
|
VALIDATION = "VALIDATION"
|
|
97
96
|
}
|
|
97
|
+
export declare enum TypeTipEnum {
|
|
98
|
+
IMAGE = "IMAGE",
|
|
99
|
+
VIDEO = "VIDEO",
|
|
100
|
+
HTML = "HTML",
|
|
101
|
+
TEXT = "TEXT"
|
|
102
|
+
}
|
|
98
103
|
export declare enum TypeOutputValidationEnum {
|
|
99
104
|
TEXT = "TEXT",
|
|
100
105
|
LINK = "LINK",
|
package/dist/models/enum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.VariantViewEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
|
|
3
|
+
exports.TypeMessageEnum = exports.TypeOutputValidationEnum = exports.TypeTipEnum = exports.TypeValidationEnum = exports.TypeButtonAction = exports.VariantViewEnum = exports.TypeAnswerEnum = exports.TypeFormUnitEnum = exports.OwnerEnum = exports.TypeFormEnum = exports.CategoryFormEnum = exports.MetTargetConditionEnum = exports.StatusQPCEnum = exports.GenreEnum = exports.ChannelNotificationEnum = exports.QAStatusEnum = void 0;
|
|
4
4
|
var QAStatusEnum;
|
|
5
5
|
(function (QAStatusEnum) {
|
|
6
6
|
QAStatusEnum["ANSWERED"] = "ANSWERED";
|
|
@@ -107,10 +107,16 @@ var TypeButtonAction;
|
|
|
107
107
|
})(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
|
|
108
108
|
var TypeValidationEnum;
|
|
109
109
|
(function (TypeValidationEnum) {
|
|
110
|
-
TypeValidationEnum["TIP"] = "TIP";
|
|
111
110
|
TypeValidationEnum["WARNING"] = "WARNING";
|
|
112
111
|
TypeValidationEnum["VALIDATION"] = "VALIDATION";
|
|
113
112
|
})(TypeValidationEnum || (exports.TypeValidationEnum = TypeValidationEnum = {}));
|
|
113
|
+
var TypeTipEnum;
|
|
114
|
+
(function (TypeTipEnum) {
|
|
115
|
+
TypeTipEnum["IMAGE"] = "IMAGE";
|
|
116
|
+
TypeTipEnum["VIDEO"] = "VIDEO";
|
|
117
|
+
TypeTipEnum["HTML"] = "HTML";
|
|
118
|
+
TypeTipEnum["TEXT"] = "TEXT";
|
|
119
|
+
})(TypeTipEnum || (exports.TypeTipEnum = TypeTipEnum = {}));
|
|
114
120
|
var TypeOutputValidationEnum;
|
|
115
121
|
(function (TypeOutputValidationEnum) {
|
|
116
122
|
TypeOutputValidationEnum["TEXT"] = "TEXT";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Schema, Types } from "mongoose";
|
|
2
2
|
import { IDefault } from "../Default";
|
|
3
|
-
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum, VariantViewEnum } from "../enum";
|
|
3
|
+
import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeTipEnum, TypeValidationEnum, VariantViewEnum } from "../enum";
|
|
4
4
|
import { IForm } from "./Form";
|
|
5
5
|
export interface IModalConfig {
|
|
6
6
|
title: string;
|
|
@@ -8,6 +8,14 @@ export interface IModalConfig {
|
|
|
8
8
|
labelButtonCancel: string;
|
|
9
9
|
labelButtonConfirm: string;
|
|
10
10
|
}
|
|
11
|
+
export interface ITip {
|
|
12
|
+
type: TypeTipEnum;
|
|
13
|
+
title: string;
|
|
14
|
+
text: string;
|
|
15
|
+
html: string;
|
|
16
|
+
url: string;
|
|
17
|
+
thumb: string;
|
|
18
|
+
}
|
|
11
19
|
/**
|
|
12
20
|
* Utilizado para FormUnitTypeEnum = GRAPHIC
|
|
13
21
|
*/
|
|
@@ -51,6 +59,8 @@ export interface IFormUnit extends IDefault {
|
|
|
51
59
|
requestGraphicData: IRequestGraphicData[];
|
|
52
60
|
children?: IFormUnit[];
|
|
53
61
|
modalConfig?: IModalConfig;
|
|
62
|
+
showTips?: boolean;
|
|
63
|
+
tips?: ITip[];
|
|
54
64
|
}
|
|
55
65
|
export interface IQuestionOption {
|
|
56
66
|
sequence: number;
|
|
@@ -223,6 +233,29 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
223
233
|
body?: any;
|
|
224
234
|
dataset?: any;
|
|
225
235
|
}>;
|
|
236
|
+
showTips: any;
|
|
237
|
+
tips: Types.DocumentArray<{
|
|
238
|
+
type: string;
|
|
239
|
+
text?: string | null | undefined;
|
|
240
|
+
url?: string | null | undefined;
|
|
241
|
+
thumb?: string | null | undefined;
|
|
242
|
+
title?: string | null | undefined;
|
|
243
|
+
html?: string | null | undefined;
|
|
244
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
245
|
+
type: string;
|
|
246
|
+
text?: string | null | undefined;
|
|
247
|
+
url?: string | null | undefined;
|
|
248
|
+
thumb?: string | null | undefined;
|
|
249
|
+
title?: string | null | undefined;
|
|
250
|
+
html?: string | null | undefined;
|
|
251
|
+
}> & {
|
|
252
|
+
type: string;
|
|
253
|
+
text?: string | null | undefined;
|
|
254
|
+
url?: string | null | undefined;
|
|
255
|
+
thumb?: string | null | undefined;
|
|
256
|
+
title?: string | null | undefined;
|
|
257
|
+
html?: string | null | undefined;
|
|
258
|
+
}>;
|
|
226
259
|
account?: any;
|
|
227
260
|
description?: string | null | undefined;
|
|
228
261
|
reference?: any;
|
|
@@ -309,6 +342,29 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
309
342
|
body?: any;
|
|
310
343
|
dataset?: any;
|
|
311
344
|
}>;
|
|
345
|
+
showTips: any;
|
|
346
|
+
tips: Types.DocumentArray<{
|
|
347
|
+
type: string;
|
|
348
|
+
text?: string | null | undefined;
|
|
349
|
+
url?: string | null | undefined;
|
|
350
|
+
thumb?: string | null | undefined;
|
|
351
|
+
title?: string | null | undefined;
|
|
352
|
+
html?: string | null | undefined;
|
|
353
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
354
|
+
type: string;
|
|
355
|
+
text?: string | null | undefined;
|
|
356
|
+
url?: string | null | undefined;
|
|
357
|
+
thumb?: string | null | undefined;
|
|
358
|
+
title?: string | null | undefined;
|
|
359
|
+
html?: string | null | undefined;
|
|
360
|
+
}> & {
|
|
361
|
+
type: string;
|
|
362
|
+
text?: string | null | undefined;
|
|
363
|
+
url?: string | null | undefined;
|
|
364
|
+
thumb?: string | null | undefined;
|
|
365
|
+
title?: string | null | undefined;
|
|
366
|
+
html?: string | null | undefined;
|
|
367
|
+
}>;
|
|
312
368
|
account?: any;
|
|
313
369
|
description?: string | null | undefined;
|
|
314
370
|
reference?: any;
|
|
@@ -395,6 +451,29 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
395
451
|
body?: any;
|
|
396
452
|
dataset?: any;
|
|
397
453
|
}>;
|
|
454
|
+
showTips: any;
|
|
455
|
+
tips: Types.DocumentArray<{
|
|
456
|
+
type: string;
|
|
457
|
+
text?: string | null | undefined;
|
|
458
|
+
url?: string | null | undefined;
|
|
459
|
+
thumb?: string | null | undefined;
|
|
460
|
+
title?: string | null | undefined;
|
|
461
|
+
html?: string | null | undefined;
|
|
462
|
+
}, Types.Subdocument<Types.ObjectId, any, {
|
|
463
|
+
type: string;
|
|
464
|
+
text?: string | null | undefined;
|
|
465
|
+
url?: string | null | undefined;
|
|
466
|
+
thumb?: string | null | undefined;
|
|
467
|
+
title?: string | null | undefined;
|
|
468
|
+
html?: string | null | undefined;
|
|
469
|
+
}> & {
|
|
470
|
+
type: string;
|
|
471
|
+
text?: string | null | undefined;
|
|
472
|
+
url?: string | null | undefined;
|
|
473
|
+
thumb?: string | null | undefined;
|
|
474
|
+
title?: string | null | undefined;
|
|
475
|
+
html?: string | null | undefined;
|
|
476
|
+
}>;
|
|
398
477
|
account?: any;
|
|
399
478
|
description?: string | null | undefined;
|
|
400
479
|
reference?: any;
|
|
@@ -65,10 +65,25 @@ exports.FormUnitSchema = new mongoose_1.Schema({
|
|
|
65
65
|
requestGraphicData: { type: [exports.RequestGraphicDataSchema] },
|
|
66
66
|
//DADOS PARA MODAL
|
|
67
67
|
modalConfig: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
type: {
|
|
69
|
+
title: { type: String },
|
|
70
|
+
description: { type: String },
|
|
71
|
+
labelButtonCancel: { type: String },
|
|
72
|
+
labelButtonConfirm: { type: String }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
showTips: { type: Boolean, default: true }, // Indica se os tips serão exibidos ou não, replicado aos filhos (via parent)
|
|
76
|
+
tips: {
|
|
77
|
+
type: [
|
|
78
|
+
{
|
|
79
|
+
type: { type: String, enum: enum_1.TypeTipEnum, required: true },
|
|
80
|
+
title: { type: String }, // Título do tip
|
|
81
|
+
text: { type: String }, // Conteúdo em texto.
|
|
82
|
+
html: { type: String }, // Conteúdo em HTML, etc.
|
|
83
|
+
url: { type: String }, // URL para imagens ou vídeos
|
|
84
|
+
thumb: { type: String } // Miniatura para imagens ou vídeos
|
|
85
|
+
}
|
|
86
|
+
]
|
|
72
87
|
}
|
|
73
88
|
}, {
|
|
74
89
|
timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
|
package/package.json
CHANGED