@persei/perseed-api 5.0.3 → 5.0.5
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/client.cjs +60 -0
- package/dist/client.cjs.map +1 -1
- package/dist/client.mjs +60 -0
- package/dist/client.mjs.map +1 -1
- package/dist/lib/src/generated/client.d.ts +190 -0
- package/dist/lib/src/generated/client.d.ts.map +1 -1
- package/dist/src/Services/ContainerWidgetService.d.ts +14 -0
- package/dist/src/Services/ContainerWidgetService.d.ts.map +1 -0
- package/dist/src/config/config.d.ts +9 -2
- package/dist/src/config/config.d.ts.map +1 -1
- package/dist/src/controllers/{DashboardWidgetController.d.ts → ContainerWidgetController.d.ts} +3 -3
- package/dist/src/controllers/{DashboardWidgetController.d.ts.map → ContainerWidgetController.d.ts.map} +1 -1
- package/dist/src/helpers/dashboards.d.ts +4 -4
- package/dist/src/helpers/dashboards.d.ts.map +1 -1
- package/dist/src/models/ecosystem/{DashboardWidget.d.ts → ContainerWidget.d.ts} +14 -14
- package/dist/src/models/ecosystem/ContainerWidget.d.ts.map +1 -0
- package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts → ContainerWidgetBlock.d.ts} +5 -5
- package/dist/src/models/ecosystem/{DashboardWidgetBlock.d.ts.map → ContainerWidgetBlock.d.ts.map} +1 -1
- package/dist/src/models/perseed/UserSettings.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/_id/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/dashboardWidget/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/_id/index.d.ts.map +1 -1
- package/dist/src/routes/ecosystem/_ecosystemName/project/_projectName/dashboardWidget/index.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/create_widget_payload.schema.json +277 -50
- package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/dataLoaders/index.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/types.d.ts +184 -0
- package/dist/src/schemas/container_widget/types.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/update_widget_payload.schema.json +189 -32
- package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts +6 -0
- package/dist/src/schemas/container_widget/widgetTypes/ContainerWidgetProps.d.ts.map +1 -0
- package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts +17 -0
- package/dist/src/schemas/container_widget/widgetTypes/ModalProps.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts +26 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts +20 -0
- package/dist/src/schemas/container_widget/widgetTypes/SidebarProps.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts +2 -2
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/ValueCardProps.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/index.d.ts +3 -1
- package/dist/src/schemas/container_widget/widgetTypes/index.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/Generic.d.ts +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +15 -0
- package/dist/src/schemas/container_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +1 -0
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts.map +1 -1
- package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts.map +1 -1
- package/dist/src/schemas/index.d.ts +1 -1
- package/dist/src/schemas/user_settings/GenericStringSetting.schema.json +9 -0
- package/dist/src/schemas/user_settings/types.d.ts +4 -0
- package/dist/src/schemas/user_settings/types.d.ts.map +1 -1
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts +1 -0
- package/dist/src/v2/modules/project/forms-data/forms-data.service.d.ts.map +1 -1
- package/dist/src/v2/modules/project/thryve/index.d.ts +4 -0
- package/dist/src/v2/modules/project/thryve/index.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts +5 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.e2e.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.controller.test.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts +10 -0
- package/dist/src/v2/modules/project/thryve/thryve.schema.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts +30 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.d.ts.map +1 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts +2 -0
- package/dist/src/v2/modules/project/thryve/thryve.service.test.d.ts.map +1 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts +3 -0
- package/dist/src/v2/routes/v2/ecosystem/_ecosystemName/project/_projectName/thryve/index.d.ts.map +1 -0
- package/dist/v1/perseed-api.cjs +67 -14
- package/dist/v1/perseed-api.cjs.map +1 -1
- package/dist/v1/perseed-api.mjs +67 -14
- package/dist/v1/perseed-api.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/src/Services/DashboardWidgetService.d.ts +0 -14
- package/dist/src/Services/DashboardWidgetService.d.ts.map +0 -1
- package/dist/src/models/ecosystem/DashboardWidget.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/dataLoaders/index.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/types.d.ts +0 -137
- package/dist/src/schemas/dashboard_widget/types.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts +0 -6
- package/dist/src/schemas/dashboard_widget/widgetTypes/DashboardProps.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/index.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/Generic.d.ts.map +0 -1
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts +0 -7
- package/dist/src/schemas/dashboard_widget/widgetTypes/presentationWidgetTypes/LinkPresentationWidget.d.ts.map +0 -1
- /package/dist/src/schemas/{dashboard_widget → container_widget}/col.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/Outcomes.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/dataLoaders/index.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/i18n.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/index.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/IconTextPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/ListPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/TextPresentationWidget.d.ts +0 -0
- /package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/presentationWidgetTypes/index.d.ts +0 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { ColProps } from './col';
|
|
2
|
+
import { ContainerWidgetProps, FormListProps, FormsListProps, ModalProps, PatientListProps, SectionCardProps, SidebarProps, ValueCardProps } from './widgetTypes';
|
|
3
|
+
/**
|
|
4
|
+
* True containers: host other widgets inside them.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum ContainerType {
|
|
7
|
+
DASHBOARD = "Dashboard",
|
|
8
|
+
MODAL = "Modal",
|
|
9
|
+
SIDEBAR = "Sidebar"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Leaf widgets: rendered inside a container, do not hold other widgets.
|
|
13
|
+
*/
|
|
14
|
+
export declare enum WidgetType {
|
|
15
|
+
VALUECARD = "ValueCard",
|
|
16
|
+
SECTIONCARD = "SectionCard",
|
|
17
|
+
PATIENTLIST = "PatientList",
|
|
18
|
+
QUESTIONNAIRE_LOG = "QuestionnaireLog",
|
|
19
|
+
PATIENTS_PROGRAMS = "PatientsPrograms",
|
|
20
|
+
PATIENTS = "Patients",
|
|
21
|
+
ADHERENCE_SUMMARY = "AdherenceSummary",
|
|
22
|
+
FORM_LIST = "FormList",
|
|
23
|
+
FORMS_LIST = "FormsList"
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Union of both enums. Exposed as the previous enum name so existing consumers
|
|
27
|
+
* keep compiling. New code should prefer the narrower `ContainerType` or
|
|
28
|
+
* `WidgetType` when the distinction is relevant.
|
|
29
|
+
*/
|
|
30
|
+
export declare const ContainerWidgetType: {
|
|
31
|
+
readonly VALUECARD: WidgetType.VALUECARD;
|
|
32
|
+
readonly SECTIONCARD: WidgetType.SECTIONCARD;
|
|
33
|
+
readonly PATIENTLIST: WidgetType.PATIENTLIST;
|
|
34
|
+
readonly QUESTIONNAIRE_LOG: WidgetType.QUESTIONNAIRE_LOG;
|
|
35
|
+
readonly PATIENTS_PROGRAMS: WidgetType.PATIENTS_PROGRAMS;
|
|
36
|
+
readonly PATIENTS: WidgetType.PATIENTS;
|
|
37
|
+
readonly ADHERENCE_SUMMARY: WidgetType.ADHERENCE_SUMMARY;
|
|
38
|
+
readonly FORM_LIST: WidgetType.FORM_LIST;
|
|
39
|
+
readonly FORMS_LIST: WidgetType.FORMS_LIST;
|
|
40
|
+
readonly DASHBOARD: ContainerType.DASHBOARD;
|
|
41
|
+
readonly MODAL: ContainerType.MODAL;
|
|
42
|
+
readonly SIDEBAR: ContainerType.SIDEBAR;
|
|
43
|
+
};
|
|
44
|
+
export type ContainerWidgetType = ContainerType | WidgetType;
|
|
45
|
+
export type WidgetBlockConfig = {
|
|
46
|
+
size?: number | ColProps;
|
|
47
|
+
};
|
|
48
|
+
export type ContainerWidgetBlockCreatePayload = {
|
|
49
|
+
parent_id: number | string;
|
|
50
|
+
child_id: number;
|
|
51
|
+
position: number;
|
|
52
|
+
config?: WidgetBlockConfig | null;
|
|
53
|
+
};
|
|
54
|
+
export type ContainerBaseWidgetPayload = {
|
|
55
|
+
title: string;
|
|
56
|
+
description?: string | null;
|
|
57
|
+
weight?: number;
|
|
58
|
+
size?: number | ColProps;
|
|
59
|
+
library?: boolean;
|
|
60
|
+
widgetsBlocks?: ContainerWidgetBlockCreatePayload[];
|
|
61
|
+
};
|
|
62
|
+
export type EmptyProps = Record<string, never>;
|
|
63
|
+
export type ContainerProps = {
|
|
64
|
+
type: ContainerType.DASHBOARD;
|
|
65
|
+
params: ContainerWidgetProps;
|
|
66
|
+
} | {
|
|
67
|
+
type: ContainerType.MODAL;
|
|
68
|
+
params: ModalProps;
|
|
69
|
+
} | {
|
|
70
|
+
type: ContainerType.SIDEBAR;
|
|
71
|
+
params: SidebarProps;
|
|
72
|
+
};
|
|
73
|
+
export type WidgetProps = {
|
|
74
|
+
type: WidgetType.SECTIONCARD;
|
|
75
|
+
params: SectionCardProps;
|
|
76
|
+
} | {
|
|
77
|
+
type: WidgetType.VALUECARD;
|
|
78
|
+
params: ValueCardProps;
|
|
79
|
+
} | {
|
|
80
|
+
type: WidgetType.PATIENTLIST;
|
|
81
|
+
params: PatientListProps;
|
|
82
|
+
} | {
|
|
83
|
+
type: WidgetType.QUESTIONNAIRE_LOG;
|
|
84
|
+
params: EmptyProps;
|
|
85
|
+
} | {
|
|
86
|
+
type: WidgetType.PATIENTS_PROGRAMS;
|
|
87
|
+
params: EmptyProps;
|
|
88
|
+
} | {
|
|
89
|
+
type: WidgetType.PATIENTS;
|
|
90
|
+
params: EmptyProps;
|
|
91
|
+
} | {
|
|
92
|
+
type: WidgetType.ADHERENCE_SUMMARY;
|
|
93
|
+
params: EmptyProps;
|
|
94
|
+
} | {
|
|
95
|
+
type: WidgetType.FORM_LIST;
|
|
96
|
+
params: FormListProps;
|
|
97
|
+
} | {
|
|
98
|
+
type: WidgetType.FORMS_LIST;
|
|
99
|
+
params: FormsListProps;
|
|
100
|
+
};
|
|
101
|
+
export type WidgetTypeProps = ContainerProps | WidgetProps;
|
|
102
|
+
export type CreateContainerWidgetPayload = ContainerBaseWidgetPayload & WidgetTypeProps;
|
|
103
|
+
export type UpdateContainerWidgetPayload = Partial<CreateContainerWidgetPayload>;
|
|
104
|
+
export declare enum DataLoaderType {
|
|
105
|
+
OUTCOMES = "outcomes"
|
|
106
|
+
}
|
|
107
|
+
export interface GenericContainerWidgetDataLoader {
|
|
108
|
+
type: DataLoaderType;
|
|
109
|
+
params: Record<string, any>;
|
|
110
|
+
}
|
|
111
|
+
export type ContainerWidgetDataLoader<T> = T extends {
|
|
112
|
+
type: infer Type;
|
|
113
|
+
params: infer Params;
|
|
114
|
+
} ? {
|
|
115
|
+
type: Type;
|
|
116
|
+
params: Params;
|
|
117
|
+
} : never;
|
|
118
|
+
export type BaseContainerWidgetPayload<T extends ContainerWidgetType | undefined = undefined> = {
|
|
119
|
+
id?: number;
|
|
120
|
+
title: string;
|
|
121
|
+
description?: string;
|
|
122
|
+
type: T | ContainerWidgetType;
|
|
123
|
+
library: boolean;
|
|
124
|
+
config?: WidgetBlockConfig;
|
|
125
|
+
position?: number;
|
|
126
|
+
created_user: number;
|
|
127
|
+
};
|
|
128
|
+
export type BaseContainerWidget = BaseContainerWidgetPayload & WidgetTypeProps;
|
|
129
|
+
export type GenericParams = SectionCardProps | ValueCardProps | PatientListProps | ContainerWidgetProps | ModalProps | SidebarProps;
|
|
130
|
+
export type ContainerChildrenWidget<T extends ContainerWidgetType | undefined = undefined> = ContainerBaseWidgetPayload & BaseContainerWidgetPayload<T> & {
|
|
131
|
+
id: number;
|
|
132
|
+
type: ContainerWidgetType;
|
|
133
|
+
params: GenericParams;
|
|
134
|
+
};
|
|
135
|
+
export type ContainerWidget<T extends ContainerWidgetType | undefined = undefined> = T extends ContainerWidgetType ? {
|
|
136
|
+
id: number;
|
|
137
|
+
widgets?: ContainerChildrenWidget[];
|
|
138
|
+
} & ContainerWidgetTypeToParams[T] & BaseContainerWidgetPayload<T> : {
|
|
139
|
+
id: number;
|
|
140
|
+
params: any;
|
|
141
|
+
widgets?: ContainerChildrenWidget[];
|
|
142
|
+
} & BaseContainerWidgetPayload<T>;
|
|
143
|
+
export type ContainerTypeToParams = {
|
|
144
|
+
[ContainerType.DASHBOARD]: {
|
|
145
|
+
params: ContainerWidgetProps;
|
|
146
|
+
};
|
|
147
|
+
[ContainerType.MODAL]: {
|
|
148
|
+
params: ModalProps;
|
|
149
|
+
};
|
|
150
|
+
[ContainerType.SIDEBAR]: {
|
|
151
|
+
params: SidebarProps;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
export type WidgetTypeToParams = {
|
|
155
|
+
[WidgetType.SECTIONCARD]: {
|
|
156
|
+
params: SectionCardProps;
|
|
157
|
+
};
|
|
158
|
+
[WidgetType.VALUECARD]: {
|
|
159
|
+
params: ValueCardProps;
|
|
160
|
+
};
|
|
161
|
+
[WidgetType.PATIENTLIST]: {
|
|
162
|
+
params: PatientListProps;
|
|
163
|
+
};
|
|
164
|
+
[WidgetType.QUESTIONNAIRE_LOG]: {
|
|
165
|
+
params: EmptyProps;
|
|
166
|
+
};
|
|
167
|
+
[WidgetType.PATIENTS_PROGRAMS]: {
|
|
168
|
+
params: EmptyProps;
|
|
169
|
+
};
|
|
170
|
+
[WidgetType.PATIENTS]: {
|
|
171
|
+
params: EmptyProps;
|
|
172
|
+
};
|
|
173
|
+
[WidgetType.ADHERENCE_SUMMARY]: {
|
|
174
|
+
params: EmptyProps;
|
|
175
|
+
};
|
|
176
|
+
[WidgetType.FORM_LIST]: {
|
|
177
|
+
params: FormListProps;
|
|
178
|
+
};
|
|
179
|
+
[WidgetType.FORMS_LIST]: {
|
|
180
|
+
params: FormsListProps;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export type ContainerWidgetTypeToParams = ContainerTypeToParams & WidgetTypeToParams;
|
|
184
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/schemas/container_widget/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,UAAU,EACV,gBAAg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AA;KAAE,CAAA;IACtD,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QACtB,MAAM,EAAE,aAAa,CAAA;KACtB,CAAA;IACD,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;QACvB,MAAM,EAAE,cAAc,CAAA;KACvB,CAAA;CACF,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG,qBAAqB,GAAG,kBAAkB,CAAA"}
|
package/dist/src/schemas/{dashboard_widget → container_widget}/update_widget_payload.schema.json
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/
|
|
3
|
+
"$ref": "#/definitions/UpdateContainerWidgetPayload",
|
|
4
4
|
"definitions": {
|
|
5
|
-
"
|
|
5
|
+
"UpdateContainerWidgetPayload": {
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"title": {
|
|
@@ -30,26 +30,34 @@
|
|
|
30
30
|
"widgetsBlocks": {
|
|
31
31
|
"type": "array",
|
|
32
32
|
"items": {
|
|
33
|
-
"$ref": "#/definitions/
|
|
33
|
+
"$ref": "#/definitions/ContainerWidgetBlockCreatePayload"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"type": {
|
|
37
37
|
"anyOf": [
|
|
38
38
|
{
|
|
39
39
|
"type": "string",
|
|
40
|
-
"const": "
|
|
40
|
+
"const": "Dashboard"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"type": "string",
|
|
44
|
-
"const": "
|
|
44
|
+
"const": "Modal"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"type": "string",
|
|
48
|
-
"const": "
|
|
48
|
+
"const": "Sidebar"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"type": "string",
|
|
52
|
-
"const": "
|
|
52
|
+
"const": "SectionCard"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "string",
|
|
56
|
+
"const": "ValueCard"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "string",
|
|
60
|
+
"const": "PatientList"
|
|
53
61
|
},
|
|
54
62
|
{
|
|
55
63
|
"type": "string",
|
|
@@ -79,6 +87,15 @@
|
|
|
79
87
|
},
|
|
80
88
|
"params": {
|
|
81
89
|
"anyOf": [
|
|
90
|
+
{
|
|
91
|
+
"$ref": "#/definitions/ContainerWidgetProps"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"$ref": "#/definitions/ModalProps"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"$ref": "#/definitions/SidebarProps"
|
|
98
|
+
},
|
|
82
99
|
{
|
|
83
100
|
"$ref": "#/definitions/SectionCardProps"
|
|
84
101
|
},
|
|
@@ -88,9 +105,6 @@
|
|
|
88
105
|
{
|
|
89
106
|
"$ref": "#/definitions/PatientListProps"
|
|
90
107
|
},
|
|
91
|
-
{
|
|
92
|
-
"$ref": "#/definitions/DashboardProps"
|
|
93
|
-
},
|
|
94
108
|
{
|
|
95
109
|
"$ref": "#/definitions/EmptyProps"
|
|
96
110
|
},
|
|
@@ -237,7 +251,7 @@
|
|
|
237
251
|
},
|
|
238
252
|
"additionalProperties": false
|
|
239
253
|
},
|
|
240
|
-
"
|
|
254
|
+
"ContainerWidgetBlockCreatePayload": {
|
|
241
255
|
"type": "object",
|
|
242
256
|
"properties": {
|
|
243
257
|
"parent_id": {
|
|
@@ -279,6 +293,98 @@
|
|
|
279
293
|
},
|
|
280
294
|
"additionalProperties": false
|
|
281
295
|
},
|
|
296
|
+
"ContainerWidgetProps": {
|
|
297
|
+
"type": "object",
|
|
298
|
+
"properties": {
|
|
299
|
+
"active": {
|
|
300
|
+
"type": "boolean"
|
|
301
|
+
},
|
|
302
|
+
"config": {
|
|
303
|
+
"type": "object",
|
|
304
|
+
"additionalProperties": {}
|
|
305
|
+
},
|
|
306
|
+
"icon": {
|
|
307
|
+
"type": ["string", "null"]
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"additionalProperties": false
|
|
311
|
+
},
|
|
312
|
+
"ModalProps": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"properties": {
|
|
315
|
+
"active": {
|
|
316
|
+
"type": "boolean"
|
|
317
|
+
},
|
|
318
|
+
"icon": {
|
|
319
|
+
"type": ["string", "null"]
|
|
320
|
+
},
|
|
321
|
+
"config": {
|
|
322
|
+
"$ref": "#/definitions/ModalConfig"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": ["config"],
|
|
326
|
+
"additionalProperties": false
|
|
327
|
+
},
|
|
328
|
+
"ModalConfig": {
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"size": {
|
|
332
|
+
"$ref": "#/definitions/ModalSize"
|
|
333
|
+
},
|
|
334
|
+
"width": {
|
|
335
|
+
"type": "string"
|
|
336
|
+
},
|
|
337
|
+
"height": {
|
|
338
|
+
"type": "string"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
"required": ["size"],
|
|
342
|
+
"additionalProperties": false
|
|
343
|
+
},
|
|
344
|
+
"ModalSize": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"enum": ["small", "medium", "large", "fullscreen", "custom"]
|
|
347
|
+
},
|
|
348
|
+
"SidebarProps": {
|
|
349
|
+
"type": "object",
|
|
350
|
+
"properties": {
|
|
351
|
+
"active": {
|
|
352
|
+
"type": "boolean"
|
|
353
|
+
},
|
|
354
|
+
"icon": {
|
|
355
|
+
"type": ["string", "null"]
|
|
356
|
+
},
|
|
357
|
+
"config": {
|
|
358
|
+
"$ref": "#/definitions/SidebarConfig"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"required": ["config"],
|
|
362
|
+
"additionalProperties": false
|
|
363
|
+
},
|
|
364
|
+
"SidebarConfig": {
|
|
365
|
+
"type": "object",
|
|
366
|
+
"properties": {
|
|
367
|
+
"placement": {
|
|
368
|
+
"$ref": "#/definitions/SidebarPlacement"
|
|
369
|
+
},
|
|
370
|
+
"size": {
|
|
371
|
+
"$ref": "#/definitions/SidebarSize"
|
|
372
|
+
},
|
|
373
|
+
"width": {
|
|
374
|
+
"type": "string"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"required": ["placement", "size"],
|
|
378
|
+
"additionalProperties": false
|
|
379
|
+
},
|
|
380
|
+
"SidebarPlacement": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"enum": ["left", "right"]
|
|
383
|
+
},
|
|
384
|
+
"SidebarSize": {
|
|
385
|
+
"type": "string",
|
|
386
|
+
"enum": ["small", "medium", "large", "custom"]
|
|
387
|
+
},
|
|
282
388
|
"SectionCardProps": {
|
|
283
389
|
"type": "object",
|
|
284
390
|
"properties": {
|
|
@@ -317,7 +423,7 @@
|
|
|
317
423
|
"type": "object"
|
|
318
424
|
},
|
|
319
425
|
"dataLoader": {
|
|
320
|
-
"$ref": "#/definitions/
|
|
426
|
+
"$ref": "#/definitions/ContainerWidgetDataLoader%3CWidgetOutcomesDataLoader%3E"
|
|
321
427
|
}
|
|
322
428
|
},
|
|
323
429
|
"required": ["icon", "text"],
|
|
@@ -345,7 +451,7 @@
|
|
|
345
451
|
"type": "string"
|
|
346
452
|
}
|
|
347
453
|
},
|
|
348
|
-
"
|
|
454
|
+
"ContainerWidgetDataLoader<WidgetOutcomesDataLoader>": {
|
|
349
455
|
"type": "object",
|
|
350
456
|
"properties": {
|
|
351
457
|
"type": {
|
|
@@ -720,8 +826,7 @@
|
|
|
720
826
|
"bgColor": {
|
|
721
827
|
"type": "string"
|
|
722
828
|
}
|
|
723
|
-
}
|
|
724
|
-
"required": ["conditions"]
|
|
829
|
+
}
|
|
725
830
|
}
|
|
726
831
|
},
|
|
727
832
|
"template": {
|
|
@@ -762,7 +867,7 @@
|
|
|
762
867
|
"type": "string"
|
|
763
868
|
}
|
|
764
869
|
},
|
|
765
|
-
"required": ["
|
|
870
|
+
"required": ["icon"]
|
|
766
871
|
}
|
|
767
872
|
},
|
|
768
873
|
"icon": {
|
|
@@ -813,7 +918,7 @@
|
|
|
813
918
|
"type": "string"
|
|
814
919
|
}
|
|
815
920
|
},
|
|
816
|
-
"required": ["
|
|
921
|
+
"required": ["icon", "iconPosition"]
|
|
817
922
|
}
|
|
818
923
|
},
|
|
819
924
|
"template": {
|
|
@@ -998,19 +1103,6 @@
|
|
|
998
1103
|
},
|
|
999
1104
|
"additionalProperties": false
|
|
1000
1105
|
},
|
|
1001
|
-
"DashboardProps": {
|
|
1002
|
-
"type": "object",
|
|
1003
|
-
"properties": {
|
|
1004
|
-
"active": {
|
|
1005
|
-
"type": "boolean"
|
|
1006
|
-
},
|
|
1007
|
-
"config": {},
|
|
1008
|
-
"icon": {
|
|
1009
|
-
"type": ["string", "null"]
|
|
1010
|
-
}
|
|
1011
|
-
},
|
|
1012
|
-
"additionalProperties": false
|
|
1013
|
-
},
|
|
1014
1106
|
"EmptyProps": {
|
|
1015
1107
|
"type": "object",
|
|
1016
1108
|
"additionalProperties": {
|
|
@@ -1087,7 +1179,7 @@
|
|
|
1087
1179
|
"additionalProperties": {}
|
|
1088
1180
|
},
|
|
1089
1181
|
"limit": {
|
|
1090
|
-
"type": "number"
|
|
1182
|
+
"type": ["number", "null"]
|
|
1091
1183
|
},
|
|
1092
1184
|
"sortBy": {
|
|
1093
1185
|
"type": "array",
|
|
@@ -1144,6 +1236,9 @@
|
|
|
1144
1236
|
},
|
|
1145
1237
|
"hidden": {
|
|
1146
1238
|
"type": "boolean"
|
|
1239
|
+
},
|
|
1240
|
+
"aggregation": {
|
|
1241
|
+
"$ref": "#/definitions/ColumnAggregation"
|
|
1147
1242
|
}
|
|
1148
1243
|
},
|
|
1149
1244
|
"additionalProperties": false
|
|
@@ -1178,11 +1273,43 @@
|
|
|
1178
1273
|
},
|
|
1179
1274
|
"textColor": {
|
|
1180
1275
|
"type": "string"
|
|
1276
|
+
},
|
|
1277
|
+
"underline": {
|
|
1278
|
+
"type": "boolean"
|
|
1279
|
+
},
|
|
1280
|
+
"linkType": {
|
|
1281
|
+
"$ref": "#/definitions/LinkType"
|
|
1282
|
+
},
|
|
1283
|
+
"openInNewTab": {
|
|
1284
|
+
"type": "boolean"
|
|
1285
|
+
},
|
|
1286
|
+
"targetWidgetId": {
|
|
1287
|
+
"type": "number"
|
|
1288
|
+
}
|
|
1289
|
+
},
|
|
1290
|
+
"additionalProperties": false
|
|
1291
|
+
},
|
|
1292
|
+
"LinkType": {
|
|
1293
|
+
"type": "string",
|
|
1294
|
+
"enum": ["external", "internal"]
|
|
1295
|
+
},
|
|
1296
|
+
"ColumnAggregation": {
|
|
1297
|
+
"type": "object",
|
|
1298
|
+
"properties": {
|
|
1299
|
+
"type": {
|
|
1300
|
+
"$ref": "#/definitions/AggregationType"
|
|
1301
|
+
},
|
|
1302
|
+
"position": {
|
|
1303
|
+
"type": "number"
|
|
1181
1304
|
}
|
|
1182
1305
|
},
|
|
1183
|
-
"required": ["
|
|
1306
|
+
"required": ["type"],
|
|
1184
1307
|
"additionalProperties": false
|
|
1185
1308
|
},
|
|
1309
|
+
"AggregationType": {
|
|
1310
|
+
"type": "string",
|
|
1311
|
+
"enum": ["first", "last", "position", "avg", "sum", "min", "max", "median", "stddev"]
|
|
1312
|
+
},
|
|
1186
1313
|
"FormListAppearanceConfig": {
|
|
1187
1314
|
"type": "object",
|
|
1188
1315
|
"properties": {
|
|
@@ -1200,6 +1327,12 @@
|
|
|
1200
1327
|
},
|
|
1201
1328
|
"fontWeight": {
|
|
1202
1329
|
"type": ["number", "null"]
|
|
1330
|
+
},
|
|
1331
|
+
"conditionalProps": {
|
|
1332
|
+
"type": "array",
|
|
1333
|
+
"items": {
|
|
1334
|
+
"$ref": "#/definitions/FormListBodyConditionalProps"
|
|
1335
|
+
}
|
|
1203
1336
|
}
|
|
1204
1337
|
},
|
|
1205
1338
|
"additionalProperties": false
|
|
@@ -1224,6 +1357,30 @@
|
|
|
1224
1357
|
}
|
|
1225
1358
|
},
|
|
1226
1359
|
"additionalProperties": false
|
|
1360
|
+
},
|
|
1361
|
+
"FormListBodyConditionalProps": {
|
|
1362
|
+
"type": "object",
|
|
1363
|
+
"properties": {
|
|
1364
|
+
"conditions": {
|
|
1365
|
+
"type": "string"
|
|
1366
|
+
},
|
|
1367
|
+
"continueEvaluate": {
|
|
1368
|
+
"type": "boolean"
|
|
1369
|
+
},
|
|
1370
|
+
"textColor": {
|
|
1371
|
+
"type": "string"
|
|
1372
|
+
},
|
|
1373
|
+
"bgColor": {
|
|
1374
|
+
"type": "string"
|
|
1375
|
+
},
|
|
1376
|
+
"fontSize": {
|
|
1377
|
+
"type": ["number", "null"]
|
|
1378
|
+
},
|
|
1379
|
+
"fontWeight": {
|
|
1380
|
+
"type": ["number", "null"]
|
|
1381
|
+
}
|
|
1382
|
+
},
|
|
1383
|
+
"additionalProperties": false
|
|
1227
1384
|
}
|
|
1228
1385
|
}
|
|
1229
1386
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContainerWidgetProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ContainerWidgetProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ContainerWidgetProps } from './ContainerWidgetProps';
|
|
2
|
+
export declare enum ModalSize {
|
|
3
|
+
SMALL = "small",
|
|
4
|
+
MEDIUM = "medium",
|
|
5
|
+
LARGE = "large",
|
|
6
|
+
FULLSCREEN = "fullscreen",
|
|
7
|
+
CUSTOM = "custom"
|
|
8
|
+
}
|
|
9
|
+
export interface ModalConfig {
|
|
10
|
+
size: ModalSize;
|
|
11
|
+
width?: string;
|
|
12
|
+
height?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ModalProps extends Omit<ContainerWidgetProps, 'config'> {
|
|
15
|
+
config: ModalConfig;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ModalProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/ModalProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,SAAS;IACnB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACtE,MAAM,EAAE,WAAW,CAAA;CACpB"}
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts
RENAMED
|
@@ -31,7 +31,7 @@ export interface SortBy {
|
|
|
31
31
|
export interface FormListDataConfig {
|
|
32
32
|
fields: string[];
|
|
33
33
|
conditions?: Record<string, unknown>;
|
|
34
|
-
limit?: number;
|
|
34
|
+
limit?: number | null;
|
|
35
35
|
sortBy?: SortBy[];
|
|
36
36
|
mainForm?: boolean;
|
|
37
37
|
}
|
|
@@ -41,6 +41,15 @@ export interface FormListColumnLayoutConfig {
|
|
|
41
41
|
source?: string;
|
|
42
42
|
widgetSettings?: PresentationWidgetSettingsV2;
|
|
43
43
|
hidden?: boolean;
|
|
44
|
+
aggregation?: ColumnAggregation;
|
|
45
|
+
}
|
|
46
|
+
export interface FormListBodyConditionalProps {
|
|
47
|
+
conditions?: string;
|
|
48
|
+
continueEvaluate?: boolean;
|
|
49
|
+
textColor?: string;
|
|
50
|
+
bgColor?: string;
|
|
51
|
+
fontSize?: number | null;
|
|
52
|
+
fontWeight?: number | null;
|
|
44
53
|
}
|
|
45
54
|
export interface FormListAppearanceConfig {
|
|
46
55
|
body?: {
|
|
@@ -48,6 +57,7 @@ export interface FormListAppearanceConfig {
|
|
|
48
57
|
bgColor?: string;
|
|
49
58
|
fontSize?: number | null;
|
|
50
59
|
fontWeight?: number | null;
|
|
60
|
+
conditionalProps?: FormListBodyConditionalProps[];
|
|
51
61
|
};
|
|
52
62
|
header?: {
|
|
53
63
|
textColor?: string;
|
|
@@ -131,4 +141,19 @@ export declare enum PresentationWidget {
|
|
|
131
141
|
REPEATABLE_FIELD = "repeatable_field",
|
|
132
142
|
LINK = "link"
|
|
133
143
|
}
|
|
144
|
+
export declare enum AggregationType {
|
|
145
|
+
FIRST = "first",
|
|
146
|
+
LAST = "last",
|
|
147
|
+
POSITION = "position",
|
|
148
|
+
AVG = "avg",
|
|
149
|
+
SUM = "sum",
|
|
150
|
+
MIN = "min",
|
|
151
|
+
MAX = "max",
|
|
152
|
+
MEDIAN = "median",
|
|
153
|
+
STDDEV = "stddev"
|
|
154
|
+
}
|
|
155
|
+
export interface ColumnAggregation {
|
|
156
|
+
type: AggregationType;
|
|
157
|
+
position?: number;
|
|
158
|
+
}
|
|
134
159
|
//# sourceMappingURL=PatientListProps.d.ts.map
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/PatientListProps.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientListProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/
|
|
1
|
+
{"version":3,"file":"PatientListProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/PatientListProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AACxE,OAAO,EACL,2BAA2B,EAC3B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AAU,CAAA;CACjB;AAED,MAAM,WAAW,qBAAqB;IACpC,eAAe,CAAC,EAAE,0BAA0B,EAAE,CAAA;IAC9C,KAAK,CAAC,EAAE,KAAK,EAAE,CAAA;CAChB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,eAAe,CAAA;IAC5B,eAAe,EAAE,MAAM,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,oBAAY,UAAU;IACpB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,SAAS,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,gBAAgB,qBAAqB;IACrC,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB"}
|
package/dist/src/schemas/{dashboard_widget → container_widget}/widgetTypes/SectionCardProps.d.ts.map
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/
|
|
1
|
+
{"version":3,"file":"SectionCardProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SectionCardProps.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ContainerWidgetProps } from './ContainerWidgetProps';
|
|
2
|
+
export declare enum SidebarPlacement {
|
|
3
|
+
LEFT = "left",
|
|
4
|
+
RIGHT = "right"
|
|
5
|
+
}
|
|
6
|
+
export declare enum SidebarSize {
|
|
7
|
+
SMALL = "small",
|
|
8
|
+
MEDIUM = "medium",
|
|
9
|
+
LARGE = "large",
|
|
10
|
+
CUSTOM = "custom"
|
|
11
|
+
}
|
|
12
|
+
export interface SidebarConfig {
|
|
13
|
+
placement: SidebarPlacement;
|
|
14
|
+
size: SidebarSize;
|
|
15
|
+
width?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SidebarProps extends Omit<ContainerWidgetProps, 'config'> {
|
|
18
|
+
config: SidebarConfig;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SidebarProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarProps.d.ts","sourceRoot":"","sources":["../../../../../../src/schemas/container_widget/widgetTypes/SidebarProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,gBAAgB,CAAA;IAC3B,IAAI,EAAE,WAAW,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC;IACxE,MAAM,EAAE,aAAa,CAAA;CACtB"}
|