c2-clinical 1.0.58 → 1.0.59

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.
@@ -86,7 +86,9 @@ export declare enum VariantViewEnum {
86
86
  LIST = "LIST"
87
87
  }
88
88
  export declare enum TypeButtonAction {
89
- OPEN_MODAL = "OPEN_MODAL"
89
+ OPEN_MODAL = "OPEN_MODAL",
90
+ CANCEL_MODAL = "CANCEL_MODAL",
91
+ CONFIRM_MODAL = "CONFIRM_MODAL"
90
92
  }
91
93
  export declare enum TypeValidationEnum {
92
94
  TIP = "TIP",
@@ -102,6 +102,8 @@ var VariantViewEnum;
102
102
  var TypeButtonAction;
103
103
  (function (TypeButtonAction) {
104
104
  TypeButtonAction["OPEN_MODAL"] = "OPEN_MODAL";
105
+ TypeButtonAction["CANCEL_MODAL"] = "CANCEL_MODAL";
106
+ TypeButtonAction["CONFIRM_MODAL"] = "CONFIRM_MODAL";
105
107
  })(TypeButtonAction || (exports.TypeButtonAction = TypeButtonAction = {}));
106
108
  var TypeValidationEnum;
107
109
  (function (TypeValidationEnum) {
@@ -1,7 +1,13 @@
1
1
  import { Schema, Types } from "mongoose";
2
2
  import { IDefault } from "../Default";
3
- import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, VariantViewEnum, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum } from "../enum";
3
+ import { CategoryFormEnum, TypeAnswerEnum, TypeButtonAction, TypeFormUnitEnum, TypeOutputValidationEnum, TypeValidationEnum, VariantViewEnum } from "../enum";
4
4
  import { IForm } from "./Form";
5
+ export interface IModalConfig {
6
+ title: string;
7
+ description: string;
8
+ labelButtonCancel: string;
9
+ labelButtonConfirm: string;
10
+ }
5
11
  /**
6
12
  * Utilizado para FormUnitTypeEnum = GRAPHIC
7
13
  */
@@ -44,6 +50,7 @@ export interface IFormUnit extends IDefault {
44
50
  graphicData: any;
45
51
  requestGraphicData: IRequestGraphicData[];
46
52
  children?: IFormUnit[];
53
+ modalConfig?: IModalConfig;
47
54
  }
48
55
  export interface IQuestionOption {
49
56
  sequence: number;
@@ -230,6 +237,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
230
237
  measurementUnit?: string | null | undefined;
231
238
  formulaToAnswer?: string | null | undefined;
232
239
  graphicData?: any;
240
+ modalConfig?: any;
233
241
  }, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{} & {
234
242
  type: string;
235
243
  required: any;
@@ -315,6 +323,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
315
323
  measurementUnit?: string | null | undefined;
316
324
  formulaToAnswer?: string | null | undefined;
317
325
  graphicData?: any;
326
+ modalConfig?: any;
318
327
  }>, {}> & import("mongoose").FlatRecord<{} & {
319
328
  type: string;
320
329
  required: any;
@@ -400,6 +409,7 @@ export declare const FormUnitSchema: Schema<any, import("mongoose").Model<any, a
400
409
  measurementUnit?: string | null | undefined;
401
410
  formulaToAnswer?: string | null | undefined;
402
411
  graphicData?: any;
412
+ modalConfig?: any;
403
413
  }> & {
404
414
  _id: Types.ObjectId;
405
415
  } & {
@@ -62,7 +62,14 @@ exports.FormUnitSchema = new mongoose_1.Schema({
62
62
  required: { type: Boolean, default: false },
63
63
  //DADOS PARA GRAFICOS
64
64
  graphicData: { type: mongoose_1.Schema.Types.Mixed },
65
- requestGraphicData: { type: [exports.RequestGraphicDataSchema] }
65
+ requestGraphicData: { type: [exports.RequestGraphicDataSchema] },
66
+ //DADOS PARA MODAL
67
+ modalConfig: {
68
+ title: { type: String },
69
+ description: { type: String },
70
+ labelButtonCancel: { type: String },
71
+ labelButtonConfirm: { type: String }
72
+ }
66
73
  }, {
67
74
  timestamps: { createdAt: "createdAtDateTime", updatedAt: "updatedAtDateTime" }
68
75
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-clinical",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://github.com/cabralsilva/c2-clinical.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",