module-package-comp 1.4.4 → 1.4.6
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/package.json +1 -1
- package/src/component/ComponentDisplayer.tsx +2 -0
- package/src/component/ShowAttr.tsx +2 -1
- package/src/util/type.ts +1 -0
- package/dist/component/ComponentDisplayer.d.ts +0 -10
- package/dist/component/ComponentDisplayer.js +0 -84
- package/dist/component/ComponentDisplayer.js.map +0 -1
- package/dist/component/LableledInput.tsx +0 -14
- package/dist/component/PrimaryBtn.d.ts +0 -6
- package/dist/component/PrimaryBtn.js +0 -7
- package/dist/component/PrimaryBtn.js.map +0 -1
- package/dist/component/ShowAttr.d.ts +0 -11
- package/dist/component/ShowAttr.js +0 -63
- package/dist/component/ShowAttr.js.map +0 -1
- package/dist/component/ShowErrors.d.ts +0 -3
- package/dist/component/ShowErrors.js +0 -6
- package/dist/component/ShowErrors.js.map +0 -1
- package/dist/component/icons/WrongIcon.d.ts +0 -1
- package/dist/component/icons/WrongIcon.js +0 -5
- package/dist/component/icons/WrongIcon.js.map +0 -1
- package/dist/component/inputs/FileInput.d.ts +0 -6
- package/dist/component/inputs/FileInput.js +0 -14
- package/dist/component/inputs/FileInput.js.map +0 -1
- package/dist/component/inputs/Input.d.ts +0 -15
- package/dist/component/inputs/Input.js +0 -7
- package/dist/component/inputs/Input.js.map +0 -1
- package/dist/component/inputs/LabeledMutliSelect.d.ts +0 -6
- package/dist/component/inputs/LabeledMutliSelect.js +0 -18
- package/dist/component/inputs/LabeledMutliSelect.js.map +0 -1
- package/dist/component/inputs/LableledFileInput.d.ts +0 -6
- package/dist/component/inputs/LableledFileInput.js +0 -18
- package/dist/component/inputs/LableledFileInput.js.map +0 -1
- package/dist/component/inputs/LableledInput.d.ts +0 -6
- package/dist/component/inputs/LableledInput.js +0 -18
- package/dist/component/inputs/LableledInput.js.map +0 -1
- package/dist/component/inputs/LableledSelect.d.ts +0 -6
- package/dist/component/inputs/LableledSelect.js +0 -18
- package/dist/component/inputs/LableledSelect.js.map +0 -1
- package/dist/component/inputs/MultiSelect.d.ts +0 -9
- package/dist/component/inputs/MultiSelect.js +0 -25
- package/dist/component/inputs/MultiSelect.js.map +0 -1
- package/dist/component/inputs/Select.d.ts +0 -8
- package/dist/component/inputs/Select.js +0 -5
- package/dist/component/inputs/Select.js.map +0 -1
- package/dist/index.css +0 -862
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -5
- package/dist/index.js.map +0 -1
- package/dist/util/type.d.ts +0 -106
- package/dist/util/type.js +0 -39
- package/dist/util/type.js.map +0 -1
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AAErC,cAAc,aAAa,CAAC"}
|
package/dist/util/type.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
export type DataJSON = Record<string, string | object>;
|
|
2
|
-
export type DateTime = string;
|
|
3
|
-
export declare enum ConditionEnum {
|
|
4
|
-
EQ = "equal",
|
|
5
|
-
SUP = "superior",
|
|
6
|
-
INF = "inferior"
|
|
7
|
-
}
|
|
8
|
-
export declare enum AttributeTypeEnum {
|
|
9
|
-
TEXT = "text",
|
|
10
|
-
LIST = "list",
|
|
11
|
-
NUMBER = "number",
|
|
12
|
-
BOOLEAN = "boolean",
|
|
13
|
-
DATE = "date",
|
|
14
|
-
NOTE = "note",
|
|
15
|
-
IMAGE = "image",
|
|
16
|
-
LINK = "link",
|
|
17
|
-
MULTIPLE = "multiple",
|
|
18
|
-
AUTOGEN = "autogen",
|
|
19
|
-
FILE = "file",
|
|
20
|
-
TITRE = "titre",
|
|
21
|
-
TEXT_OUTPUT = "text_output",
|
|
22
|
-
IMAGE_OUTPUT = "image_output",
|
|
23
|
-
VIDEO_OUTPUT = "video_output"
|
|
24
|
-
}
|
|
25
|
-
export declare enum ComponentType {
|
|
26
|
-
GENERAL = "general",
|
|
27
|
-
ACCESS = "access",
|
|
28
|
-
PEC = "PEC",
|
|
29
|
-
DOSSIER = "dossier",
|
|
30
|
-
PATIENT = "patient",
|
|
31
|
-
PRESCRIPTION = "prescription",
|
|
32
|
-
WORKFLOW = "workflow",
|
|
33
|
-
FOLDER = "folder",
|
|
34
|
-
CONSULTATION = "consultation",
|
|
35
|
-
TREE = "tree"
|
|
36
|
-
}
|
|
37
|
-
export interface Condition {
|
|
38
|
-
attribute: string;
|
|
39
|
-
cond: keyof typeof ConditionEnum;
|
|
40
|
-
value: string;
|
|
41
|
-
delimiter: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ISettingsAttribute {
|
|
44
|
-
max?: string;
|
|
45
|
-
min?: string;
|
|
46
|
-
color?: string;
|
|
47
|
-
required?: boolean;
|
|
48
|
-
newValue?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface Attribute {
|
|
51
|
-
name: string;
|
|
52
|
-
label?: string;
|
|
53
|
-
type?: keyof typeof AttributeTypeEnum;
|
|
54
|
-
content?: Content;
|
|
55
|
-
settings?: ISettingsAttribute;
|
|
56
|
-
}
|
|
57
|
-
export type Content = string | string[];
|
|
58
|
-
export interface SettingsComponent {
|
|
59
|
-
required?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface Component {
|
|
62
|
-
_id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
label: string;
|
|
65
|
-
type: keyof typeof ComponentType;
|
|
66
|
-
attributes: Attribute[];
|
|
67
|
-
conditions: Condition[][];
|
|
68
|
-
settings?: SettingsComponent;
|
|
69
|
-
filter?: PrescriptionFilterType;
|
|
70
|
-
createdAt?: DateTime;
|
|
71
|
-
updatedAt?: DateTime;
|
|
72
|
-
}
|
|
73
|
-
export interface ComponentResult {
|
|
74
|
-
total: number;
|
|
75
|
-
page: number;
|
|
76
|
-
lastPage: number;
|
|
77
|
-
data: Component[];
|
|
78
|
-
}
|
|
79
|
-
export interface Data {
|
|
80
|
-
_id: string;
|
|
81
|
-
proprietor: string;
|
|
82
|
-
from: string;
|
|
83
|
-
component: Component;
|
|
84
|
-
value: DataJSON;
|
|
85
|
-
extra: DataJSON;
|
|
86
|
-
createdAt: DateTime;
|
|
87
|
-
updatedAt: DateTime;
|
|
88
|
-
}
|
|
89
|
-
export interface DataResult {
|
|
90
|
-
total: number;
|
|
91
|
-
page: number;
|
|
92
|
-
lastPage: number;
|
|
93
|
-
data: Data[];
|
|
94
|
-
}
|
|
95
|
-
export type PrescriptionFilterType = {
|
|
96
|
-
protocol: string | null;
|
|
97
|
-
cure: string | null;
|
|
98
|
-
molecule: string | null;
|
|
99
|
-
dose: Filter | null;
|
|
100
|
-
validation: Filter | null;
|
|
101
|
-
info: boolean | null;
|
|
102
|
-
};
|
|
103
|
-
export type Filter = {
|
|
104
|
-
op: ConditionEnum | "";
|
|
105
|
-
value: string;
|
|
106
|
-
};
|
package/dist/util/type.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Enums
|
|
2
|
-
export var ConditionEnum;
|
|
3
|
-
(function (ConditionEnum) {
|
|
4
|
-
ConditionEnum["EQ"] = "equal";
|
|
5
|
-
ConditionEnum["SUP"] = "superior";
|
|
6
|
-
ConditionEnum["INF"] = "inferior";
|
|
7
|
-
})(ConditionEnum || (ConditionEnum = {}));
|
|
8
|
-
export var AttributeTypeEnum;
|
|
9
|
-
(function (AttributeTypeEnum) {
|
|
10
|
-
AttributeTypeEnum["TEXT"] = "text";
|
|
11
|
-
AttributeTypeEnum["LIST"] = "list";
|
|
12
|
-
AttributeTypeEnum["NUMBER"] = "number";
|
|
13
|
-
AttributeTypeEnum["BOOLEAN"] = "boolean";
|
|
14
|
-
AttributeTypeEnum["DATE"] = "date";
|
|
15
|
-
AttributeTypeEnum["NOTE"] = "note";
|
|
16
|
-
AttributeTypeEnum["IMAGE"] = "image";
|
|
17
|
-
AttributeTypeEnum["LINK"] = "link";
|
|
18
|
-
AttributeTypeEnum["MULTIPLE"] = "multiple";
|
|
19
|
-
AttributeTypeEnum["AUTOGEN"] = "autogen";
|
|
20
|
-
AttributeTypeEnum["FILE"] = "file";
|
|
21
|
-
AttributeTypeEnum["TITRE"] = "titre";
|
|
22
|
-
AttributeTypeEnum["TEXT_OUTPUT"] = "text_output";
|
|
23
|
-
AttributeTypeEnum["IMAGE_OUTPUT"] = "image_output";
|
|
24
|
-
AttributeTypeEnum["VIDEO_OUTPUT"] = "video_output";
|
|
25
|
-
})(AttributeTypeEnum || (AttributeTypeEnum = {}));
|
|
26
|
-
export var ComponentType;
|
|
27
|
-
(function (ComponentType) {
|
|
28
|
-
ComponentType["GENERAL"] = "general";
|
|
29
|
-
ComponentType["ACCESS"] = "access";
|
|
30
|
-
ComponentType["PEC"] = "PEC";
|
|
31
|
-
ComponentType["DOSSIER"] = "dossier";
|
|
32
|
-
ComponentType["PATIENT"] = "patient";
|
|
33
|
-
ComponentType["PRESCRIPTION"] = "prescription";
|
|
34
|
-
ComponentType["WORKFLOW"] = "workflow";
|
|
35
|
-
ComponentType["FOLDER"] = "folder";
|
|
36
|
-
ComponentType["CONSULTATION"] = "consultation";
|
|
37
|
-
ComponentType["TREE"] = "tree";
|
|
38
|
-
})(ComponentType || (ComponentType = {}));
|
|
39
|
-
//# sourceMappingURL=type.js.map
|
package/dist/util/type.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../src/util/type.ts"],"names":[],"mappings":"AAIA,QAAQ;AACR,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,6BAAY,CAAA;IACZ,iCAAgB,CAAA;IAChB,iCAAgB,CAAA;AAClB,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB;AAED,MAAM,CAAN,IAAY,iBAgBX;AAhBD,WAAY,iBAAiB;IAC3B,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;IACnB,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,kCAAa,CAAA;IACb,0CAAqB,CAAA;IACrB,wCAAmB,CAAA;IACnB,kCAAa,CAAA;IACb,oCAAe,CAAA;IACf,gDAA2B,CAAA;IAC3B,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;AAC/B,CAAC,EAhBW,iBAAiB,KAAjB,iBAAiB,QAgB5B;AAED,MAAM,CAAN,IAAY,aAWX;AAXD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,4BAAW,CAAA;IACX,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;IAC7B,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,8CAA6B,CAAA;IAC7B,8BAAa,CAAA;AACf,CAAC,EAXW,aAAa,KAAb,aAAa,QAWxB"}
|